Condividi tramite


LocationManager.GetProviders Method

Definition

Overloads

GetProviders(Boolean)

Returns a list of the names of available location providers.

GetProviders(Criteria, Boolean)

Returns a list of the names of available location providers that satisfy the given criteria.

GetProviders(Boolean)

Returns a list of the names of available location providers.

[Android.Runtime.Register("getProviders", "(Z)Ljava/util/List;", "GetGetProviders_ZHandler")]
public virtual System.Collections.Generic.IList<string> GetProviders (bool enabledOnly);
[<Android.Runtime.Register("getProviders", "(Z)Ljava/util/List;", "GetGetProviders_ZHandler")>]
abstract member GetProviders : bool -> System.Collections.Generic.IList<string>
override this.GetProviders : bool -> System.Collections.Generic.IList<string>

Parameters

enabledOnly
Boolean

if true then only enabled providers are included

Returns

list of provider names

Attributes

Remarks

Returns a list of the names of available location providers. If enabledOnly is false, this is functionally the same as #getAllProviders().

Java documentation for android.location.LocationManager.getProviders(boolean).

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

GetProviders(Criteria, Boolean)

Returns a list of the names of available location providers that satisfy the given criteria.

[Android.Runtime.Register("getProviders", "(Landroid/location/Criteria;Z)Ljava/util/List;", "GetGetProviders_Landroid_location_Criteria_ZHandler")]
public virtual System.Collections.Generic.IList<string> GetProviders (Android.Locations.Criteria criteria, bool enabledOnly);
[<Android.Runtime.Register("getProviders", "(Landroid/location/Criteria;Z)Ljava/util/List;", "GetGetProviders_Landroid_location_Criteria_ZHandler")>]
abstract member GetProviders : Android.Locations.Criteria * bool -> System.Collections.Generic.IList<string>
override this.GetProviders : Android.Locations.Criteria * bool -> System.Collections.Generic.IList<string>

Parameters

criteria
Criteria

the criteria that providers must match

enabledOnly
Boolean

if true then only enabled providers are included

Returns

list of provider names

Attributes

Remarks

Returns a list of the names of available location providers that satisfy the given criteria.

This member is deprecated. Criteria based APIs are deprecated, prefer to select a provider explicitly.

Java documentation for android.location.LocationManager.getProviders(android.location.Criteria, boolean).

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