Language

LocationRequest.Builder.SetMinUpdateIntervalMillis(Int64) Method

Definition

Sets an explicit minimum update interval.

[Android.Runtime.Register("setMinUpdateIntervalMillis", "(J)Landroid/location/LocationRequest$Builder;", "", ApiSince=31)]
public Android.Locations.LocationRequest.Builder SetMinUpdateIntervalMillis(long minUpdateIntervalMillis);
[<Android.Runtime.Register("setMinUpdateIntervalMillis", "(J)Landroid/location/LocationRequest$Builder;", "", ApiSince=31)>]
member this.SetMinUpdateIntervalMillis : int64 -> Android.Locations.LocationRequest.Builder

Parameters

minUpdateIntervalMillis
Int64

The minimum interval, in milliseconds, between updates. The value must be non-negative.

Returns

This builder.

Attributes

Remarks

When updates are available more frequently than the request interval, this interval controls how frequently updates are delivered. Android allows a small amount of timing jitter, so an update can arrive slightly earlier than the specified interval. Without an explicit value, the system chooses a sensible default between zero and the request interval.

When Build() is called, the smaller of the request interval and this value becomes the built request's minimum update interval.

Java documentation for android.location.LocationRequest.Builder.setMinUpdateIntervalMillis(long).

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