getIntExtra

abstract fun getIntExtra(key: String, defaultValue: Int): Int

获取 Int 类型的额外数据。

Parameters

key

键名。

defaultValue

如果不存在则返回的默认值。