public static interface InAppMessageContent.Builder extends SdkPojo, CopyableBuilder<InAppMessageContent.Builder,InAppMessageContent>
equalsBySdkFields, sdkFields
copy
applyMutation, build
InAppMessageContent.Builder backgroundColor(String backgroundColor)
The background color for the message.
backgroundColor
- The background color for the message.InAppMessageContent.Builder bodyConfig(InAppMessageBodyConfig bodyConfig)
The configuration for the message body.
bodyConfig
- The configuration for the message body.default InAppMessageContent.Builder bodyConfig(Consumer<InAppMessageBodyConfig.Builder> bodyConfig)
The configuration for the message body.
This is a convenience that creates an instance of theInAppMessageBodyConfig.Builder
avoiding the
need to create one manually via InAppMessageBodyConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to bodyConfig(InAppMessageBodyConfig)
.bodyConfig
- a consumer that will call methods on InAppMessageBodyConfig.Builder
bodyConfig(InAppMessageBodyConfig)
InAppMessageContent.Builder headerConfig(InAppMessageHeaderConfig headerConfig)
The configuration for the message header.
headerConfig
- The configuration for the message header.default InAppMessageContent.Builder headerConfig(Consumer<InAppMessageHeaderConfig.Builder> headerConfig)
The configuration for the message header.
This is a convenience that creates an instance of theInAppMessageHeaderConfig.Builder
avoiding the
need to create one manually via InAppMessageHeaderConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to headerConfig(InAppMessageHeaderConfig)
.headerConfig
- a consumer that will call methods on InAppMessageHeaderConfig.Builder
headerConfig(InAppMessageHeaderConfig)
InAppMessageContent.Builder imageUrl(String imageUrl)
The image url for the background of message.
imageUrl
- The image url for the background of message.InAppMessageContent.Builder primaryBtn(InAppMessageButton primaryBtn)
The first button inside the message.
primaryBtn
- The first button inside the message.default InAppMessageContent.Builder primaryBtn(Consumer<InAppMessageButton.Builder> primaryBtn)
The first button inside the message.
This is a convenience that creates an instance of theInAppMessageButton.Builder
avoiding the need to
create one manually via InAppMessageButton.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to primaryBtn(InAppMessageButton)
.primaryBtn
- a consumer that will call methods on InAppMessageButton.Builder
primaryBtn(InAppMessageButton)
InAppMessageContent.Builder secondaryBtn(InAppMessageButton secondaryBtn)
The second button inside message.
secondaryBtn
- The second button inside message.default InAppMessageContent.Builder secondaryBtn(Consumer<InAppMessageButton.Builder> secondaryBtn)
The second button inside message.
This is a convenience that creates an instance of theInAppMessageButton.Builder
avoiding the need to
create one manually via InAppMessageButton.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to secondaryBtn(InAppMessageButton)
.secondaryBtn
- a consumer that will call methods on InAppMessageButton.Builder
secondaryBtn(InAppMessageButton)
Copyright © 2021. All rights reserved.