EventListener

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
abstract fun didCloseMessage(message: InAppMessage, action: InAppMessageCloseAction)

This method will be called when the InAppMessage is dismissed.

Link copied to clipboard
abstract fun didShowMessage(message: InAppMessage)

This method will be called when the InAppMessage is first displayed on screen.

Link copied to clipboard
abstract fun shouldShowMessage(message: InAppMessage): Boolean

This method will be called before a in app message is presented. You can return false to prevent the message from being displayed. You can later use InAppMessageManager.showMessage to display the message if the message is still on the device and active.