次の方法で共有


GnssMeasurementRequest.IntervalMillis Property

Definition

Returns the requested time interval between the reported measurements in milliseconds, or #PASSIVE_INTERVAL if this is a passive, no power request.

public int IntervalMillis { [Android.Runtime.Register("getIntervalMillis", "()I", "", ApiSince=33)] get; }
[<get: Android.Runtime.Register("getIntervalMillis", "()I", "", ApiSince=33)>]
member this.IntervalMillis : int

Property Value

Attributes

Remarks

Returns the requested time interval between the reported measurements in milliseconds, or #PASSIVE_INTERVAL if this is a passive, no power request. A passive request will not actively generate GNSS measurement updates, but may receive GNSS measurement updates generated as a result of other GNSS measurement requests.

If the time interval is not set, the default value is 0, which means the fastest rate the GNSS chipset can report.

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

<p class="note">Note that on Android T, a request interval of #PASSIVE_INTERVAL will first trigger one GNSS measurement. Another GNSS measurement will be triggered after #PASSIVE_INTERVAL milliseconds ans so on.

Java documentation for android.location.GnssMeasurementRequest.getIntervalMillis().

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