The Geofence class stores geofences.
More...
Inheritance diagram for Geofence:Public Member Functions | |
| boolean | equals (Object o) |
| native int | getAngle () |
| native GeofenceFunction | getFunctionType () |
| native String | getName () |
| native Position | getPosition () |
| native int | getRadiusMeters () |
| native Position | getWgs84Position () |
| native ApiError | setAngle (int angle) |
| native ApiError | setFunctionType (GeofenceFunction type) |
| native ApiError | setName (String name) |
| native ApiError | setPosition (Position pos) |
| native ApiError | setRadiusMeters (int radiusMeters) |
| native ApiError | setWgs84Position (Position wgsPosition) |
Static Public Member Functions | |
| static native ApiError | addFence (Geofence fence) |
| static native Iterable< Geofence > | getGeoFenceIterator () |
| static native ApiError | removeAll () |
| static native ApiError | removeAt (int index) |
The user can add or remove fences from this structure at all times. Duplicates are allowed. The fences are persistently stored in the file geofences.xml
Adds a copy of a fence at the end of the fence list.
| fence | geofence to add |
|
inherited |
| native int getAngle | ( | ) |
Get the emergency routing (reckless driving) radius in meters.
| native GeofenceFunction getFunctionType | ( | ) |
|
static |
| native Position getPosition | ( | ) |
| native int getRadiusMeters | ( | ) |
| native Position getWgs84Position | ( | ) |
|
static |
|
static |
Remove the fence with the given index.
| index | - position in favorite iterator. |
| native ApiError setAngle | ( | int | angle | ) |
| native ApiError setFunctionType | ( | GeofenceFunction | type | ) |
Sets the function type of this fence. What should happen, if the current position reaches this fence.
| computationSite | See GeofenceFunction |
| native ApiError setName | ( | String | name | ) |
Set Fence position in internal coordinates
| pos | position to set |
| native ApiError setRadiusMeters | ( | int | radiusMeters | ) |
Set Waypoint position in WGS84 coordinates