Marketing Cloud SDK / com.salesforce.marketingcloud.messages.iam / InAppMessageManager

InAppMessageManager

interface InAppMessageManager

Types

EventListener

When an object of this type is registered with the InAppMessageManager, its methods will be called to signal certain in app message events.

interface EventListener

Functions

setInAppMessageListener

Set a EventListener that will be called during In App Message life cycle events.

abstract fun setInAppMessageListener(listener: EventListener?): Unit

setStatusBarColor

Set the color of the In App Message Activity status bar on Android 21 or higher.

abstract fun setStatusBarColor(color: Int): Unit

setTypeface

Set the font android.graphics.Typeface to be used for In app Messages.

abstract fun setTypeface(typeface: Typeface?): Unit

showMessage

Will display the InAppMessage with the matching id as long as:

  • The message's start date is in the past.
  • The message's end date is in the future.
  • The message has not previously been displayed.

abstract fun showMessage(messageId: String): Unit