| Package | Description |
|---|---|
| com.codename1.location |
Abstraction of location services (GPS/Geofencing etc.) providing user global positioning and monitoring over
such changes both in the foreground and background.
|
| Modifier and Type | Method and Description |
|---|---|
List<Geofence> |
GeofenceManager.asList()
Returns the Geofences as a list.
|
Map<String,Geofence> |
GeofenceManager.asMap()
Returns the Geofences as a Map.
|
List<Geofence> |
GeofenceManager.asSortedList()
Returns all Geofences sorted by distance from the current location.
|
static Comparator<Geofence> |
Geofence.createDistanceComparator(Geofence refRegion)
Creates a comparator for sorting Geofences from the current Geofence.
|
static Comparator<Geofence> |
Geofence.createDistanceComparator(Location refPoint)
Creates a comparator for sorting Geofences from the given reference point.
|
Iterator<Geofence> |
GeofenceManager.iterator()
Iterates over all geofences that are being monitored.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GeofenceManager.add(Geofence... geofence)
Adds a set of regions to be monitored by GeofenceManager.
|
void |
LocationManager.addGeoFencing(Class GeofenceListenerClass,
Geofence gf)
Adds a geo fence listener to gets an event once the device is in/out of
the Geofence range.
|
static Comparator<Geofence> |
Geofence.createDistanceComparator(Geofence refRegion)
Creates a comparator for sorting Geofences from the current Geofence.
|
double |
Geofence.getDistanceTo(Geofence gf)
Gets the distance between the current region and the given region.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GeofenceManager.add(Collection<Geofence> geofences)
Adds a set of regions to be monitored by GeofenceManager.
|
Copyright © 2022. All rights reserved.