Class InAppMessageSettings.Builder
-
- All Implemented Interfaces:
public final class InAppMessageSettings.BuilderBuilder class for InAppMessageSettings.
-
-
Constructor Summary
Constructors Constructor Description InAppMessageSettings.Builder()
-
Method Summary
Modifier and Type Method Description final InAppMessageSettings.Buildercontent(String content)Sets the HTML content for the message. final InAppMessageSettings.Builderwidth(Integer width)Sets the width of the message as a percentage of the screen width. final InAppMessageSettings.Builderheight(Integer height)Sets the height of the message as a percentage of the screen height. final InAppMessageSettings.BuilderverticalInset(Integer verticalInset)Sets the vertical inset of the message. final InAppMessageSettings.BuilderhorizontalInset(Integer horizontalInset)Sets the horizontal inset of the message. final InAppMessageSettings.BuilderverticalAlignment(InAppMessageSettings.MessageAlignment verticalAlignment)Sets the vertical alignment of the message on the screen. final InAppMessageSettings.BuilderhorizontalAlignment(InAppMessageSettings.MessageAlignment horizontalAlignment)Sets the horizontal alignment of the message on the screen. final InAppMessageSettings.BuilderdisplayAnimation(InAppMessageSettings.MessageAnimation displayAnimation)Sets the animation to use when displaying the message. final InAppMessageSettings.BuilderdismissAnimation(InAppMessageSettings.MessageAnimation dismissAnimation)Sets the animation to use when dismissing the message. final InAppMessageSettings.BuilderbackgroundColor(String backgroundColor)Sets the color of the backdrop behind the message. final InAppMessageSettings.BuilderbackdropOpacity(Float backdropOpacity)Sets the opacity of the backdrop behind the message. final InAppMessageSettings.BuildercornerRadius(Float cornerRadius)Sets the corner radius of the message. final InAppMessageSettings.BuildershouldTakeOverUi(Boolean shouldTakeOverUi)Configures whether the message should take over the UI. final InAppMessageSettings.BuilderassetMap(Map<String, String> assetMap)Sets the asset map for the message. final InAppMessageSettings.BuildergestureMap(Map<String, String> gestureMap)Sets the gesture map for the message. final InAppMessageSettingsbuild()-
-
Method Detail
-
content
final InAppMessageSettings.Builder content(String content)
Sets the HTML content for the message.
- Parameters:
content- the HTML content for the message
-
width
final InAppMessageSettings.Builder width(Integer width)
Sets the width of the message as a percentage of the screen width.
- Parameters:
width- the width of the message as a percentage of the screen width
-
height
final InAppMessageSettings.Builder height(Integer height)
Sets the height of the message as a percentage of the screen height.
- Parameters:
height- the height of the message as a percentage of the screen height
-
verticalInset
final InAppMessageSettings.Builder verticalInset(Integer verticalInset)
Sets the vertical inset of the message. This is the padding from the top and bottom of the screen as a percentage of the screen height.
- Parameters:
verticalInset- the vertical inset of the message
-
horizontalInset
final InAppMessageSettings.Builder horizontalInset(Integer horizontalInset)
Sets the horizontal inset of the message. This is the padding from the left and right of the screen as a percentage of the screen width.
-
verticalAlignment
final InAppMessageSettings.Builder verticalAlignment(InAppMessageSettings.MessageAlignment verticalAlignment)
Sets the vertical alignment of the message on the screen.
- Parameters:
verticalAlignment- the vertical MessageAlignment of the message on the screen
-
horizontalAlignment
final InAppMessageSettings.Builder horizontalAlignment(InAppMessageSettings.MessageAlignment horizontalAlignment)
Sets the horizontal alignment of the message on the screen.
- Parameters:
horizontalAlignment- the horizontal MessageAlignment of the message on the screen
-
displayAnimation
final InAppMessageSettings.Builder displayAnimation(InAppMessageSettings.MessageAnimation displayAnimation)
Sets the animation to use when displaying the message.
- Parameters:
displayAnimation- the MessageAnimation to use when displaying the message
-
dismissAnimation
final InAppMessageSettings.Builder dismissAnimation(InAppMessageSettings.MessageAnimation dismissAnimation)
Sets the animation to use when dismissing the message.
- Parameters:
dismissAnimation- the MessageAnimation to use when dismissing the message
-
backgroundColor
final InAppMessageSettings.Builder backgroundColor(String backgroundColor)
Sets the color of the backdrop behind the message. This is the color behind the message when the message is taking over the UI.
- Parameters:
backgroundColor- the hex color of the backdrop behind the message.
-
backdropOpacity
final InAppMessageSettings.Builder backdropOpacity(Float backdropOpacity)
Sets the opacity of the backdrop behind the message. This is the opacity behind the message when the message is taking over the UI.
- Parameters:
backdropOpacity- the opacity of the backdrop behind the message.
-
cornerRadius
final InAppMessageSettings.Builder cornerRadius(Float cornerRadius)
Sets the corner radius of the message.
- Parameters:
cornerRadius- the corner radius of the message
-
shouldTakeOverUi
final InAppMessageSettings.Builder shouldTakeOverUi(Boolean shouldTakeOverUi)
Configures whether the message should take over the UI.
- Parameters:
shouldTakeOverUi- whether the message should take over the UI.
-
assetMap
final InAppMessageSettings.Builder assetMap(Map<String, String> assetMap)
Sets the asset map for the message. This is a map of asset names to asset URLs.
- Parameters:
assetMap- the asset map for the message
-
gestureMap
final InAppMessageSettings.Builder gestureMap(Map<String, String> gestureMap)
Sets the gesture map for the message. This is a map of gesture names (as defined by InAppMessageSettings.MessageGesture's) to gesture actions.
- Parameters:
gestureMap- the gesture map for the message
-
build
final InAppMessageSettings build()
-
-
-
-