{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

FunctionKeyMeta

@ComposeCompilerApi
@Target(allowedTargets = [AnnotationTarget.CLASS])
@Retention(value = AnnotationRetention.RUNTIME)
@Repeatable
public annotation FunctionKeyMeta


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.

Summary

Public constructors

FunctionKeyMeta(int key, int startOffset, int endOffset)

Public methods

final int

The startOffset of the function in the source file at the time of compilation.

final int

The key used for the function's group.

final int

The startOffset of the function in the source file at the time of compilation.

Public constructors

FunctionKeyMeta

public FunctionKeyMeta(int key, int startOffset, int endOffset)
Parameters
int key

The key used for the function's group.

int startOffset

The startOffset of the function in the source file at the time of compilation.

int endOffset

The startOffset of the function in the source file at the time of compilation.

Public methods

getEndOffset

public final int getEndOffset()

The startOffset of the function in the source file at the time of compilation.

getKey

public final int getKey()

The key used for the function's group.

getStartOffset

public final int getStartOffset()

The startOffset of the function in the source file at the time of compilation.