LinkifyCompat

public final class LinkifyCompat


LinkifyCompat brings in Linkify improvements for URLs and email addresses to older API levels.

Summary

Public constructors

Public methods

static boolean

Scans the text of the provided Spannable and turns all occurrences of the link types indicated in the mask into clickable links.

static boolean

Scans the text of the provided TextView and turns all occurrences of the link types indicated in the mask into clickable links.

static void
addLinks(
    @NonNull TextView text,
    @NonNull Pattern pattern,
    @Nullable String scheme
)

Applies a regex to the text of a TextView turning the matches into links.

static void
addLinks(
    @NonNull TextView text,
    @NonNull Pattern pattern,
    @Nullable String scheme,
    @Nullable Linkify.MatchFilter matchFilter,
    @Nullable Linkify.TransformFilter transformFilter
)

Applies a regex to the text of a TextView turning the matches into links.

static void
addLinks(
    @NonNull TextView text,
    @NonNull Pattern pattern,
    @Nullable String defaultScheme,
    String[] schemes,
    @Nullable Linkify.MatchFilter matchFilter,
    @Nullable Linkify.TransformFilter transformFilter
)

Applies a regex to the text of a TextView turning the matches into links.

static boolean
addLinks(
    @NonNull Spannable text,
    @NonNull Pattern pattern,
    @Nullable String scheme
)

Applies a regex to a Spannable turning the matches into links.

static boolean
addLinks(
    @NonNull Spannable spannable,
    @NonNull Pattern pattern,
    @Nullable String scheme,
    @Nullable Linkify.MatchFilter matchFilter,
    @Nullable Linkify.TransformFilter transformFilter
)

Applies a regex to a Spannable turning the matches into links.

static boolean
addLinks(
    @NonNull