InAppMessageManager

Types

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

Functions

Link copied to clipboard
Set a EventListener that will be called during In App Message life cycle events.
Link copied to clipboard
abstract fun setStatusBarColor(@ColorInt color: Int)
Set the color of the In App Message Activity status bar on Android 21 or higher.
Link copied to clipboard
abstract fun setTypeface(@Nullable typeface: Typeface)
Set the font android.graphics.Typeface to be used for In app Messages.
Link copied to clipboard
abstract fun showMessage(@NonNull messageId: String)
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.