Share via


RangingPreference.Builder(Int32, RangingConfig) Constructor

Definition

Creates a Builder instance with the required device role and RangingConfig.

[Android.Runtime.Register(".ctor", "(ILandroid/ranging/RangingConfig;)V", "", ApiSince=36)]
public Builder(int role, Android.Ranging.RangingConfig rangingConfig);
[<Android.Runtime.Register(".ctor", "(ILandroid/ranging/RangingConfig;)V", "", ApiSince=36)>]
new Android.Ranging.RangingPreference.Builder : int * Android.Ranging.RangingConfig -> Android.Ranging.RangingPreference.Builder

Parameters

role
Int32

the role of the device in DeviceRole

rangingConfig
RangingConfig

the RangingConfig to use. Needs to be an instance of one of the following: <ul> <li>RawResponderRangingConfig</li> <li>RawInitiatorRangingConfig</li> <li>OobResponderRangingConfig</li> <li>OobInitiatorRangingConfig</li> </ul>

Attributes

Remarks

Creates a Builder instance with the required device role and RangingConfig.

Java documentation for android.ranging.RangingPreference.Builder.RangingPreference$Builder(int, 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