Język

GnssMeasurementRequest.Builder.SetIntervalMillis(Int32) Method

Definition

Set the time interval between the reported measurements in milliseconds, which is 0 by default.

[Android.Runtime.Register("setIntervalMillis", "(I)Landroid/location/GnssMeasurementRequest$Builder;", "", ApiSince=33)]
public Android.Locations.GnssMeasurementRequest.Builder SetIntervalMillis(int value);
[<Android.Runtime.Register("setIntervalMillis", "(I)Landroid/location/GnssMeasurementRequest$Builder;", "", ApiSince=33)>]
member this.SetIntervalMillis : int -> Android.Locations.GnssMeasurementRequest.Builder

Parameters

value
Int32

Value is 0 or greater

Returns

Attributes

Remarks

Set the time interval between the reported measurements in milliseconds, which is 0 by default. The request interval may be set to GnssMeasurementRequest.PASSIVE_INTERVAL which indicates this request will not actively generate GNSS measurement updates, but may receive GNSS measurement updates generated as a result of other GNSS measurement requests.

An interval of 0 milliseconds means the fastest rate the chipset can report.

The GNSS chipset may report measurements with a rate faster than requested.

Note that on Android T, a request interval of GnssMeasurementRequest.PASSIVE_INTERVAL will first trigger one GNSS measurement. Another GNSS measurement will be triggered after GnssMeasurementRequest.PASSIVE_INTERVAL milliseconds and so on.

Android reference for android.location.GnssMeasurementRequest.Builder.setIntervalMillis.

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