| java.lang.Object | |
| ↳ | com.urbanairship.iam.InAppActivityMonitor |
Activity monitor that filters out any activities with EXCLUDE_FROM_AUTO_SHOW metadata.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | EXCLUDE_FROM_AUTO_SHOW | Metadata an app can use to prevent an in-app message from showing on a specific activity. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
addActivityListener(ActivityListener listener)
Adds an activity listener.
| ||||||||||
| void |
addApplicationListener(ApplicationListener listener)
Adds an application listener.
| ||||||||||
| List<Activity> |
getResumedActivities()
Gets the list of current resumed activities.
| ||||||||||
| List<Activity> |
getResumedActivities(Predicate<Activity> filter)
Gets the list of current resumed activities that match the filter.
| ||||||||||
| boolean |
isAppForegrounded()
Determines if the application is in the foreground.
| ||||||||||
| void |
removeActivityListener(ActivityListener listener)
Removes an activity listener.
| ||||||||||
| void |
removeApplicationListener(ApplicationListener listener)
Removes an application listener.
| ||||||||||
| static InAppActivityMonitor |
shared(Context context)
Gets the shared in-app activity monitor instance.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.urbanairship.app.ActivityMonitor
| |||||||||||
Metadata an app can use to prevent an in-app message from showing on a specific activity.
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. |
|---|
Gets the shared in-app activity monitor instance.
| context | The application context. |
|---|