public class LifecycleDelegate extends BaseApplicationDelegate implements me.adaptive.arp.api.ILifecycle
| Constructor and Description |
|---|
LifecycleDelegate()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLifecycleListener(me.adaptive.arp.api.ILifecycleListener listener)
Add the listener for the lifecycle of the app
|
boolean |
isBackground()
Whether the application is in background or not
|
void |
removeLifecycleListener(me.adaptive.arp.api.ILifecycleListener listener)
Un-registers an existing listener from receiving lifecycle events.
|
void |
removeLifecycleListeners()
Removes all existing listeners from receiving lifecycle events.
|
getAPIGroup, getAPIVersionpublic void addLifecycleListener(me.adaptive.arp.api.ILifecycleListener listener)
addLifecycleListener in interface me.adaptive.arp.api.ILifecyclelistener - Lifecycle listenerpublic boolean isBackground()
isBackground in interface me.adaptive.arp.api.ILifecyclepublic void removeLifecycleListener(me.adaptive.arp.api.ILifecycleListener listener)
removeLifecycleListener in interface me.adaptive.arp.api.ILifecyclelistener - Lifecycle listenerpublic void removeLifecycleListeners()
removeLifecycleListeners in interface me.adaptive.arp.api.ILifecycle