Language

ProviderProperties.Builder.SetHasCellRequirement(Boolean) Method

Definition

Sets whether a provider requires cell tower access.

[Android.Runtime.Register("setHasCellRequirement", "(Z)Landroid/location/provider/ProviderProperties$Builder;", "", ApiSince=31)]
public Android.Locations.Provider.ProviderProperties.Builder SetHasCellRequirement(bool requiresCell);
[<Android.Runtime.Register("setHasCellRequirement", "(Z)Landroid/location/provider/ProviderProperties$Builder;", "", ApiSince=31)>]
member this.SetHasCellRequirement : bool -> Android.Locations.Provider.ProviderProperties.Builder

Parameters

requiresCell
Boolean

true to indicate that the provider requires access to a cellular network, such as access to cell tower identifiers; otherwise, false.

Returns

This builder instance.

Attributes

Remarks

Sets whether a provider requires cell tower access. False by default.

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

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