SourceContext

@UiToolingDataApi
interface SourceContext


Context with data for creating group nodes.

See the factory argument of mapTree.

Summary

Public properties

IntRect

The bounds of the Composable if known.

Int

The current depth into the CompositionGroup tree.

open Boolean

The source context is for a call to an inline composable function

SourceLocation?

The SourceLocation of where the Composable was called.

String?

The name of the Composable or null if not applicable.

List<ParameterInformation>

The parameters of the Composable.

Public properties

bounds

Added in 1.3.0
val boundsIntRect

The bounds of the Composable if known.

depth

Added in 1.3.0
val depthInt

The current depth into the CompositionGroup tree.

isInline

Added in 1.4.0
open val isInlineBoolean

The source context is for a call to an inline composable function

location

Added in 1.3.0
val locationSourceLocation?

The SourceLocation of where the Composable was called.

name

Added in 1.3.0
val nameString?

The name of the Composable or null if not applicable.

parameters

Added in 1.3.0
val parametersList<ParameterInformation>

The parameters of the Composable.