次の方法で共有


GeofenceHardwareCallback.OnGeofenceAdd(Int32, GeofenceMonitorStatus) Method

Definition

The callback called to notify the success or failure of the add call.

[Android.Runtime.Register("onGeofenceAdd", "(II)V", "GetOnGeofenceAdd_IIHandler")]
public virtual void OnGeofenceAdd (int geofenceId, Android.Hardware.Location.GeofenceMonitorStatus status);
[<Android.Runtime.Register("onGeofenceAdd", "(II)V", "GetOnGeofenceAdd_IIHandler")>]
abstract member OnGeofenceAdd : int * Android.Hardware.Location.GeofenceMonitorStatus -> unit
override this.OnGeofenceAdd : int * Android.Hardware.Location.GeofenceMonitorStatus -> unit

Parameters

geofenceId
Int32

The ID of the geofence.

status
GeofenceMonitorStatus

One of GeofenceHardware#GEOFENCE_SUCCESS, GeofenceHardware#GEOFENCE_ERROR_ID_EXISTS, GeofenceHardware#GEOFENCE_ERROR_INVALID_TRANSITION, GeofenceHardware#GEOFENCE_ERROR_TOO_MANY_GEOFENCES, GeofenceHardware#GEOFENCE_FAILURE

Attributes

Remarks

The callback called to notify the success or failure of the add call.

Java documentation for android.hardware.location.GeofenceHardwareCallback.onGeofenceAdd(int, 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