Sdílet prostřednictvím


LocationManager.KeyLocations Field

Definition

Key used for an extra holding a array of Locations when a location change is sent using a PendingIntent.

[Android.Runtime.Register("KEY_LOCATIONS", ApiSince=31)]
public const string KeyLocations;
[<Android.Runtime.Register("KEY_LOCATIONS", ApiSince=31)>]
val mutable KeyLocations : string

Field Value

Attributes

Remarks

Key used for an extra holding a array of Locations when a location change is sent using a PendingIntent. This key will only be present if the location change includes multiple (ie, batched) locations, otherwise only #KEY_LOCATION_CHANGED will be present. Use Intent#getParcelableArrayExtra(String) to retrieve the locations.

The array of locations will never be empty, and will ordered from earliest location to latest location, the same as with LocationListener#onLocationChanged(List).

Java documentation for android.location.LocationManager.KEY_LOCATIONS.

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