Listener interface for the Geofence background tracking functionality.
This is a Listener to the Locations events see LocationManager.setLocationListener
Metadata for geofencing support that allows tracking user location in the background while the app is inactive.
The sample below tracks location and posts a notification or shows a dialog based on the state of the app:
A utility class to simplify Geofencing in Codename One.
For internal use only.
Represents a position and possible velocity returned from positioning API's.
The LocationManager is the main entry to retrieveLocation or to bind a LocationListener, important: in order to use location on iOS you will need to define the build argument
This class is used when requesting to listen to location update.
Abstraction of location services (GPS/Geofencing etc.) providing user global positioning and monitoring over such changes both in the foreground and background.
Trivial one time usage of location data can look like this sample:
You can also track location in the foreground using API calls like this:
Geofencing allows tracking whether a user entered a specific region, this can work when the app is completely in the background and is very efficient in terms of battery life: