共用方式為


ILocationListener.OnLocationChanged(Location) 方法

定義

當位置變更時呼叫。

[Android.Runtime.Register("onLocationChanged", "(Landroid/location/Location;)V", "GetOnLocationChanged_Landroid_location_Location_Handler:Android.Locations.ILocationListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnLocationChanged (Android.Locations.Location location);
[<Android.Runtime.Register("onLocationChanged", "(Landroid/location/Location;)V", "GetOnLocationChanged_Landroid_location_Location_Handler:Android.Locations.ILocationListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnLocationChanged : Android.Locations.Location -> unit

參數

location
Location

更新的位置

屬性

備註

當位置變更時呼叫。 此回呼執行時,可能會代表接聽程式保留喚醒鎖定一段時間。 如果此回呼執行長時間執行的作業,則用戶端有責任在必要時取得自己的喚醒鎖定。

android.location.LocationListener.onLocationChanged(android.location.Location)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於