In App Message Control
If the user is enrolled in the control group of an in-app message campaign, an InAppMessageControl should be instantiated. InAppMessageControl instances can be serialized and used for analytics only. They should never be used to back an actual in-app message for display.
Constructors
Functions
Instructs the IInAppMessage to apply any dark theme settings and override any existing values present on the IInAppMessage.
Storing in-app messages serialized with this method is primarily for storage as triggered actions. This allows in-app messages to be stored to disk and retrieved later for display when an in-app message triggered action is triggered.
Gets where to find the pre-fetched remote assets specified in setLocalPrefetchedAssetPaths.
Logs a display failure on this in-app message. Failures can only be logged once per in-app message instance and should be logged as early as possible in the display process.
Logs an impression on this in-app message. Impressions may only be logged once per in-app message instance.
Should be called on the in-app message once it is no longer being displayed, to allow it to perform any cleanup or trigger further actions.
Convenience method that calls setClickBehavior(clickAction, null)
.
Sets the click action and/or Uri of this in-app message.
The base In-App Message class does not have assets of its own. Subclasses provide and manage assets.
Properties
The android.graphics.Color background color on this in-app message.
Gets the duration of this in-app message. Only valid for DismissType.AUTO_DISMISS.
The icon color (android.graphics.Color) of this in-app message. This is the color of the icon itself (not the background).