LocationRequest.IntervalMillis Property

Definition

Returns the desired interval of location updates, or #PASSIVE_INTERVAL if this is a passive, no power request.

public long IntervalMillis { [Android.Runtime.Register("getIntervalMillis", "()J", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getIntervalMillis", "()J", "", ApiSince=31)>]
member this.IntervalMillis : int64

Property Value

the desired interval of location updates

Attributes

Remarks

Returns the desired interval of location updates, or #PASSIVE_INTERVAL if this is a passive, no power request. A passive request will not actively generate location updates (and thus will not be power blamed for location), but may receive location updates generated as a result of other location requests. A passive request must always have an explicit minimum update interval set.

Locations may be available at a faster interval than specified here, see #getMinUpdateIntervalMillis() for the behavior in that case.

Java documentation for android.location.LocationRequest.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