LocationRequest.Builder.SetIntervalMillis(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 request interval.
[Android.Runtime.Register("setIntervalMillis", "(J)Landroid/location/LocationRequest$Builder;", "", ApiSince=31)]
public Android.Locations.LocationRequest.Builder SetIntervalMillis(long intervalMillis);
[<Android.Runtime.Register("setIntervalMillis", "(J)Landroid/location/LocationRequest$Builder;", "", ApiSince=31)>]
member this.SetIntervalMillis : int64 -> Android.Locations.LocationRequest.Builder
Parameters
- intervalMillis
- Int64
The requested update interval, in milliseconds. The value must be non-negative.
Returns
This builder.
- Attributes
Remarks
Setting the interval to PassiveInterval prevents this request from actively generating location updates, while allowing it to receive updates generated by other requests. A passive request must have an explicit minimum update interval.
Locations can be available more frequently than this interval; use SetMinUpdateIntervalMillis(Int64) to control that behavior.
Java documentation for android.location.LocationRequest.Builder.setIntervalMillis(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.