Udostępnij za pośrednictwem


LocationProvider.RequiresNetwork Method

Definition

Returns true if the provider requires access to a data network (e.

[Android.Runtime.Register("requiresNetwork", "()Z", "GetRequiresNetworkHandler")]
public virtual bool RequiresNetwork ();
[<Android.Runtime.Register("requiresNetwork", "()Z", "GetRequiresNetworkHandler")>]
abstract member RequiresNetwork : unit -> bool
override this.RequiresNetwork : unit -> bool

Returns

Attributes

Remarks

Returns true if the provider requires access to a data network (e.g., the Internet), false otherwise.

Java documentation for android.location.LocationProvider.requiresNetwork().

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