LinkifyCompat
LinkifyCompat brings in Linkify
improvements for URLs and email addresses to older API levels.
Types
Link copied to clipboard
Functions
Link copied to clipboard
Scans the text of the provided Spannable and turns all occurrences of the link types indicated in the mask into clickable links.
Scans the text of the provided TextView and turns all occurrences of the link types indicated in the mask into clickable links.
open fun addLinks(@NonNull text: Spannable, @NonNull pattern: Pattern, @Nullable scheme: String): Boolean
open fun addLinks(@NonNull spannable: Spannable, @NonNull pattern: Pattern, @Nullable scheme: String, @Nullable matchFilter: Linkify.MatchFilter, @Nullable transformFilter: Linkify.TransformFilter): Boolean
open fun addLinks(@NonNull spannable: Spannable, @NonNull pattern: Pattern, @Nullable defaultScheme: String, @Nullable schemes: Array<String>, @Nullable matchFilter: Linkify.MatchFilter, @Nullable transformFilter: Linkify.TransformFilter): Boolean
Applies a regex to a Spannable turning the matches into links.
open fun addLinks(@NonNull text: TextView, @NonNull pattern: Pattern, @Nullable scheme: String, @Nullable matchFilter: Linkify.MatchFilter, @Nullable transformFilter: Linkify.TransformFilter)
open fun addLinks(@NonNull text: TextView, @NonNull pattern: Pattern, @Nullable defaultScheme: String, @Nullable schemes: Array<String>, @Nullable matchFilter: Linkify.MatchFilter, @Nullable transformFilter: Linkify.TransformFilter)
Applies a regex to the text of a TextView turning the matches into links.