-
- All Implemented Interfaces:
-
java.io.Serializable
public final class CEPMessage extends Message
Represents an in-app message to be displayed within the application.
This class encapsulates all the data required to render an in-app message.
-
-
Field Summary
Fields Modifier and Type Field Description private final InAppProperty.Formatformatprivate final RootContainerrootContainerprivate InAppProperty.VerticalAlignmentpositionprivate final CloseOptionscloseOptionsprivate final Map<String, String>textsprivate final Map<String, String>urlsprivate final Map<String, Action>actionsprivate final StringmessageIdentifierprivate final StringdevTrackingIdentifierprivate final JSONObjecteventDataprivate final Message.Sourcesource
-
Constructor Summary
Constructors Constructor Description CEPMessage(InAppProperty.Format format, RootContainer rootContainer, InAppProperty.VerticalAlignment position, CloseOptions closeOptions, Map<String, String> texts, Map<String, String> urls, Map<String, Action> actions)
-
Method Summary
Modifier and Type Method Description final InAppProperty.FormatgetFormat()final RootContainergetRootContainer()final InAppProperty.VerticalAlignmentgetPosition()final UnitsetPosition(InAppProperty.VerticalAlignment position)final CloseOptionsgetCloseOptions()final Map<String, String>getTexts()final Map<String, String>getUrls()final Map<String, Action>getActions()final BooleanisFullscreen()Whether the message is fullscreen. final BooleanisWebView()Whether the message is a WebView. final BooleanisModal()Whether the message is a modal. final BooleanisCenterModal()Whether the message is a modal centered final BooleanisBanner()Whether the message is a banner. final BooleanisAttachedBottomBanner()Whether the message is a bottom banner without margins. final BooleanisTopBanner()Whether the message is a top banner. final BooleanisAttachedTopBanner()Whether the message is a top banner without margins. final BooleanisImageFormat()Whether the message is only an image final BooleanshouldFitsSystemWindows()Whether the message should not fit system windows. final List<InAppComponent.Image>getImagesComponents()Get the list of images components present in the message. final InAppComponent.ImagegetImageComponentById(String id)Get the image component with the given ID. final InAppComponent.WebViewgetWebViewComponent()Get the WebView component in the message. Booleanequals(Object other)IntegerhashCode()-
-
Constructor Detail
-
CEPMessage
CEPMessage(InAppProperty.Format format, RootContainer rootContainer, InAppProperty.VerticalAlignment position, CloseOptions closeOptions, Map<String, String> texts, Map<String, String> urls, Map<String, Action> actions)
-
-
Method Detail
-
getFormat
final InAppProperty.Format getFormat()
-
getRootContainer
final RootContainer getRootContainer()
-
getPosition
final InAppProperty.VerticalAlignment getPosition()
-
setPosition
final Unit setPosition(InAppProperty.VerticalAlignment position)
-
getCloseOptions
final CloseOptions getCloseOptions()
-
getActions
final Map<String, Action> getActions()
-
isFullscreen
final Boolean isFullscreen()
Whether the message is fullscreen.
-
isCenterModal
final Boolean isCenterModal()
Whether the message is a modal centered
-
isAttachedBottomBanner
final Boolean isAttachedBottomBanner()
Whether the message is a bottom banner without margins.
-
isTopBanner
final Boolean isTopBanner()
Whether the message is a top banner.
-
isAttachedTopBanner
final Boolean isAttachedTopBanner()
Whether the message is a top banner without margins.
-
isImageFormat
final Boolean isImageFormat()
Whether the message is only an image
-
shouldFitsSystemWindows
final Boolean shouldFitsSystemWindows()
Whether the message should not fit system windows.
-
getImagesComponents
final List<InAppComponent.Image> getImagesComponents()
Get the list of images components present in the message.
-
getImageComponentById
final InAppComponent.Image getImageComponentById(String id)
Get the image component with the given ID.
-
getWebViewComponent
final InAppComponent.WebView getWebViewComponent()
Get the WebView component in the message.
-
-
-
-