Interface Screen
A "screen" of the app, and the context for its associated user activity.
Typically the app's Activity classes define the app's screens. An Activity's associated screen can be retrieved via Evergage.getScreenForActivity(Activity)
.
For information on APIs to track item views, interactions, manual actions, and handle data campaigns, see Context
.
To enable a non-activity "screen", contact the Marketing Cloud Personalization support team.
Method | Modifier and Type | Description |
---|---|---|
isRunning() | boolean | If the screen is running (typically foreground/front-most Activity). |
Methods inherited from interface com.evergage.android.Context
:
addToCart
comment
favorite
isActive()
purchase
review
review(Item)
setCampaignHandler
share
trackAction
trackClickthrough
trackClickthrough(Intent)
trackClickthrough(Intent)
trackDismissal
trackImpression
viewCategory
viewCategory(String)
viewItem
viewItem(String)
viewItemDetail
viewItemDetail(String)
viewTag
viewTag(String)
If the screen is running (typically foreground/front-most Activity). Personalization automatically updates this state based on the eligible activity's super.onResume()
and super.onPause()
.
Returns:
true
, if the screen is running.