Language

PersonalContextManager.RegisterUnderstanderCallback Method

Definition

Registers for notifications that the enabled Personal Context understanders have changed.

[Android.Runtime.Register("registerUnderstanderCallback", "(Ljava/util/concurrent/Executor;Ljava/lang/Runnable;)V", "", ApiSince=37)]
public void RegisterUnderstanderCallback(Java.Util.Concurrent.IExecutor executor, Java.Lang.IRunnable callback);
[<Android.Runtime.Register("registerUnderstanderCallback", "(Ljava/util/concurrent/Executor;Ljava/lang/Runnable;)V", "", ApiSince=37)>]
member this.RegisterUnderstanderCallback : Java.Util.Concurrent.IExecutor * Java.Lang.IRunnable -> unit

Parameters

executor
IExecutor

The executor that runs the callback when the enabled-understander list changes.

callback
IRunnable

The callback to register for changes to the enabled-understander list.

Attributes

Remarks

Registration requires no permission. When notified, read EnabledUnderstanders to obtain the updated list.

Applies to