public interface CompositionData
A CompositionData is the data tracked by the composer during composition.
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.
Properties
compositionGroups
public val compositionGroups: Iterable<CompositionGroup>
Iterate the composition data in the group. The composition data is structured as a tree of values that corresponds to the call graph of the functions that produced the tree. Interspersed are groups that represents the nodes themselves.
isEmpty
public val isEmpty: Boolean
Returns true if no composition data has been collected. This occurs when the first composition into this composition data has not completed yet or, if it is a group, it doesn't contain any child groups.
Functions
find
public fun find(identityToFind: Any): CompositionGroup?
Find a sub-group by identity. Returns null if the group is not found or the implementation of this interface does not support finding groups by their identity. In other words, a null result from this method should not be interpreted as the identity is not a group in the composition data.