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

Decoy

@ExperimentalComposeApi
@Target(allowedTargets = [AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR])
public annotation Decoy


With decoys enabled, indicates original composable function that was stubbed by compiler plugin. Provides metadata to link it with the implementation function generated by compiler.

Summary

Public constructors

Decoy(@NonNull String targetName, @NonNull String signature)

Public methods

final @NonNull String[]

Serialized signature of the actual composable function.

final @NonNull String

Name of the implementation function which this composable was copied to.

Public constructors

Decoy

public Decoy(@NonNull String targetName, @NonNull String signature)
Parameters
@NonNull String targetName

Name of the implementation function which this composable was copied to.

@NonNull String signature

Serialized signature of the actual composable function.

Public methods

getSignature

public final @NonNull String[] getSignature()

Serialized signature of the actual composable function.

getTargetName

public final @NonNull String getTargetName()

Name of the implementation function which this composable was copied to.