Added in API level 30
OnOpActiveChangedListener
interface OnOpActiveChangedListener
android.app.AppOpsManager.OnOpActiveChangedListener |
Callback for notification of changes to operation active state.
Summary
Public methods | |
---|---|
abstract Unit |
onOpActiveChanged(op: String, uid: Int, packageName: String, active: Boolean) Called when the active state of an app-op changes. |
Public methods
onOpActiveChanged
Added in API level 30
abstract fun onOpActiveChanged(
op: String,
uid: Int,
packageName: String,
active: Boolean
): Unit
Called when the active state of an app-op changes.
Parameters | |
---|---|
op |
String: The operation that changed. This value cannot be null . |
packageName |
String: The package performing the operation. This value cannot be null . |
active |
Boolean: Whether the operation became active or inactive. |