Android.Hardware.Location.GeofenceHardwareCallback.OnGeofenceTransition Method
The callback called when there is a transition to report for the specific geofence.

Syntax

[Android.Runtime.Register("onGeofenceTransition", "(IILandroid/location/Location;JI)V", "GetOnGeofenceTransition_IILandroid_location_Location_JIHandler")]
public virtual void OnGeofenceTransition (int geofenceId, [Android.Runtime.GeneratedEnum] GeofenceTransition transition, Android.Locations.Location location, long timestamp, int monitoringType)

Parameters

geofenceId
The geofence ID of the geofence
transition
One of GeofenceHardware.GeofenceEntered, GeofenceHardware.GeofenceExited, GeofenceHardware.GeofenceUncertain
location
The last known location according to the monitoring system.
timestamp
The timestamp (elapsed real time in milliseconds) when the transition was detected
monitoringType
Type of the monitoring system.

Remarks

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

[Android Documentation]

Requirements

Namespace: Android.Hardware.Location
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18