FunctionKeyMeta

Class

Common
@ComposeCompilerApi
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@Repeatable
public annotation class FunctionKeyMeta(val key: Int, val startOffset: Int, val endOffset: Int)

This annotation is applied to the FunctionKeyMeta classes created by the Compose Compiler. These classes will have multiple of these annotations, each one corresponding to a single composable function. The annotation holds some metadata about the function itself and is intended to be used to provide information useful to tooling.

Parameters

keyThe key used for the function's group.
startOffsetThe startOffset of the function in the source file at the time of compilation.
endOffsetThe startOffset of the function in the source file at the time of compilation.