LocationRequest.Builder.SetDurationMillis(Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the duration that this request continues before it is automatically removed.
[Android.Runtime.Register("setDurationMillis", "(J)Landroid/location/LocationRequest$Builder;", "", ApiSince=31)]
public Android.Locations.LocationRequest.Builder SetDurationMillis(long durationMillis);
[<Android.Runtime.Register("setDurationMillis", "(J)Landroid/location/LocationRequest$Builder;", "", ApiSince=31)>]
member this.SetDurationMillis : int64 -> Android.Locations.LocationRequest.Builder
Parameters
- durationMillis
- Int64
The duration, in milliseconds, before the request is automatically removed. The value must be at least 1.
Returns
This builder.
- Attributes
Remarks
Defaults to long.MaxValue, which represents an unlimited duration.
Java documentation for android.location.LocationRequest.Builder.setDurationMillis(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.