The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

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.

MethodModifier and TypeDescription
isRunning()booleanIf the screen is running (typically foreground/front-most Activity).

Methods inherited from interface com.evergage.android.Context:

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.