GeofenceHardwareCallback.OnGeofenceTransition Method

Definition

The callback called when there is a transition to report for the specific geofence.

[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

Parameters

geofenceId
Int32

The geofence ID of the geofence

transition
GeofenceTransition

One of GeofenceHardware#GEOFENCE_ENTERED, GeofenceHardware#GEOFENCE_EXITED, GeofenceHardware#GEOFENCE_UNCERTAIN

location
Location

The last known location according to the monitoring system.

timestamp
Int64

The timestamp (elapsed real time in milliseconds) when the transition was detected

monitoringType
Int32

Type of the monitoring system.

Attributes

Remarks

The callback called when there is a transition to report for the specific geofence.

Java documentation for android.hardware.location.GeofenceHardwareCallback.onGeofenceTransition(int, int, android.location.Location, long, int).

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