PersonalContextManager.RegisterUnderstanderCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.