Geofence

GeographicArea object. This object represents a geographical area on the surface of a WGS 84 Ellipsoid. In the calculations related to these geographical areas the altitude information contained in the All geographical areas deal with Coordinates objects.

Constructors

Link copied to clipboard
constructor()
constructor(address: Long)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Functions

Link copied to clipboard
external fun addArea(area: GeographicArea, id: String, meta: ParameterList, listener: ProgressListener): Int

Add a geographic area to the geofence

Link copied to clipboard
external fun addAreas(areas: GeofenceAreaList, listener: ProgressListener): Int

Add list of geographic areas to the geofence

Link copied to clipboard
external fun cancel(listener: ProgressListener)

Cancel an asynchronous operation

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun getAreas(areas: GemList<GeofenceArea>, ids: ArrayList<String>, listener: ProgressListener, meta: ParameterList): Int

Add list of geographic areas to the geofence

Link copied to clipboard
external fun getProximityAreas(coords: Coordinates, radius: Int, listener: ProgressListener, details: Int = 0): Pair<Int, GeofenceProximityAreaList>

Get geofence proximity areas for the given coordinates & radius

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun removeAreas(ids: ArrayList<String>, listener: ProgressListener, meta: ParameterList): Int

Remove geographic areas, identified by ids, from the geofence

Link copied to clipboard
external fun startMonitoringAreas(listener: GeofenceListener, ids: ArrayList<String> = arrayListOf()): Int

Start the monitoring for the given areas

Link copied to clipboard
external fun startMonitoringUser(listener: GeofenceListener, userId: Long): Int

Start the monitoring for the given user

Link copied to clipboard
external fun stopMonitoring(listener: GeofenceListener): Int

Stop the monitoring for the given areas