语言

Linkify.IMatchFilter.AcceptMatch(ICharSequence, Int32, Int32) 方法

定义

检查模式匹配的字符范围,并确定是否应将匹配转换为可操作的链接。

[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

参数

s
ICharSequence

与之匹配模式的文本正文

start
Int32

与模式匹配的第一个字符的索引 - 非独占

end
Int32

匹配的最后一个字符的索引 - 排他

返回

是否应将此匹配转换为链接

特性

注解

检查模式匹配的字符范围,并确定是否应将匹配转换为可操作的链接。

Java文档android.text.util.Linkify.MatchFilter.acceptMatch(java.lang.CharSequence, int, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于