Linkify

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).

Nested types

Fields

public static final int WEB_URLS = 0x01 source
public static final int EMAIL_ADDRESSES = 0x02 source
public static final int PHONE_NUMBERS = 0x04 source
public static final int MAP_ADDRESSES = 0x08 source
public static final int ALL = 0x0f source
public static final MatchFilter sUrlMatchFilter source

Accepts a web address unless an '@' comes just before it (then it is part of an e-mail address).

public static final MatchFilter sPhoneNumberMatchFilter source

Accepts a phone number of at least 5 digits.

public static final TransformFilter sPhoneNumberTransformFilter source

Keeps only the digits and the '+' of a phone number.

Constructors

public Linkify() empty body source

Methods


Made 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.