CompositionGroup

interface CompositionGroup : CompositionData

CompositionGroup is a group of data slots tracked independently by composition. These groups correspond to flow control branches (such as if statements and function calls) as well as emitting of a node to the tree.

This interface is not intended to be used directly and is provided to allow the tools API to have access to data tracked during composition. The tools API should be used instead which provides a more usable interpretation of the slot table.

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String

Properties

compositionGroups
Link copied to clipboard
common
abstract val compositionGroups: Iterable<CompositionGroup>
Iterate the composition data in the group.
data
Link copied to clipboard
common
abstract val data: Iterable<Any?>
The data stored in the slot table for this group.
isEmpty
Link copied to clipboard
common
abstract val isEmpty: Boolean
Returns true if no composition data has been collected.
key
Link copied to clipboard
common
abstract val key: Any
A value used to identify the group within its siblings and is typically a compiler generated integer but can be an object if the key composable is used.
node
Link copied to clipboard
common
abstract val node: Any?
If the group represents a node this returns a non-null value which is the node that was emitted for the group.
sourceInfo
Link copied to clipboard
common
abstract val sourceInfo: String?
Information recorded by the compiler to help tooling identify the source that generated the group.