Language

ProviderProperties.Builder.SetPowerUsage(Int32) Method

Definition

Sets a very rough bucket of provider power usage.

[Android.Runtime.Register("setPowerUsage", "(I)Landroid/location/provider/ProviderProperties$Builder;", "", ApiSince=31)]
public Android.Locations.Provider.ProviderProperties.Builder SetPowerUsage(int powerUsage);
[<Android.Runtime.Register("setPowerUsage", "(I)Landroid/location/provider/ProviderProperties$Builder;", "", ApiSince=31)>]
member this.SetPowerUsage : int -> Android.Locations.Provider.ProviderProperties.Builder

Parameters

powerUsage
Int32

Value is one of the following: ProviderProperties.POWER_USAGE_LOW; ProviderProperties.POWER_USAGE_MEDIUM; ProviderProperties.POWER_USAGE_HIGH

Returns

Attributes

Remarks

Sets a very rough bucket of provider power usage. ProviderProperties.POWER_USAGE_HIGH by default.

Android reference for android.location.provider.ProviderProperties.Builder.setPowerUsage.

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