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 bounds: IntRect

The bounds of the Composable if known.

depth

Added in 1.3.0
val depth: Int

The current depth into the CompositionGroup tree.

isInline

Added in 1.4.0
open val isInline: Boolean

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

location

Added in 1.3.0
val location: SourceLocation?

The SourceLocation of where the Composable was called.

name

Added in 1.3.0
val name: String?

The name of the Composable or null if not applicable.

parameters

Added in 1.3.0
val parameters: List<ParameterInformation>

The parameters of the Composable.