Linkify

object Linkify

Linkify links the part of the text based on matching pattern.

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, mentionableUsers: List<User>)

Scans the provided TextView and turns all occurrences of the link types into clickable links. If matches are found the movement method for the TextView is set to LinkMovementMethod.