Class

StringAnnotation

An AnnotatedString.Annotation class which holds a String value.

Source set: Common
public class StringAnnotation(public val value: String) : AnnotatedString.Annotation

An AnnotatedString.Annotation class which holds a String value.

You can use it to provide a custom annotation to the AnnotatedString.

If you use the AnnotatedString.Builder methods like withAnnotation and provide a string annotation, it will be automatically wrapped into this holder class.

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: