LinkAnnotation.Url



An annotation that contains a url string. When clicking on the text to which this annotation is attached, the app will try to open the url using androidx.compose.ui.platform.UriHandler. However, if linkInteractionListener is provided, its LinkInteractionListener.onClick method will be called instead and so you need to then handle opening url manually (for example by calling androidx.compose.ui.platform.UriHandler).

Summary

Public constructors

Url(
    url: String,
    styles: TextLinkStyles?,
    linkInteractionListener: LinkInteractionListener?
)
Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

open LinkInteractionListener?

Interaction listener triggered when user interacts with this link.

Cmn
open TextLinkStyles?

Style configuration for this link in different states

Cmn
String
Cmn

Public constructors

Url

Url(
    url: String,
    styles: TextLinkStyles? = null,
    linkInteractionListener: LinkInteractionListener? = null
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

linkInteractionListener

open val linkInteractionListenerLinkInteractionListener?

Interaction listener triggered when user interacts with this link.

styles

open val stylesTextLinkStyles?

Style configuration for this link in different states

url

val urlString