MindboxEmbeddedBlockView

constructor(context: Context, attrs: AttributeSet? = null)


constructor(context: Context, placeSystemName: String, timeoutMs: Long? = null, loadingStrategy: MindboxEmbeddedBlockLoadingStrategy = MindboxEmbeddedBlockLoadingStrategy.AUTOMATIC, animatesReveal: Boolean = true)

Creates a block in code.

Parameters

placeSystemName

The place the block fills. Whitespace around it is trimmed, letter case is ignored.

timeoutMs

How long the block waits for the SDK's answer before failing with MindboxEmbeddedBlockFailReason.NETWORK_ERROR. null takes the mindbox_embedded_block_timeout_ms integer resource, 30 s by default. Counted while the screen with the block is shown.

loadingStrategy

What the block shows until the SDK answers. MindboxEmbeddedBlockLoadingStrategy.AUTOMATIC by default.

animatesReveal

Whether the content is revealed with an animation. true by default.