Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# Linkify.MatchFilter

*** ** * ** ***

` public static interface Linkify.MatchFilter `   
` `

|---|
| android.text.util.Linkify.MatchFilter |

<br />

*** ** * ** ***

MatchFilter enables client code to have more control over what is allowed to match and become a link, and what is not. For example: when matching web URLs you would like things like http://www.example.com to match, as well as just example.com itelf. However, you would not want to match against the domain in support@example.com. So, when matching against a web URL pattern you might also include a MatchFilter that disallows the match if it is immediately preceded by an at-sign (@).

## Summary

| ### Public methods ||
|---|---|
| ` abstract boolean` | ` https://developer.android.com/reference/android/text/util/Linkify.MatchFilter#acceptMatch(java.lang.CharSequence,%20int,%20int)(https://developer.android.com/reference/java/lang/CharSequence s, int start, int end) ` Examines the character span matched by the pattern and determines if the match should be turned into an actionable link. |

## Public methods

### acceptMatch

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract boolean acceptMatch (CharSequence s, 
                int start, 
                int end)
```

Examines the character span matched by the pattern and determines if the match should be turned into an actionable link.

<br />

| Parameters ||
|---|---|
| `s` | `CharSequence`: The body of text against which the pattern was matched <br /> |
| `start` | `int`: The index of the first character in s that was matched by the pattern - inclusive <br /> |
| `end` | `int`: The index of the last character in s that was matched - exclusive <br /> |

| Returns ||
|---|---|
| `boolean` | Whether this match should be turned into a link <br /> |