Taal

ProviderProperties.Builder.SetHasNetworkRequirement(Boolean) Method

Definition

Sets whether a provider requires network access.

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

Parameters

requiresNetwork
Boolean

true to indicate that the provider requires access to a data network; otherwise, false.

Returns

This builder instance.

Attributes

Remarks

Sets whether a provider requires network access. False by default.

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

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