Linkify

object Linkify

Utility for linkifying message text: scans a TextView for URLs, email addresses, and mention tokens (@user, @channel, @here, role mentions) referenced by a Message, and applies clickable spans for each.

This class is a simplified version of Linkify and differs only in one following way It doesn't remove any existing URLSpan from the Spannable.

Functions

Link copied to clipboard
fun addLinks(textView: TextView, message: Message)

Scans the provided TextView and turns URLs, email addresses and every mention token present in message into clickable links.