public class

BackgroundModeService

extends Service
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.app.Service
         ↳ com.steerpath.sdk.location.BackgroundModeService

Class Overview

BackgroundModeService keeps indoor positioning alive when app is sent to the background. It is a foreground service with notification.

Learn more:
https://developer.android.com/about/versions/oreo/background
https://medium.com/@debuggingisfun/android-auto-stop-background-service-336e8b3ff03c
https://medium.com/@debuggingisfun/android-o-work-around-background-service-limitation-e697b2192bc3
https://stackoverflow.com/questions/46946074/huawei-bluetooth-behaviour-in-background-scanning

Summary

Nested Classes
class BackgroundModeService.NotificationActionReceiver Listens Actions requests received from the Notifications. 
Constants
String ARGUMENT_EXTRAS Extras Intent key
String EXTRAS_TEST_MODE Extras may enable the test mode
String REQUEST_START Intent key to start the Service.
String REQUEST_STOP Intent key to stop the Service.
String REQUEST_UPDATE Intent key to update some properties of the Service without restarting it.
[Expand]
Inherited Constants
From class android.app.Service
From class android.content.Context
From interface android.content.ComponentCallbacks2
Public Constructors
BackgroundModeService()
Public Methods
IBinder onBind(Intent intent)
void onDestroy()
void onTaskRemoved(Intent rootIntent)
[Expand]
Inherited Methods
From class android.app.Service
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2

Constants

public static final String ARGUMENT_EXTRAS

Extras Intent key

Constant Value: "com.steerpath.sdk.location.ARGUMENT_EXTRAS"

public static final String EXTRAS_TEST_MODE

Extras may enable the test mode

Constant Value: "com.steerpath.sdk.location.EXTRAS_TASK"

public static final String REQUEST_START

Intent key to start the Service.

Constant Value: "com.steerpath.sdk.location.REQUEST_START"

public static final String REQUEST_STOP

Intent key to stop the Service.

Constant Value: "com.steerpath.sdk.location.REQUEST_STOP"

public static final String REQUEST_UPDATE

Intent key to update some properties of the Service without restarting it.

Constant Value: "com.steerpath.sdk.location.REQUEST_UPDATE"

Public Constructors

public BackgroundModeService ()

Public Methods

public IBinder onBind (Intent intent)

public void onDestroy ()

public void onTaskRemoved (Intent rootIntent)