IInAppMessageImmersiveView

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

Link copied to clipboard

Called when the WindowInsetsCompat information should be applied to this in-app message. WindowInsetsCompat will typically only be applied on notched devices and on Activities displaying inside the screen cutout area. Implementations of this method are expected to modify any necessary margins to ensure compatibility with the argument notch dimensions. For example, full screen in-app messages should have their close buttons moved to not be obscured by the status bar, slideups should not render behind the notch, and modal in-app messages will have no changes since they do not render in the cutout area. The screen has a notch if WindowInsetsCompat.getDisplayCutout is non-null. The system window insets (e.g. WindowInsetsCompat.getSystemWindowInsetTop will be present if the status bar is translucent or the status/navigation bars are otherwise non-occluding of the root Activity content.

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.

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.

Properties

Link copied to clipboard

Variable to prevent WindowInsetsCompat from getting applied multiple times on the same in-app message view.

Link copied to clipboard
abstract val messageClickableView: View?

Gets the clickable portion of the in-app message so that Braze can add click listeners to it.

Link copied to clipboard

Gets the close button View so that Braze can add click listeners to it.

Inheritors

Link copied to clipboard