-
public interface IApplicationServiceThe application service provides the ability to view various application-specific information and subscribe to application events.
-
-
Method Summary
Modifier and Type Method Description abstract BooleanwaitUntilSystemConditionsAvailable()Will determine and suspend until system conditions are available for displaying UI to the user. abstract BooleanwaitUntilActivityReady()Will determine and suspend until the decor view is ready to displayed within. abstract UnitaddActivityLifecycleHandler(IActivityLifecycleHandler handler)Add an activity lifecycle available handler. abstract UnitremoveActivityLifecycleHandler(IActivityLifecycleHandler handler)Remove an activity lifecycle handler. abstract UnitaddApplicationLifecycleHandler(IApplicationLifecycleHandler handler)Add an application available handler. abstract UnitremoveApplicationLifecycleHandler(IApplicationLifecycleHandler handler)Remove an application lifecycle handler. abstract ContextgetAppContext()The application context abstract ActivitygetCurrent()The current activity for the application. abstract BooleangetIsInForeground()Whether the application is currently in the foreground. abstract AppEntryActiongetEntryState()How the application was entered. abstract UnitsetEntryState(AppEntryAction entryState)How the application was entered. -
-
Method Detail
-
waitUntilSystemConditionsAvailable
abstract Boolean waitUntilSystemConditionsAvailable()
Will determine and suspend until system conditions are available for displaying UI to the user.
-
waitUntilActivityReady
abstract Boolean waitUntilActivityReady()
Will determine and suspend until the decor view is ready to displayed within.
-
addActivityLifecycleHandler
abstract Unit addActivityLifecycleHandler(IActivityLifecycleHandler handler)
Add an activity lifecycle available handler.
-
removeActivityLifecycleHandler
abstract Unit removeActivityLifecycleHandler(IActivityLifecycleHandler handler)
Remove an activity lifecycle handler.
-
addApplicationLifecycleHandler
abstract Unit addApplicationLifecycleHandler(IApplicationLifecycleHandler handler)
Add an application available handler.
-
removeApplicationLifecycleHandler
abstract Unit removeApplicationLifecycleHandler(IApplicationLifecycleHandler handler)
Remove an application lifecycle handler.
-
getAppContext
abstract Context getAppContext()
The application context
-
getCurrent
abstract Activity getCurrent()
The current activity for the application. When null the application has no active activity, it is in the background.
-
getIsInForeground
abstract Boolean getIsInForeground()
Whether the application is currently in the foreground.
-
getEntryState
abstract AppEntryAction getEntryState()
How the application was entered. This is writeable to allow for the setting to AppEntryAction.NOTIFICATION_CLICK when it is determined a notification drove the app entry.
-
setEntryState
abstract Unit setEntryState(AppEntryAction entryState)
How the application was entered. This is writeable to allow for the setting to AppEntryAction.NOTIFICATION_CLICK when it is determined a notification drove the app entry.
-
-
-
-