SlotTable

class SlotTable
kotlin.Any
   ↳ androidx.compose.SlotTable

Summary

Public constructors

<init>(slots: Array<Any?> = arrayOf())

Public methods

SlotReader

SlotWriter

T
read(block: (reader: SlotReader) -> T)

T
write(block: (writer: SlotWriter) -> T)

Extension functions

From androidx.ui.tooling
Group

Return a group tree for for the slot table that represents the entire content of the slot table.

Properties

Int

Companion properties

Any

Public constructors

<init>

SlotTable(slots: Array<Any?> = arrayOf())

Public methods

openReader

fun openReader(): SlotReader

openWriter

fun openWriter(): SlotWriter

read

fun <T> read(block: (reader: SlotReader) -> T): T

write

fun <T> write(block: (writer: SlotWriter) -> T): T

Properties

size

val size: Int

Companion properties

EMPTY

val EMPTY: Any