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