Class

LinkAnnotation.Clickable

An annotation that contains a clickable marked with tag.

Common
class Clickable(
        val tag: String,
        override val styles: TextLinkStyles? = null,
        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

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

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