Interface Screen
A Context
associated with an Activity
for tracking and personalization, when an app can use an Activity
for each screen or page of the app. You can retrieve a screen associated with an Activity
via Evergage.getScreenForActivity(Activity)
.
For non-ignorable activities, the Screen
is created during super.onCreate()
and destroyed during super.onDestroy()
.
For information on APIs to track item views, interactions, manual actions, and handle data campaigns, see Context
.
If your app cannot use an Activity
for each of it's screens or pages, see Evergage.getGlobalContext()
Method | Modifier and Type | Description |
---|---|---|
isRunning() | Boolean | If the screen is running (typically foreground/foremost Activity). |
If the screen is running (typically foreground/foremost Activity). Personalization automatically updates this state based on the eligible activity's super.onResume()
and super.onPause()
.
Returns:
true
, if the screen is running.