語言

LocationManager.KeyLocations 欄位

定義

當位置變更透過 PendingIntent 傳送時,額外用於儲存 s 陣列 Location的鍵。

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

欄位值

屬性

備註

當位置變更透過 PendingIntent 傳送時,額外用於儲存 s 陣列 Location的鍵。 此金鑰僅在位置變更包含多個(即批次)位置時才會存在,否則僅 #KEY_LOCATION_CHANGED 會存在。 用 Intent#getParcelableArrayExtra(String) 來取得位置。

位置陣列永遠不會是空的,且會依序從最早的位置到最新的位置排列,與 相同。LocationListener#onLocationChanged(List)

Java 文件 android.location.LocationManager.KEY_LOCATIONS。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於