MindboxEmbeddedBlockView
A container for an embedded Mindbox block.
The host names a place with placeSystemName and gives the block an explicit height; the SDK decides what the place shows. Content starts when the block enters the window, pauses when it leaves, and is kept for a screen that goes to the back stack. With nothing to show the block becomes GONE. Keep the block in the layout rather than removing it in onEmpty: a collapsed block still shows content the place gets later.
<cloud.mindbox.mobile_sdk.embedded.MindboxEmbeddedBlockView
android:layout_width="match_parent"
android:layout_height="120dp"
app:mindboxPlaceSystemName="main-screen-top" />Constructors
Creates a block in code.
Properties
Whether the content is revealed with an animation, given at creation.
What the block shows until the SDK answers, given at creation.
The place the block fills, trimmed; null when none was given.
Functions
Shows view instead of collapsing the block when it fails; null restores the collapse. The view fills the block. Applies to failures only. Set it before the block fails: a view set after the block has collapsed, for example in onFail, does not expand it. A block that waits hidden shows no error view.
Sets the listener of the block's outcomes. A listener set after the outcome receives it at once.
Replaces the SDK's shimmer with view while the content is loading; null restores the shimmer. The view fills the block. To only recolor the shimmer, override the mindbox_embedded_block_shimmer_rest and mindbox_embedded_block_shimmer_highlight color resources, in values-night too.