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: @NonNull Spannable, @NonNull pattern: @NonNull Pattern, @Nullable scheme: @Nullable String): Boolean
open fun addLinks(@NonNull spannable: @NonNull Spannable, @NonNull pattern: @NonNull Pattern, @Nullable scheme: @Nullable String, @Nullable matchFilter: @Nullable Linkify.MatchFilter, @Nullable transformFilter: @Nullable Linkify.TransformFilter): Boolean
open fun addLinks(@NonNull spannable: @NonNull Spannable, @NonNull pattern: @NonNull Pattern, @Nullable defaultScheme: @Nullable String, schemes: @Nullable Array<String>, @Nullable matchFilter: @Nullable Linkify.MatchFilter, @Nullable transformFilter: @Nullable Linkify.TransformFilter): Boolean
Applies a regex to a Spannable turning the matches into links.
open fun addLinks(@NonNull text: @NonNull TextView, @NonNull pattern: @NonNull Pattern, @Nullable scheme: @Nullable String)
open fun addLinks(@NonNull text: @NonNull TextView, @NonNull pattern: @NonNull Pattern, @Nullable scheme: @Nullable String, @Nullable matchFilter: @Nullable Linkify.MatchFilter, @Nullable transformFilter: @Nullable Linkify.TransformFilter)
open fun addLinks(@NonNull text: @NonNull TextView, @NonNull pattern: @NonNull Pattern, @Nullable defaultScheme: @Nullable String, schemes: @Nullable Array<String>, @Nullable matchFilter: @Nullable Linkify.MatchFilter, @Nullable transformFilter: @Nullable Linkify.TransformFilter)
Applies a regex to the text of a TextView turning the matches into links.