Function

withLink

Pushes a LinkAnnotation to the AnnotatedString.Builder, executes block and then pops the annotation.

Source set: Common
public inline fun <R : Any> Builder.withLink(link: LinkAnnotation, block: Builder.() -> R): R

Pushes a LinkAnnotation to the AnnotatedString.Builder, executes block and then pops the annotation.

Parameters

link A LinkAnnotation object representing a clickable part of the text
block function to be executed

Return

result of the block

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: