Class

LinkAnnotation.Clickable

An annotation that contains a clickable marked with tag.

Source set: Common
public class Clickable(
        public val tag: String,
        public override val styles: TextLinkStyles? = null,
        // nullable for the save/restore purposes
        public override val linkInteractionListener: LinkInteractionListener?,
    ) : LinkAnnotation()

An annotation that contains a clickable marked with tag. When clicking on the text to which this annotation is attached, the app will trigger a linkInteractionListener listener.

Functions

copy

Source set: Common
public fun copy(
            tag: String = this.tag,
            styles: TextLinkStyles? = this.styles,
            linkInteractionListener: LinkInteractionListener? = this.linkInteractionListener,
        ): Clickable

Returns a copy of this Clickable, optionally overriding some of the values.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: