Share via


AppOpsManager.OnOpNotedCallback.OnAsyncNoted(AsyncNotedAppOp) Method

Definition

Called when an app-op was noted for this package which cannot be delivered via the other two mechanisms.

[Android.Runtime.Register("onAsyncNoted", "(Landroid/app/AsyncNotedAppOp;)V", "GetOnAsyncNoted_Landroid_app_AsyncNotedAppOp_Handler", ApiSince=30)]
public abstract void OnAsyncNoted (Android.App.AsyncNotedAppOp asyncOp);
[<Android.Runtime.Register("onAsyncNoted", "(Landroid/app/AsyncNotedAppOp;)V", "GetOnAsyncNoted_Landroid_app_AsyncNotedAppOp_Handler", ApiSince=30)>]
abstract member OnAsyncNoted : Android.App.AsyncNotedAppOp -> unit

Parameters

asyncOp
AsyncNotedAppOp

op noted

Attributes

Remarks

Called when an app-op was noted for this package which cannot be delivered via the other two mechanisms.

Called as soon as possible after the app-op was noted, but the delivery delay is not guaranteed. Due to how async calls work in Android this might even be delivered slightly before the private data is delivered to the app.

If the app is not running or no OnOpNotedCallback is registered a small amount of noted app-ops are buffered and then delivered as soon as a listener is registered.

Java documentation for android.app.AppOpsManager.OnOpNotedCallback.onAsyncNoted(android.app.AsyncNotedAppOp).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to