Package com.marigold.sdk
Class InAppPresentationConfiguration
-
- All Implemented Interfaces:
public final class InAppPresentationConfigurationNative UI settings. Null and AUTOMATIC inherit. Valid fields resolve in this order: message payload, callback overrides, app defaults, SDK defaults. Dimensions are dp; displayDuration is seconds, with zero meaning manual dismissal. Full-screen settings style the native frame, preserving campaign HTML.
-
-
Field Summary
Fields Modifier and Type Field Description private InAppPresentationStylepresentationStyleprivate InAppBannerPositionbannerPositionprivate InAppLinkBehaviorlinkBehaviorprivate StringlinkButtonTitleprivate InAppPresentationColorbackgroundColorprivate InAppPresentationColortitleColorprivate InAppPresentationColorbodyTextColorprivate InAppPresentationColorcloseButtonColorprivate InAppPresentationColorbackdropColorprivate DoublebackdropOpacityprivate InAppPresentationFonttitleFontprivate InAppPresentationFontbodyFontprivate DoublecornerRadiusprivate DoubleouterSpacingprivate InAppImageContentModeimageContentModeprivate BooleanshowsImageprivate BooleanshowsCloseButtonprivate BooleanallowsGestureDismissalprivate DoubledisplayDuration
-
Constructor Summary
Constructors Constructor Description InAppPresentationConfiguration(InAppPresentationStyle presentationStyle, InAppBannerPosition bannerPosition, InAppLinkBehavior linkBehavior, String linkButtonTitle, InAppPresentationColor backgroundColor, InAppPresentationColor titleColor, InAppPresentationColor bodyTextColor, InAppPresentationColor closeButtonColor, InAppPresentationColor backdropColor, Double backdropOpacity, InAppPresentationFont titleFont, InAppPresentationFont bodyFont, Double cornerRadius, Double outerSpacing, InAppImageContentMode imageContentMode, Boolean showsImage, Boolean showsCloseButton, Boolean allowsGestureDismissal, Double displayDuration)
-
Method Summary
-
-
Constructor Detail
-
InAppPresentationConfiguration
InAppPresentationConfiguration(InAppPresentationStyle presentationStyle, InAppBannerPosition bannerPosition, InAppLinkBehavior linkBehavior, String linkButtonTitle, InAppPresentationColor backgroundColor, InAppPresentationColor titleColor, InAppPresentationColor bodyTextColor, InAppPresentationColor closeButtonColor, InAppPresentationColor backdropColor, Double backdropOpacity, InAppPresentationFont titleFont, InAppPresentationFont bodyFont, Double cornerRadius, Double outerSpacing, InAppImageContentMode imageContentMode, Boolean showsImage, Boolean showsCloseButton, Boolean allowsGestureDismissal, Double displayDuration)
-
-
Method Detail
-
getPresentationStyle
final InAppPresentationStyle getPresentationStyle()
-
setPresentationStyle
final Unit setPresentationStyle(InAppPresentationStyle value)
-
getBannerPosition
final InAppBannerPosition getBannerPosition()
-
setBannerPosition
final Unit setBannerPosition(InAppBannerPosition value)
-
getLinkBehavior
final InAppLinkBehavior getLinkBehavior()
-
setLinkBehavior
final Unit setLinkBehavior(InAppLinkBehavior value)
-
getLinkButtonTitle
final String getLinkButtonTitle()
-
setLinkButtonTitle
final Unit setLinkButtonTitle(String value)
-
getBackgroundColor
final InAppPresentationColor getBackgroundColor()
-
setBackgroundColor
final Unit setBackgroundColor(InAppPresentationColor value)
-
getTitleColor
final InAppPresentationColor getTitleColor()
-
setTitleColor
final Unit setTitleColor(InAppPresentationColor value)
-
getBodyTextColor
final InAppPresentationColor getBodyTextColor()
-
setBodyTextColor
final Unit setBodyTextColor(InAppPresentationColor value)
-
getCloseButtonColor
final InAppPresentationColor getCloseButtonColor()
-
setCloseButtonColor
final Unit setCloseButtonColor(InAppPresentationColor value)
-
getBackdropColor
final InAppPresentationColor getBackdropColor()
-
setBackdropColor
final Unit setBackdropColor(InAppPresentationColor value)
-
getBackdropOpacity
final Double getBackdropOpacity()
-
setBackdropOpacity
final Unit setBackdropOpacity(Double value)
-
getTitleFont
final InAppPresentationFont getTitleFont()
-
setTitleFont
final Unit setTitleFont(InAppPresentationFont value)
-
getBodyFont
final InAppPresentationFont getBodyFont()
-
setBodyFont
final Unit setBodyFont(InAppPresentationFont value)
-
getCornerRadius
final Double getCornerRadius()
-
setCornerRadius
final Unit setCornerRadius(Double value)
-
getOuterSpacing
final Double getOuterSpacing()
-
setOuterSpacing
final Unit setOuterSpacing(Double value)
-
getImageContentMode
final InAppImageContentMode getImageContentMode()
-
setImageContentMode
final Unit setImageContentMode(InAppImageContentMode value)
-
getShowsImage
final Boolean getShowsImage()
-
setShowsImage
final Unit setShowsImage(Boolean value)
-
getShowsCloseButton
final Boolean getShowsCloseButton()
-
setShowsCloseButton
final Unit setShowsCloseButton(Boolean value)
-
getAllowsGestureDismissal
final Boolean getAllowsGestureDismissal()
-
setAllowsGestureDismissal
final Unit setAllowsGestureDismissal(Boolean value)
-
getDisplayDuration
final Double getDisplayDuration()
-
setDisplayDuration
final Unit setDisplayDuration(Double value)
-
fromJSON
final static InAppPresentationConfiguration fromJSON(JSONObject fields)
Creates settings from presentation fields without the message payload envelope. Missing or invalid fields inherit.
-
compactBanner
final static InAppPresentationConfiguration compactBanner()
Independent, editable starting points; unspecified fields inherit.
-
imageModal
final static InAppPresentationConfiguration imageModal()
-
contentFirstFullScreen
final static InAppPresentationConfiguration contentFirstFullScreen()
-
-
-
-