AndroidViewBlock

class AndroidViewBlock<Presentation : View>(block: (Context) -> Presentation, val update: (Presentation) -> Unit = NoOpUpdate) : ViewBlock

A ViewBlock implementation for Android views.

Parameters

Presentation

The type of view this block will produce.

Constructors

Link copied to clipboard
constructor(block: (Context) -> Presentation)
constructor(block: (Context) -> Presentation, update: (Presentation) -> Unit = NoOpUpdate)

Properties

Link copied to clipboard

Unique identifier for this view block instance.

Link copied to clipboard
open override val type: ViewBlock.Type

The type of the view block, indicating how it should be rendered.

Link copied to clipboard

An optional lambda function to update the presentation.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open operator override fun <IN> invoke(argument: IN)

Function responsible for rendering the view block with the given argument.