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

LiveLiteralInfo

@ComposeCompilerApi
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
@Retention(value = AnnotationRetention.RUNTIME)
public annotation LiveLiteralInfo


This annotation is applied to functions on the LiveLiteral classes created by the Compose Compiler. It is intended to be used to provide information useful to tooling.

Summary

Public constructors

LiveLiteralInfo(@NonNull String key, int offset)

Public methods

final @NonNull String

The unique identifier for the literal.

final int

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

Public constructors

LiveLiteralInfo

public LiveLiteralInfo(@NonNull String key, int offset)
Parameters
@NonNull String key

The unique identifier for the literal.

int offset

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

Public methods

getKey

public final @NonNull String getKey()

The unique identifier for the literal.

getOffset

public final int getOffset()

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