DefaultInAppMessageModalViewFactory

Default IInAppMessageViewFactory for modal in-app messages. Inflates the appropriate modal layout (standard or graphic), configures images, buttons, colors, header, and directional navigation.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun createInAppMessageView(activity: Activity, inAppMessage: IInAppMessage): InAppMessageModalView

This method should either inflate or programmatically create a new View that will be used to display an in-app message. A new View must be created on every call. This prevents the memory leak that would occur if the View was shared by multiple Activity classes.