-
public interface IThingGeoFenceOperate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfaceIThingGeoFenceOperate.InitialTrigger
-
Method Summary
Modifier and Type Method Description abstract voidaddGeoFence(int type, LocationInfo info, OnThingGeoFenceStatusListener listener)Add geofence. abstract voidaddGeoFence(int type, int initialTriggerType, LocationInfo info, OnThingGeoFenceStatusListener listener)Add geofence. abstract voidaddAllGeoFence(List<ThingGeoFence> thingGeoFences)Add geofences in bulk. abstract voidaddAllGeoFence(List<ThingGeoFence> thingGeoFences, int initialTriggerType)Add geofences in bulk. abstract voidremoveAllGeoFence(OnThingGeoFenceStatusListener listener)Remove geofences in bulk. abstract voidremoveGeoFence(String geoFenceId, OnThingGeoFenceStatusListener listener)remove geofence. abstract intgetGeoFenceCount()Get the current number of geofences. -
-
Method Detail
-
addGeoFence
abstract void addGeoFence(int type, LocationInfo info, OnThingGeoFenceStatusListener listener)
Add geofence.
- Parameters:
type- Action type.info- Location related information.listener- Callback for ack message.
-
addGeoFence
abstract void addGeoFence(int type, int initialTriggerType, LocationInfo info, OnThingGeoFenceStatusListener listener)
Add geofence.
- Parameters:
type- Action type.initialTriggerType- Notification behavior when geofences are added.info- Location related information.listener- Callback for ack message.
-
addAllGeoFence
abstract void addAllGeoFence(List<ThingGeoFence> thingGeoFences)
Add geofences in bulk.
- Parameters:
thingGeoFences- List of geofence's info.
-
addAllGeoFence
abstract void addAllGeoFence(List<ThingGeoFence> thingGeoFences, int initialTriggerType)
Add geofences in bulk.
- Parameters:
thingGeoFences- List of geofence's info.initialTriggerType- Notification behavior when geofences are added.
-
removeAllGeoFence
abstract void removeAllGeoFence(OnThingGeoFenceStatusListener listener)
Remove geofences in bulk.
- Parameters:
listener- Callback for ack message.
-
removeGeoFence
abstract void removeGeoFence(String geoFenceId, OnThingGeoFenceStatusListener listener)
remove geofence.
- Parameters:
geoFenceId- geofence's id.listener- Callback for ack message.
-
getGeoFenceCount
abstract int getGeoFenceCount()
Get the current number of geofences.
-
-
-
-