IInAppMessageImmersiveView

interface IInAppMessageImmersiveView : IInAppMessageView

IInAppMessageImmersiveView is the base view interface for all immersive in-app messages.

An immersive in-app message is defined as an in-app message that takes up the entire screen and/or 'blocks' the user from interacting with the app until the message is dismissed. Immersive views extend the base in-app message view with header text, message buttons, and a close button.

Functions

applyWindowInsets
Link copied to clipboard
abstract fun applyWindowInsets(@NonNull() insets: WindowInsetsCompat)
Called when the WindowInsetsCompat information should be applied to this in-app message.
getMessageButtonViews
Link copied to clipboard
abstract fun getMessageButtonViews(numButtons: Int): List<View>
Gets the message button Views so that Braze can add click listeners to them.
getMessageClickableView
Link copied to clipboard
abstract fun getMessageClickableView(): View
Gets the clickable portion of the in-app message so that Braze can add click listeners to it.
getMessageCloseButtonView
Link copied to clipboard
abstract fun getMessageCloseButtonView(): View
Gets the close button View so that Braze can add click listeners to it.
hasAppliedWindowInsets
Link copied to clipboard
abstract fun hasAppliedWindowInsets(): Boolean
Helper method to prevent WindowInsetsCompat from getting applied multiple times on the same in-app message view.
setupDirectionalNavigation
Link copied to clipboard
abstract fun setupDirectionalNavigation(numButtons: Int)
Sets up the directional navigation pointers needed to support d-pad/TV-remote navigation of the in-app message.

Inheritors

InAppMessageImmersiveBaseView
Link copied to clipboard