public interface IInAppMessageViewWrapperFactory
Modifier and Type | Method and Description |
---|---|
IInAppMessageViewWrapper |
createInAppMessageViewWrapper(android.view.View inAppMessageView,
IInAppMessage inAppMessage,
IInAppMessageViewLifecycleListener inAppMessageViewLifecycleListener,
BrazeConfigurationProvider configurationProvider,
android.view.animation.Animation openingAnimation,
android.view.animation.Animation closingAnimation,
android.view.View clickableInAppMessageView)
Factory interface for non
IInAppMessageImmersive view wrappers. |
IInAppMessageViewWrapper |
createInAppMessageViewWrapper(android.view.View inAppMessageView,
IInAppMessage inAppMessage,
IInAppMessageViewLifecycleListener inAppMessageViewLifecycleListener,
BrazeConfigurationProvider configurationProvider,
android.view.animation.Animation openingAnimation,
android.view.animation.Animation closingAnimation,
android.view.View clickableInAppMessageView,
java.util.List<android.view.View> buttons,
android.view.View closeButton)
Constructor for
IInAppMessageImmersive in-app message view wrappers. |
IInAppMessageViewWrapper createInAppMessageViewWrapper(android.view.View inAppMessageView, IInAppMessage inAppMessage, IInAppMessageViewLifecycleListener inAppMessageViewLifecycleListener, BrazeConfigurationProvider configurationProvider, android.view.animation.Animation openingAnimation, android.view.animation.Animation closingAnimation, android.view.View clickableInAppMessageView)
IInAppMessageImmersive
view wrappers.
Implementations should add click listeners to the in-app message view and
also add swipe functionality to InAppMessageSlideup
in-app messages.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(Activity)
.closingAnimation
- The Animation
used when closing the IInAppMessage
.
Should be called during IInAppMessageViewWrapper.close()
.clickableInAppMessageView
- View
for which click actions apply.IInAppMessageViewWrapper createInAppMessageViewWrapper(android.view.View inAppMessageView, IInAppMessage inAppMessage, IInAppMessageViewLifecycleListener inAppMessageViewLifecycleListener, BrazeConfigurationProvider configurationProvider, android.view.animation.Animation openingAnimation, android.view.animation.Animation closingAnimation, android.view.View clickableInAppMessageView, java.util.List<android.view.View> buttons, android.view.View closeButton)
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.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(Activity)
.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.