com.mapsted.positioning.CoreApi.Setup |
Access/manage core-related setup
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
areLocationServicesRunning()
Checks whether or not the location services are currently running
| ||||||||||
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 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)
|
Checks whether or not the location services are currently running
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.
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 |
---|