com.mapsted.positioning.CoreApi.Setup |
Access/manage core-related setup
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
addLocationServicesListener(CoreApi.LocationServicesCallback listener)
Register a persistent location services listener
| ||||||||||
abstract boolean |
areLocationServicesRunning()
Checks whether or not the location services are currently running
| ||||||||||
abstract CoreParams |
getCoreParams()
Get the CoreParams that were used for initialization
| ||||||||||
abstract void |
initialize(CoreParams params, CoreApi.CoreInitCallback callback)
Initialize method that gets the SDK ready.
| ||||||||||
abstract boolean |
isInitialized()
Returns if Mapsted Positioning API is initialized or not.
| ||||||||||
abstract boolean |
removeLocationServicesListener(CoreApi.LocationServicesCallback listener)
Unregister a persistent location services listener
| ||||||||||
abstract void |
restrictOffPremiseBackgroundLocationScanning(boolean restrict)
Restricts to reduced background location scanning.
| ||||||||||
abstract void |
setAppForegroundBackgroundListener(AppForegroundBackgroundListener listener)
set listener to get notified when app moves from foreground to background and viceversa.
| ||||||||||
abstract void |
startLocationServices(Context context, CoreApi.LocationServicesCallback callback)
Start location services and foreground service (if not running).
| ||||||||||
abstract void |
stopLocationServices(Context context, CoreApi.LocationServicesCallback callback)
Stop location services (if running)
| ||||||||||
abstract void |
updateForegroundServiceDetails(MapstedForegroundServiceDetails details)
Update the foreground service details (text, icons, return activity)
|
Register a persistent location services listener
listener | the listener |
---|
Checks whether or not the location services are currently running
Get the CoreParams that were used for initialization
Initialize method that gets the SDK ready.
params | The set of customizable params related to the core-sdk |
---|---|
callback | CoreApi.CoreInitCallback Callback to be notified when the SDK initialization is completed.
|
Returns if Mapsted Positioning API is initialized or not.
Unregister a persistent location services listener
listener | the listener |
---|
Restricts to reduced background location scanning. By default this is false (ie no restriction) when it is not explicitly set
set listener to get notified when app moves from foreground to background and viceversa.
Start location services and foreground service (if not running).
context | the application context |
---|---|
callback | the callback reporting whether or not the action was successful |
Stop location services (if running)
context | the application context |
---|---|
callback | the callback reporting whether or not the action was successful |
Update the foreground service details (text, icons, return activity)
details | the details to update |
---|