VoiceInteractor.RegisterOnDestroyedCallback(IExecutor, IRunnable) Method

Definition

Registers a callback to be called when the VoiceInteractor is destroyed.

[Android.Runtime.Register("registerOnDestroyedCallback", "(Ljava/util/concurrent/Executor;Ljava/lang/Runnable;)Z", "", ApiSince=29)]
public bool RegisterOnDestroyedCallback (Java.Util.Concurrent.IExecutor executor, Java.Lang.IRunnable callback);
[<Android.Runtime.Register("registerOnDestroyedCallback", "(Ljava/util/concurrent/Executor;Ljava/lang/Runnable;)Z", "", ApiSince=29)>]
member this.RegisterOnDestroyedCallback : Java.Util.Concurrent.IExecutor * Java.Lang.IRunnable -> bool

Parameters

executor
IExecutor

Executor on which to run the callback.

callback
IRunnable

The callback to run.

Returns

whether the callback was registered.

Attributes

Remarks

Registers a callback to be called when the VoiceInteractor is destroyed.

Java documentation for android.app.VoiceInteractor.registerOnDestroyedCallback(java.util.concurrent.Executor, java.lang.Runnable).

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