GeofenceHardwareCallback.OnGeofenceTransition メソッド

定義

特定のジオフェンスのレポートへの遷移がある場合に呼び出されるコールバック。

[Android.Runtime.Register("onGeofenceTransition", "(IILandroid/location/Location;JI)V", "GetOnGeofenceTransition_IILandroid_location_Location_JIHandler")]
public virtual void OnGeofenceTransition (int geofenceId, Android.Hardware.Location.GeofenceTransition transition, Android.Locations.Location? location, long timestamp, int monitoringType);
[<Android.Runtime.Register("onGeofenceTransition", "(IILandroid/location/Location;JI)V", "GetOnGeofenceTransition_IILandroid_location_Location_JIHandler")>]
abstract member OnGeofenceTransition : int * Android.Hardware.Location.GeofenceTransition * Android.Locations.Location * int64 * int -> unit
override this.OnGeofenceTransition : int * Android.Hardware.Location.GeofenceTransition * Android.Locations.Location * int64 * int -> unit

パラメーター

geofenceId
Int32

ジオフェンスのジオフェンス ID

transition
GeofenceTransition

GeofenceHardware#GEOFENCE_ENTEREDGeofenceHardware#GEOFENCE_EXITEDGeofenceHardware#GEOFENCE_UNCERTAIN のいずれか。

location
Location

監視システムに従った最後の既知の場所。

timestamp
Int64

遷移が検出されたタイムスタンプ (ミリ秒単位の経過時間)

monitoringType
Int32

監視システムの種類。

属性

注釈

特定のジオフェンスのレポートへの遷移がある場合に呼び出されるコールバック。

android.hardware.location.GeofenceHardwareCallback.onGeofenceTransition(int, int, android.location.Location, long, int)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象