java.lang.Object |
↳ |
ListenableWorker |
|
↳ |
com.mapsted.positioning.MapstedCoreWorker |
Class Overview
The usage of this class is for cases where the SDK has been in background mode for multiple
hours (typically > 2hrs) and the system automatically shuts down the app/sdk due to user inactivity
For some clients, they wished to have consistent location updates in background even after the
system shuts down our sdk.
The purpose of this class is to:
1. Periodically wake-up the sdk (e.g., every 15 min)
2. Initialize core sdk and obtain a position estimates then shut down the sdk
3. Repeat this precess, etc.
The idea is to ensure that we get periodic location updates even after extended background usage.
Note that this class should only even come into play if the CoreParams#autoWakeFromDeepSleep is set to true
Summary
Fields |
public
static
final
String |
TAG |
|
Public Constructors |
|
MapstedCoreWorker(Context context, WorkerParameters workerParams)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Fields
public
static
final
String
TAG
Public Constructors
public
MapstedCoreWorker
(Context context, WorkerParameters workerParams)
Public Methods
public
static
void
cancel
(Context appContext)
public
static
void
setup
(Context appContext)