Share via


AppOpsManager.SetOnOpNotedCallback Method

Definition

Set a new OnOpNotedCallback.

[Android.Runtime.Register("setOnOpNotedCallback", "(Ljava/util/concurrent/Executor;Landroid/app/AppOpsManager$OnOpNotedCallback;)V", "GetSetOnOpNotedCallback_Ljava_util_concurrent_Executor_Landroid_app_AppOpsManager_OnOpNotedCallback_Handler", ApiSince=30)]
public virtual void SetOnOpNotedCallback (Java.Util.Concurrent.IExecutor? asyncExecutor, Android.App.AppOpsManager.OnOpNotedCallback? callback);
[<Android.Runtime.Register("setOnOpNotedCallback", "(Ljava/util/concurrent/Executor;Landroid/app/AppOpsManager$OnOpNotedCallback;)V", "GetSetOnOpNotedCallback_Ljava_util_concurrent_Executor_Landroid_app_AppOpsManager_OnOpNotedCallback_Handler", ApiSince=30)>]
abstract member SetOnOpNotedCallback : Java.Util.Concurrent.IExecutor * Android.App.AppOpsManager.OnOpNotedCallback -> unit
override this.SetOnOpNotedCallback : Java.Util.Concurrent.IExecutor * Android.App.AppOpsManager.OnOpNotedCallback -> unit

Parameters

asyncExecutor
IExecutor

executor to execute OnOpNotedCallback#onAsyncNoted on, null to unset

callback
AppOpsManager.OnOpNotedCallback

listener to set, null to unset

Attributes

Remarks

Java documentation for android.app.AppOpsManager.setOnOpNotedCallback(java.util.concurrent.Executor, android.app.OnOpNotedCallback).

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