Java android.text.util Linkify fields, constructors, methods, implement or subclass

Example usage for Java android.text.util Linkify fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.text.util Linkify.

The text is from its open source code.

Field

intWEB_URLS
Bit field indicating that web URLs should be matched in methods that take an options mask
intEMAIL_ADDRESSES
Bit field indicating that email addresses should be matched in methods that take an options mask
intPHONE_NUMBERS
Bit field indicating that phone numbers should be matched in methods that take an options mask
intMAP_ADDRESSES
Bit field indicating that street addresses should be matched in methods that take an options mask.
intALL
Bit mask indicating that all available patterns should be matched in methods that take an options mask

Note:

#MAP_ADDRESSES is deprecated.
MatchFiltersUrlMatchFilter
Filters out web URL matches that occur after an at-sign (@).

Method

voidaddLinks(@NonNull TextView text, @NonNull Pattern pattern, @Nullable String scheme, @Nullable MatchFilter matchFilter, @Nullable TransformFilter transformFilter)
Applies a regex to the text of a TextView turning the matches into links.
booleanaddLinks(@NonNull Spannable spannable, @NonNull Pattern pattern, @Nullable String scheme, @Nullable MatchFilter matchFilter, @Nullable TransformFilter transformFilter)
Applies a regex to a Spannable turning the matches into links.
booleanaddLinks(@NonNull Spannable text, @LinkifyMask int mask)
Scans the text of the provided Spannable and turns all occurrences of the link types indicated in the mask into clickable links.
booleanaddLinks(@NonNull TextView text, @LinkifyMask int mask)
Scans the text of the provided TextView and turns all occurrences of the link types indicated in the mask into clickable links.
booleanaddLinks(@NonNull Spannable text, @LinkifyMask int mask, @Nullable Context context)
voidaddLinks(@NonNull TextView text, @NonNull Pattern pattern, @Nullable String scheme)
Applies a regex to the text of a TextView turning the matches into links.
booleanaddLinks(@NonNull Spannable text, @NonNull Pattern pattern, @Nullable String scheme)
Applies a regex to a Spannable turning the matches into links.