ViewBlock

abstract class ViewBlock<T> @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP_PREFIX]) constructor

Abstract base class for all view blocks.

A view block represents a UI component that can be rendered with an associated type.

Inheritors

Constructors

Link copied to clipboard

Types

Link copied to clipboard

Enum class defining various types of view blocks.

Properties

Link copied to clipboard

Unique identifier for this view block instance.

Link copied to clipboard

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

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
abstract operator fun invoke(data: T)

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