public interface IInAppMessageImmersive extends IInAppMessage
An immersive in-app message is defined as an in-app message that takes up the entire screen and/or 'blocks' the user from interacting with the app until the message is dismissed. Immersive messages extend the base in-app message with header text, message buttons, and a close button.
All Known Implementing Classes:
InAppMessageImmersiveBase
InAppMessageModal
InAppMessageFull
Modifier and Type | Method and Description |
---|---|
int |
getCloseButtonColor()
Gets the close button color on this in-app message.
|
java.lang.Integer |
getFrameColor()
Gets the frame color for this in-app message.
|
java.lang.String |
getHeader()
Gets the header text on this in-app message.
|
TextAlign |
getHeaderTextAlign()
Get the text alignment for the header text.
|
int |
getHeaderTextColor()
Gets the header text color on this in-app message.
|
ImageStyle |
getImageStyle()
Get the image style on this in-app message.
|
java.util.List<MessageButton> |
getMessageButtons()
Gets the message buttons for this in-app message.
|
boolean |
logButtonClick(MessageButton messageButton)
Logs a click on this message button.
|
void |
setCloseButtonColor(int closeButtonColor)
Sets the close button color on this in-app message.
|
void |
setFrameColor(java.lang.Integer frameColor)
Sets the frame color for this in-app message.
|
void |
setHeader(java.lang.String header)
Sets the header text of this in-app message.
|
void |
setHeaderTextAlign(TextAlign textAlign)
Set the text alignment for the header text.
|
void |
setHeaderTextColor(int headerTextColor)
Sets the header text color on this in-app message.
|
void |
setImageStyle(ImageStyle imageStyle)
Set the image style on this in-app message.
|
void |
setMessageButtons(java.util.List<MessageButton> messageButtons)
Sets the message buttons for this in-app message.
|
getAnimateIn, getAnimateOut, getBackgroundColor, getClickAction, getCropType, getDismissType, getDurationInMilliseconds, getExpirationTimestamp, getExtras, getIcon, getIconBackgroundColor, getIconColor, getLocalPrefetchedAssetPaths, getMessage, getMessageTextAlign, getMessageTextColor, getMessageType, getOpenUriInWebView, getOrientation, getRemoteAssetPathsForPrefetch, getUri, isControl, logClick, logDisplayFailure, logImpression, onAfterClosed, setAnimateIn, setAnimateOut, setBackgroundColor, setClickAction, setClickAction, setCropType, setDismissType, setDurationInMilliseconds, setExpirationTimestamp, setExtras, setIcon, setIconBackgroundColor, setIconColor, setLocalPrefetchedAssetPaths, setMessage, setMessageTextAlign, setMessageTextColor, setOpenUriInWebView, setOrientation
forJsonPut
java.lang.String getHeader()
int getHeaderTextColor()
Color
int getCloseButtonColor()
Color
java.util.List<MessageButton> getMessageButtons()
See MessageButton
.
java.lang.Integer getFrameColor()
ImageStyle getImageStyle()
TextAlign getHeaderTextAlign()
void setHeaderTextAlign(TextAlign textAlign)
textAlign
- the text alignment for the header textvoid setImageStyle(ImageStyle imageStyle)
imageStyle
- the image style for this in-app messagevoid setFrameColor(java.lang.Integer frameColor)
frameColor
- the desired frame color, or null if the default should be used.void setMessageButtons(java.util.List<MessageButton> messageButtons)
See MessageButton
messageButtons
- list of message buttons for this in-app message.void setHeader(java.lang.String header)
header
- the desired header text for this in-app message.void setHeaderTextColor(int headerTextColor)
headerTextColor
- See Color
void setCloseButtonColor(int closeButtonColor)
closeButtonColor
- See Color
boolean logButtonClick(MessageButton messageButton)
Message button clicks may only be logged once per in-app message
before requiring a reset to re-enable logging.
To log multiple clicks to the same IInAppMessage,
for example, when the same IInAppMessage instance is used to back multiple
in-app messages shown to the user, use #resetAnalytics()