//sdk-realtime/me.oriient.ipssdk.api/IPSGeofencing
IPSGeofencing
[common]\ open class IPSGeofencing
This class represents the Indoor Positioning System (IPS) geofencing client. It enables the user to use the systems geofencing services on IPSBuilding.
Since
2.14.0
Constructors
| IPSGeofencing | [common] constructor() |
Properties
| Name | Summary |
|---|---|
| INTENT_BUILDING_IDS_KEY | [common] val INTENT_BUILDING_IDS_KEY: String = "BuildingIds" The key of the ids of the buildings on which the transition occurred. |
| INTENT_BUILDING_NAMES_KEY | [common] val INTENT_BUILDING_NAMES_KEY: String = "BuildingNames" The key of the names of the buildings on which the transition occurred. |
| INTENT_TRANSITION_TYPE_KEY | [common] val INTENT_TRANSITION_TYPE_KEY: String = "TransitionType" The key of the transition which occurred. |
Functions
| Name | Summary |
|---|---|
| addLiveGeofenceListener | [common] open fun addLiveGeofenceListener(buildingId: String, listener: IPSLiveGeofenceListener) This method will add a listener to receive a notification when the device crosses the geofence radius of the building. |
| clearLiveGeofenceListeners | [common] open fun clearLiveGeofenceListeners() This method will remove all the listeners for all the buildings. |
| getBuildingsNearBy | [common] open fun getBuildingsNearBy(): List<String> This method returns all the building that the device is located inside their geofence, empty list if none. |
| removeLiveGeofenceListener | [common] open fun removeLiveGeofenceListener(buildingId: String, listener: IPSLiveGeofenceListener) This method will remove the listener if it was previously added using addLiveGeofenceListener. |