Language

TouchInteractionController.RegisterCallback Method

Definition

Adds the specified callback to the list of callbacks.

[Android.Runtime.Register("registerCallback", "(Ljava/util/concurrent/Executor;Landroid/accessibilityservice/TouchInteractionController$Callback;)V", "", ApiSince=33)]
public void RegisterCallback(Java.Util.Concurrent.IExecutor? executor, Android.AccessibilityServices.TouchInteractionController.ICallback callback);
[<Android.Runtime.Register("registerCallback", "(Ljava/util/concurrent/Executor;Landroid/accessibilityservice/TouchInteractionController$Callback;)V", "", ApiSince=33)>]
member this.RegisterCallback : Java.Util.Concurrent.IExecutor * Android.AccessibilityServices.TouchInteractionController.ICallback -> unit

Parameters

executor
IExecutor

the executor for this callback, or null to execute on the service's main thread

callback
TouchInteractionController.ICallback

the callback to add, must be non-null

Attributes

Remarks

Adds the specified callback to the list of callbacks. The callback will run using on the specified Executor', or on the service's main thread if the Executor is null.

Android reference for android.accessibilityservice.TouchInteractionController.registerCallback.

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