Default In App Message View Wrapper
Constructor for base and slideup view wrappers. Adds click listeners to the in-app message view and adds swipe functionality to slideup in-app messages.
Parameters
In-app message top level view.
In-app message model.
In-app message lifecycle listener.
Configuration provider.
View for which click actions apply.
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.
The View responsible for closing the in-app message.
Constructors
Types
Functions
Adds the IInAppMessageView to the parent ViewGroup. Also calls IInAppMessageViewLifecycleListener.beforeOpened and IInAppMessageViewLifecycleListener.afterOpened.
Calls View.announceForAccessibility with the IInAppMessage.getMessage if the IInAppMessageView is IInAppMessageImmersiveView or the fallback message IInAppMessageView is a InAppMessageHtmlBaseView.
Closes an IInAppMessage. As a result of this call, it is expected that an IInAppMessage is no longer visible and not interactable by the user.
Closes the in-app message view. In this order, the following actions are performed:
Creates a View.OnClickListener that calls IInAppMessageViewLifecycleListener.onClicked.
Performs any last actions before calling IInAppMessageViewLifecycleListener.beforeOpened.
Creates the ViewGroup.LayoutParams used for adding the IInAppMessageView to the ViewGroup returned by DefaultInAppMessageViewWrapper.getParentViewGroup.
Gets the ViewGroup which will display the in-app message. Note that if this implementation is overridden, then DefaultInAppMessageViewWrapper.getLayoutParams should also most likely be overridden to match the ViewGroup subclass returned here.
Opens an IInAppMessage on the Activity. As a result of this call, it is expected that an IInAppMessage is visible and interactable by the user.
Instantiates and executes the correct animation for the current in-app message. Slideup-type messages slide in from the top or bottom of the view. Other in-app messages fade in and out of view.
Properties
The View that previously held focus before a message is displayed as given via Activity.getCurrentFocus.
A mapping of the view accessibility flags of views before overriding them. Used in conjunction with com.braze.configuration.BrazeConfig.Builder.setIsInAppMessageAccessibilityExclusiveModeEnabled