LocationRequest.Builder.SetMaxUpdates(Int32) Method

Definition

Sets the maximum number of location updates before this request is automatically removed.

[Android.Runtime.Register("setMaxUpdates", "(I)Landroid/location/LocationRequest$Builder;", "", ApiSince=31)]
public Android.Locations.LocationRequest.Builder SetMaxUpdates(int maxUpdates);
[<Android.Runtime.Register("setMaxUpdates", "(I)Landroid/location/LocationRequest$Builder;", "", ApiSince=31)>]
member this.SetMaxUpdates : int -> Android.Locations.LocationRequest.Builder

Parameters

maxUpdates
Int32

The maximum number of updates before the request is removed. The value must be at least 1.

Returns

This builder.

Attributes

Remarks

The default is int.MaxValue, which represents an unlimited number of updates.

Java documentation for android.location.LocationRequest.Builder.setMaxUpdates(int).

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