Package-level declarations
appendBlueskyText builder extension, buildBlueskyAnnotatedString helper, and the exported ANNOTATION_TAG_* annotation tag constants.
Properties
Link copied to clipboard
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.
Link copied to clipboard
String-annotation tag attached to spans corresponding to app.bsky.richtext.facet#tag features. The annotation's value is the bare tag string (without the leading #).
Functions
Link copied to clipboard
fun AnnotatedString.Builder.appendBlueskyText(text: String, facets: List<Facet>?, onFacet: AnnotatedString.Builder.(feature: FacetFeaturesUnion, startChar: Int, endChar: Int, slice: String) -> Unit)
Append Bluesky text to this AnnotatedString.Builder and invoke onFacet for every valid facet feature, sorted by byteStart ascending.
Link copied to clipboard
fun buildBlueskyAnnotatedString(text: String, facets: List<Facet>?, styleMapper: (feature: FacetFeaturesUnion) -> SpanStyle): AnnotatedString
Render Bluesky post text + facets as an AnnotatedString, with styling controlled by the consumer's styleMapper.