Linkify.IMatchFilter.AcceptMatch(ICharSequence, Int32, Int32) Method

Definition

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

[Android.Runtime.Register("acceptMatch", "(Ljava/lang/CharSequence;II)Z", "GetAcceptMatch_Ljava_lang_CharSequence_IIHandler:Android.Text.Util.Linkify/IMatchFilterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool AcceptMatch (Java.Lang.ICharSequence? s, int start, int end);
[<Android.Runtime.Register("acceptMatch", "(Ljava/lang/CharSequence;II)Z", "GetAcceptMatch_Ljava_lang_CharSequence_IIHandler:Android.Text.Util.Linkify/IMatchFilterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member AcceptMatch : Java.Lang.ICharSequence * int * int -> bool

Parameters

s
ICharSequence

The body of text against which the pattern was matched

start
Int32

The index of the first character in s that was matched by the pattern - inclusive

end
Int32

The index of the last character in s that was matched - exclusive

Returns

Whether this match should be turned into a link

Attributes

Remarks

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

Java documentation for android.text.util.Linkify.MatchFilter.acceptMatch(java.lang.CharSequence, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to