语言

TextLinks.Builder.AddLink 方法

定义

重载

添加 TextLink。

[Android.Runtime.Register("addLink", "(IILjava/util/Map;)Landroid/view/textclassifier/TextLinks$Builder;", "", ApiSince=28)]
public Android.Views.TextClassifiers.TextLinks.Builder AddLink(int start, int end, System.Collections.Generic.IDictionary<string,Java.Lang.Float> entityScores);
[<Android.Runtime.Register("addLink", "(IILjava/util/Map;)Landroid/view/textclassifier/TextLinks$Builder;", "", ApiSince=28)>]
member this.AddLink : int * int * System.Collections.Generic.IDictionary<string, Java.Lang.Float> -> Android.Views.TextClassifiers.TextLinks.Builder

参数

start
Int32

int:已标识子项的起始索引

end
Int32

int:已标识子项的结束索引

entityScores
IDictionary<String,Float>

映射:实体类型到置信度分数的映射。 此值不能为 null。

返回

此值不能为 null。

特性

注解

添加 TextLink。

引发:如果 entityScores 为空或启动大于结束,则引发:IllegalArgumentException。

Android 参考。android.view.textclassifier.TextLinks.Builder.addLink

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

适用于

添加 TextLink。

[Android.Runtime.Register("addLink", "(IILjava/util/Map;Landroid/os/Bundle;)Landroid/view/textclassifier/TextLinks$Builder;", "", ApiSince=29)]
public Android.Views.TextClassifiers.TextLinks.Builder AddLink(int start, int end, System.Collections.Generic.IDictionary<string,Java.Lang.Float> entityScores, Android.OS.Bundle extras);
[<Android.Runtime.Register("addLink", "(IILjava/util/Map;Landroid/os/Bundle;)Landroid/view/textclassifier/TextLinks$Builder;", "", ApiSince=29)>]
member this.AddLink : int * int * System.Collections.Generic.IDictionary<string, Java.Lang.Float> * Android.OS.Bundle -> Android.Views.TextClassifiers.TextLinks.Builder

参数

start
Int32

int

end
Int32

int

entityScores
IDictionary<String,Float>

映射:此值不能为 null。

extras
Bundle

捆绑包:一个可选捆绑包,其中包含与此 TextLink 相关的自定义数据。 此值不能为 null。

返回

此值不能为 null。

特性

注解

添加 TextLink。

Android 参考。android.view.textclassifier.TextLinks.Builder.addLink

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

适用于