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

ComposableTargetMarker

@Retention(value = AnnotationRetention.BINARY)
@Target(allowedTargets = [AnnotationTarget.ANNOTATION_CLASS])
public annotation ComposableTargetMarker


This annotation is used to mark an annotation as being equivalent using ComposableTarget with the fully qualified name of the marked annotation as the applier value. See ComposableTarget for when a ComposableTarget annotation is required and when it can be inferred by the Compose compiler plugin.

The description value can be used to supply a string that is used to describe the group of composable function instead of applier parameter of the ComposableTarget. See UiComposable and VectorComposable for examples. If no description is provided, the fully-qualified name of the marked annotation is used instead.

Summary

Public constructors

Public methods

final @NonNull String

Public constructors

ComposableTargetMarker

public ComposableTargetMarker(@NonNull String description)

Public methods

getDescription

public final @NonNull String getDescription()