RangingSession.AddDeviceToRangingSession(RangingConfig) Method

Definition

Adds a new device to an ongoing ranging session.

[Android.Runtime.Register("addDeviceToRangingSession", "(Landroid/ranging/RangingConfig;)V", "", ApiSince=36)]
[Android.Runtime.RequiresPermission("android.permission.RANGING")]
public void AddDeviceToRangingSession(Android.Ranging.RangingConfig deviceRangingParams);
[<Android.Runtime.Register("addDeviceToRangingSession", "(Landroid/ranging/RangingConfig;)V", "", ApiSince=36)>]
[<Android.Runtime.RequiresPermission("android.permission.RANGING")>]
member this.AddDeviceToRangingSession : Android.Ranging.RangingConfig -> unit

Parameters

deviceRangingParams
RangingConfig

the ranging parameters for the device to be added, which must be an instance of RawResponderRangingConfig

Attributes

Remarks

Adds a new device to an ongoing ranging session.

This method allows for adding a new device to an active ranging session using raw ranging parameters. Only devices represented by RawResponderRangingConfig is supported. If the provided RangingConfig does not match one of these types, the addition fails and invokes Callback#onOpenFailed(int) with a reason of Callback#REASON_UNSUPPORTED.

Java documentation for android.ranging.RangingSession.addDeviceToRangingSession(android.ranging.RangingConfig).

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