createInAppMessageViewWrapper

open override fun createInAppMessageViewWrapper(inAppMessageView: View, inAppMessage: IInAppMessage, inAppMessageViewLifecycleListener: IInAppMessageViewLifecycleListener, configurationProvider: BrazeConfigurationProvider, openingAnimation: Animation?, closingAnimation: Animation?, clickableInAppMessageView: View?): IInAppMessageViewWrapper

Factory interface for non IInAppMessageImmersive view wrappers. Implementations should add click listeners to the in-app message view and also add swipe functionality to InAppMessageSlideup in-app messages.

Parameters

inAppMessageView

In-app message top level view visible to the user.

inAppMessage

In-app message model.

inAppMessageViewLifecycleListener

In-app message lifecycle listener.

configurationProvider

Configuration provider.

openingAnimation

The Animation used when opening the IInAppMessage and becoming visible to the user. Should be called during IInAppMessageViewWrapper.open.

closingAnimation

The Animation used when closing the IInAppMessage. Should be called during IInAppMessageViewWrapper.close.

clickableInAppMessageView

View for which click actions apply.


open override fun createInAppMessageViewWrapper(inAppMessageView: View, inAppMessage: IInAppMessage, inAppMessageViewLifecycleListener: IInAppMessageViewLifecycleListener, configurationProvider: BrazeConfigurationProvider, openingAnimation: Animation?, closingAnimation: Animation?, clickableInAppMessageView: View?, buttons: List<View>?, closeButton: View?): IInAppMessageViewWrapper

Constructor for IInAppMessageImmersive in-app message view wrappers. Implementations should add click listeners to the in-app message view and also add listeners to an optional close button and message button views.

Parameters

inAppMessageView

In-app message top level view visible to the user.

inAppMessage

In-app message model.

inAppMessageViewLifecycleListener

In-app message lifecycle listener.

configurationProvider

Configuration provider.

openingAnimation

The Animation used when opening the IInAppMessage and becoming visible to the user. Should be called during IInAppMessageViewWrapper.open.

closingAnimation

The Animation used when closing the IInAppMessage. Should be called during IInAppMessageViewWrapper.close.

clickableInAppMessageView

View for which click actions apply.

buttons

List of views corresponding to MessageButton objects stored in the in-app message model object. These views should map one to one with the MessageButton objects.

closeButton

The View responsible for closing the in-app message.