Class of android.text.util · Linkify.java · Android's reference
public class Linkify
Finds web addresses, e-mail addresses and phone numbers in a text, and makes them links (URLSpans).
public static final int WEB_URLS = 0x01 sourcepublic static final int EMAIL_ADDRESSES = 0x02 sourcepublic static final int PHONE_NUMBERS = 0x04 sourcepublic static final int MAP_ADDRESSES = 0x08 sourcepublic static final int ALL = 0x0f sourcepublic static final MatchFilter sUrlMatchFilter sourceAccepts a web address unless an '@' comes just before it (then it is part of an e-mail address).
public static final MatchFilter sPhoneNumberMatchFilter sourceAccepts a phone number of at least 5 digits.
public static final TransformFilter sPhoneNumberTransformFilter sourceKeeps only the digits and the '+' of a phone number.
public Linkify() empty body sourcepublic static final boolean addLinks(Spannable text, int mask) sourcepublic static final boolean addLinks(TextView text, int mask) sourcepublic static final void addLinks(TextView text, Pattern pattern, String scheme) sourcepublic static final void addLinks(TextView text, Pattern pattern, String scheme, MatchFilter matchFilter, TransformFilter transformFilter) sourcepublic static final void addLinks(TextView text, Pattern pattern, String defaultScheme, String[] schemes, MatchFilter matchFilter, TransformFilter transformFilter) sourcepublic static final boolean addLinks(Spannable text, Pattern pattern, String scheme) sourcepublic static final boolean addLinks(Spannable spannable, Pattern pattern, String scheme, MatchFilter matchFilter, TransformFilter transformFilter) sourcepublic static final boolean addLinks(Spannable spannable, Pattern pattern, String defaultScheme, String[] schemes, MatchFilter matchFilter, TransformFilter transformFilter) sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.