-
public interface IThingGeoFenceOperate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interface
IThingGeoFenceOperate.InitialTrigger
-
Method Summary
Modifier and Type Method Description abstract void
addGeoFence(int type, LocationInfo info, OnThingGeoFenceStatusListener listener)
Add geofence. abstract void
addGeoFence(int type, int initialTriggerType, LocationInfo info, OnThingGeoFenceStatusListener listener)
Add geofence. abstract void
addAllGeoFence(List<ThingGeoFence> thingGeoFences)
Add geofences in bulk. abstract void
addAllGeoFence(List<ThingGeoFence> thingGeoFences, int initialTriggerType)
Add geofences in bulk. abstract void
removeAllGeoFence(OnThingGeoFenceStatusListener listener)
Remove geofences in bulk. abstract void
removeGeoFence(String geoFenceId, OnThingGeoFenceStatusListener listener)
remove geofence. abstract int
getGeoFenceCount()
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.
-
-
-
-