目录

CLASS info
public class GeofenceRequest implements Parcelable, IMessageEntity
Geofence request information class.

Constant Summary

TypeNameDesc
intENTER_INIT_CONVERSIONENTER_INIT_CONVERSION is triggered immediately when a request is initiated to add the geofence where a user device has already entered.
intEXIT_INIT_CONVERSIONEXIT_INIT_CONVERSION is triggered immediately when a request is initiated to add the geofence where a user device has already exit.
intDWELL_INIT_CONVERSIONDWELL_INIT_CONVERSION is triggered immediately when a request is initiated to add the geofence where a user device has already entered and stayed for the specified duration.

Public Method Summary

Return typeMethod name
List<Geofence>getGeofences()
intgetInitConversions()

Constants

Constant
int ENTER_INIT_CONVERSION

ENTER_INIT_CONVERSION is converted immediately when a request is initiated to add the geofence where a user device has already entered.

Constant Value: 1

Constant
int EXIT_INIT_CONVERSION

EXIT_INIT_CONVERSION is converted immediately when a request is initiated to add the geofence where a user device has already exit.

Constant Value: 2

Constant
int DWELL_INIT_CONVERSION

DWELL_INIT_CONVERSION is converted immediately when a request is initiated to add the geofence where a user device has already entered and stayed for the specified duration.

Constant Value: 4

Public Methods

Method
public List<Geofence> getGeofences()
This API is used to obtain a list of geofences to be monitored.

Return

typedesc
List<Geofence>List of geofences to be monitored.
Method
public int getInitConversions()
This API is used to obtain the conversion type at the moment when the geofence is added successfully.

Return

typedesc
intGeofence convert type.