ANNOTATION_TAG_MENTION
String-annotation tag attached to spans corresponding to app.bsky.richtext.facet#mention features. The annotation's value is the mentioned account's DID raw string.
Use this constant — not a literal string — when extracting mention targets from a click handler:
val mention = annotated
.getStringAnnotations(ANNOTATION_TAG_MENTION, offset, offset)
.firstOrNull()
?.item // → "did:plc:..."Content copied to clipboard