public interface IInAppMessageView
IInAppMessageView
is the base view interface for all in-app messages.Modifier and Type | Method and Description |
---|---|
void |
applyWindowInsets(WindowInsetsCompat insets)
Called when the
WindowInsetsCompat information should be applied to this
in-app message. |
android.view.View |
getMessageClickableView()
Gets the clickable portion of the in-app message so that Braze can add click listeners to it.
|
boolean |
hasAppliedWindowInsets()
Helper method to prevent
WindowInsetsCompat from getting applied
multiple times on the same in-app message view. |
android.view.View getMessageClickableView()
void applyWindowInsets(WindowInsetsCompat insets)
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.
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.insets
- The WindowInsetsCompat
object directly from
androidx.core.view.ViewCompat#setOnApplyWindowInsetsListener(View, OnApplyWindowInsetsListener)
.boolean hasAppliedWindowInsets()
WindowInsetsCompat
from getting applied
multiple times on the same in-app message view.WindowInsetsCompat
has been applied to this in-app message.applyWindowInsets(WindowInsetsCompat)