LinkifyIMatchFilterExtensions.AcceptMatch Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Calls the match filter with a string to decide whether the matched range should become a link.
public static bool AcceptMatch(this Android.Text.Util.Linkify.IMatchFilter self, string? s, int start, int end);
static member AcceptMatch : Android.Text.Util.Linkify.IMatchFilter * string * int * int -> bool
Parameters
- self
- Linkify.IMatchFilter
The filter that decides whether to accept the match.
- s
- String
The complete text in which the pattern was matched. The filter determines whether it accepts null.
- start
- Int32
The zero-based index of the first matched UTF-16 code unit, inclusive.
- end
- Int32
The zero-based index after the last matched UTF-16 code unit, exclusive.
Returns
true if the filter accepts the match; otherwise, false.
Remarks
This .NET overload converts the string to a Java character sequence and calls AcceptMatch(ICharSequence, Int32, Int32). It passes the complete text and the range unchanged.
The string overload is generated by the .NET binding generator.
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.