addLinks

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.

NOTE: Because this implementation doesn't remove existing URLSpan, make sure it is not repeatedly called on same text.

Parameters

textView

TextView whose text will be scanned and marked up with clickable spans.

message

Message providing the mention tokens to linkify alongside URLs and email addresses.