Class

UrlAnnotation

An annotation that contains the metadata intended for text-to-speech engine.

Source set: Common
@Deprecated("Use LinkAnnotatation.Url(url) instead", ReplaceWith("LinkAnnotation.Url(url)"))
public class UrlAnnotation(public val url: String) : AnnotatedString.Annotation

An annotation that contains the metadata intended for text-to-speech engine. If the text is being processed by a text-to-speech engine, the engine may use the data in this annotation in addition to or instead of its associated text.

Note: this is now deprecated. In order to display a link in the text, add a LinkAnnotation to the AnnotatedString and pass it to the Text composable function

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: