Language

LocationRequest.Builder.SetMaxUpdateDelayMillis(Int64) Method

Definition

Sets the maximum time an update can be delayed to enable location batching.

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

Parameters

maxUpdateDelayMillis
Int64

The maximum delay, in milliseconds, before an update can be delivered in a batch. The value must be non-negative.

Returns

This builder.

Attributes

Remarks

If the maximum update delay is at least twice the request interval, location providers can provide batched results. The default is zero, which disables batching.

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