InAppMessagingFeatureConfig

Package: com.salesforce.marketingcloud.inappmessagingfeature.config

Module: In App Messaging Feature Module v1.0.0

Overview 

1class InAppMessagingFeatureConfig : InAppMessagingFeatureModuleConfig

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

Usage Examples 

Kotlin DSL 

1val config = InAppMessagingFeatureConfig {
2    eventListener = myEventListener
3    urlHandler = myUrlHandler
4    typeface = Typeface.DEFAULT_BOLD
5    statusBarColor = 0xFFFF8040.toInt()
6}

Builder Pattern (Java-friendly) 

1val config = InAppMessagingFeatureConfig.builder()
2    .setEventListener(myEventListener)
3    .setUrlHandler(myUrlHandler)
4    .setTypeface(Typeface.DEFAULT_BOLD)
5    .setStatusBarColor(0xFFFF8040.toInt())
6    .build()

Properties 

PropertyTypeAnnotationsDescription
eventListenerInAppMessageManager.EventListener?@JvmFieldOptional event listener for in-app message lifecycle callbacks
urlHandlerUrlHandler?@JvmFieldOptional URL handler for customizing how URLs in messages are handled
typefaceTypeface?@JvmFieldOptional typeface for in-app message text
statusBarColorInt?@ColorInt, @JvmFieldOptional status bar color for in-app messages

Methods 

equals 

1open operator override fun equals(other: Any?): Boolean

Standard equality comparison.

hashCode 

1open override fun hashCode(): Int

Returns hash code for the configuration object.

toBuilder 

1fun toBuilder(): InAppMessagingFeatureConfig.Builder

Creates a new Builder with the current configuration values.

Nested Types 

Builder 

1class Builder

Builder class for constructing InAppMessagingFeatureConfig instances.

Companion 

1object Companion

Companion object for the configuration class.

See Also 

  • InAppMessagingFeature
  • InAppMessageManager.EventListener
  • UrlHandler