public abstract class KeyedAppStatesService
extends Service

   ↳ android.content.Context
     ↳ android.content.ContextWrapper

Base service for receiving app states in Device Owner and Profile Owner apps.

Extend this class and declare it as a service in the manifest. For example, if your service is called 'MyAppStatesService', including the following in the manifest:

 <service android:name=".MyAppStatesService">
         <action android:name="" />

Override onReceive(Collection, boolean) to receive keyed app states. onReceive(Collection, boolean) is invoked on a background thread.


Inherited constants