RangingManager.RegisterCapabilitiesCallback 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 a callback to receive ranging capabilities updates.
[Android.Runtime.Register("registerCapabilitiesCallback", "(Ljava/util/concurrent/Executor;Landroid/ranging/RangingManager$RangingCapabilitiesCallback;)V", "", ApiSince=36)]
public void RegisterCapabilitiesCallback(Java.Util.Concurrent.IExecutor executor, Android.Ranging.RangingManager.IRangingCapabilitiesCallback callback);
[<Android.Runtime.Register("registerCapabilitiesCallback", "(Ljava/util/concurrent/Executor;Landroid/ranging/RangingManager$RangingCapabilitiesCallback;)V", "", ApiSince=36)>]
member this.RegisterCapabilitiesCallback : Java.Util.Concurrent.IExecutor * Android.Ranging.RangingManager.IRangingCapabilitiesCallback -> unit
Parameters
- executor
- IExecutor
The executor on which the callback will be invoked.
The callback that receives capabilities updates.
- Attributes
Remarks
Registers a callback to receive ranging capabilities updates.
Callback events are dispatched through the provided executor, which controls the thread on which they run. Use Context.getMainExecutor() to dispatch events on the application's main thread, or provide an executor for another suitable thread.
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.