Język

LocationRequest.Builder.SetQuality(Int32) Method

Definition

Sets the request quality.

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

Parameters

quality
Int32

Value is one of the following: LocationRequest.QUALITY_LOW_POWER; LocationRequest.QUALITY_BALANCED_POWER_ACCURACY; LocationRequest.QUALITY_HIGH_ACCURACY

Returns

Attributes

Remarks

Sets the request quality. The quality is a hint to providers on how they should weigh power vs accuracy tradeoffs. High accuracy locations may cost more power to produce, and lower accuracy locations may cost less power to produce. Defaults to LocationRequest.QUALITY_BALANCED_POWER_ACCURACY.

Android reference for android.location.LocationRequest.Builder.setQuality.

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