InAppMessagingFeatureConfig

class InAppMessagingFeatureConfig : InAppMessagingFeatureModuleConfig

Configuration class for the In App Messaging Feature of the Salesforce Marketing Cloud SDK.

Example Usage:

// Using Builder pattern (Java-friendly)
val config = InAppMessagingFeatureConfig.builder()
.setEventListener(myEventListener)
.setUrlHandler(myUrlHandler)
.setTypeface(Typeface.DEFAULT_BOLD)
.setStatusBarColor(0xFFFF8040.toInt())
.build()

// Using Kotlin DSL
val config = InAppMessagingFeatureConfig {
eventListener = myEventListener
urlHandler = myUrlHandler
typeface = Typeface.DEFAULT_BOLD
statusBarColor = 0xFFFF8040.toInt()
}

See also

Types

Link copied to clipboard
class Builder

Builder class for constructing InAppMessagingFeatureConfig instances.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Optional event listener for in-app message lifecycle callbacks

Link copied to clipboard

Optional status bar color for in-app messages

Link copied to clipboard

Optional typeface for in-app message text

Link copied to clipboard

Optional URL handler for customizing how URLs in messages are handled

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Creates a new Builder with the current configuration values.