com.urbanairship.app.ActivityMonitor |
Known Indirect Subclasses |
Activity Monitor.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
addActivityListener(ActivityListener listener)
Adds an activity listener.
| ||||||||||
abstract void |
addApplicationListener(ApplicationListener listener)
Adds an application listener.
| ||||||||||
abstract List<Activity> |
getResumedActivities()
Gets the list of current resumed activities.
| ||||||||||
abstract List<Activity> |
getResumedActivities(Predicate<Activity> filter)
Gets the list of current resumed activities that match the filter.
| ||||||||||
abstract boolean |
isAppForegrounded()
Determines if the application is in the foreground.
| ||||||||||
abstract void |
removeActivityListener(ActivityListener listener)
Removes an activity listener.
| ||||||||||
abstract void |
removeApplicationListener(ApplicationListener listener)
Removes an application listener.
|
Adds an activity listener.
listener | The added listener. |
---|
Adds an application listener.
listener | The added listener. |
---|
Gets the list of current resumed activities.
Gets the list of current resumed activities that match the filter.
filter | A predicate to filter out activities from the result. |
---|
Determines if the application is in the foreground.
true
if the application is in the foreground, otherwise
false
.
Removes an activity listener.
listener | The removed listener. |
---|
Removes an application listener.
listener | The removed listener. |
---|