primaryBtn
The first button inside the message.
- Parameters:
primaryBtn
- The first button inside the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
Buildable
, CopyableBuilder<InAppMessageContent.Builder,InAppMessageContent>
, SdkBuilder<InAppMessageContent.Builder,InAppMessageContent>
, SdkPojo
InAppMessageContent
backgroundColor(String backgroundColor)
default InAppMessageContent.Builder
bodyConfig(Consumer<InAppMessageBodyConfig.Builder> bodyConfig)
bodyConfig(InAppMessageBodyConfig bodyConfig)
default InAppMessageContent.Builder
headerConfig(Consumer<InAppMessageHeaderConfig.Builder> headerConfig)
headerConfig(InAppMessageHeaderConfig headerConfig)
default InAppMessageContent.Builder
primaryBtn(Consumer<InAppMessageButton.Builder> primaryBtn)
primaryBtn(InAppMessageButton primaryBtn)
default InAppMessageContent.Builder
secondaryBtn(Consumer<InAppMessageButton.Builder> secondaryBtn)
secondaryBtn(InAppMessageButton secondaryBtn)
copy
applyMutation, build
equalsBySdkFields, sdkFields
The background color for the message.
backgroundColor
- The background color for the message.The configuration for the message body.
bodyConfig
- The configuration for the message body.The configuration for the message body.
This is a convenience method 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
The configuration for the message header.
headerConfig
- The configuration for the message header.The configuration for the message header.
This is a convenience method 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
The image url for the background of message.
imageUrl
- The image url for the background of message.The first button inside the message.
primaryBtn
- The first button inside the message.The first button inside the message.
This is a convenience method 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
The second button inside message.
secondaryBtn
- The second button inside message.The second button inside message.
This is a convenience method 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