ProviderProperties.Builder.SetHasNetworkRequirement(Boolean) 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 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
Returns
- 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.