public class

MapstedCoreWorker

extends ListenableWorker
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)
Public Methods
static void cancel(Context appContext)
void onStopped()
static void setup(Context appContext)
startWork()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final String TAG

Public Constructors

public MapstedCoreWorker (Context context, WorkerParameters workerParams)

Public Methods

public static void cancel (Context appContext)

public void onStopped ()

public static void setup (Context appContext)

public startWork ()