Språk

SessionConfig.Builder.SetRangingMeasurementsLimit(Int32) Method

Definition

Sets the maximum number of ranging rounds for this session.

[Android.Runtime.Register("setRangingMeasurementsLimit", "(I)Landroid/ranging/SessionConfig$Builder;", "", ApiSince=36)]
public Android.Ranging.SessionConfig.Builder SetRangingMeasurementsLimit(int rangingMeasurementsLimit);
[<Android.Runtime.Register("setRangingMeasurementsLimit", "(I)Landroid/ranging/SessionConfig$Builder;", "", ApiSince=36)>]
member this.SetRangingMeasurementsLimit : int -> Android.Ranging.SessionConfig.Builder

Parameters

rangingMeasurementsLimit
Int32

the maximum number of ranging rounds (0 to 65535). Value is between 0 and 65535 inclusive

Returns

this Builder instance. This value cannot be null.

Attributes

Remarks

Sets the maximum number of ranging rounds for this session. This includes all ranging rounds, irrespective of whether they were successful or not. For 1:many sessions, a round includes ranging to all peers within that round.

By default, when the value is set to 0, the ranging session will run indefinitely.

Android reference for android.ranging.SessionConfig.Builder.setRangingMeasurementsLimit.

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