AutoLinkableTextTransformer

AutoLinkable implementation of ChatMessageTextTransformer that makes TextView links clickable after applying the transformer.

By default our SDK text views don't have android:autoLink set due to a limitation in Markdown linkify implementation.

Constructors

Link copied to clipboard
constructor(transformer: (textView: TextView, messageItem: MessageListItem.MessageItem) -> Unit)

Properties

Link copied to clipboard
val transformer: (textView: TextView, messageItem: MessageListItem.MessageItem) -> Unit

Functions

Link copied to clipboard
open override fun transformAndApply(textView: TextView, messageItem: MessageListItem.MessageItem)

Transforms a given MessageListItem.MessageItem and sets the formatted string to the TextView.