語言

AlternativeSpan(Int32, Int32, IList<String>) 建構函式

定義

建立一個新的 AlternativeSpan。

[Android.Runtime.Register(".ctor", "(IILjava/util/List;)V", "", ApiSince=34)]
public AlternativeSpan(int startPosition, int endPosition, System.Collections.Generic.IList<string> alternatives);
[<Android.Runtime.Register(".ctor", "(IILjava/util/List;)V", "", ApiSince=34)>]
new Android.Speech.AlternativeSpan : int * int * System.Collections.Generic.IList<string> -> Android.Speech.AlternativeSpan

參數

startPosition
Int32

原始識別字串跨度的起始位置。

          &lt;p&gt; Must be set to a non-negative value before building.
endPosition
Int32

原始識別字串跨間的排他終點位置。

          &lt;p&gt; Must be set to a value greater than the start of the span before building.
alternatives
IList<String>

[mStart, mEnd] 範圍的所有替代方案。

          &lt;p&gt; Must not be empty. The object will only be created
          if there are some alternatives for the given span.

          &lt;p&gt; The alternatives may be strings of different lengths than the span they can replace.
屬性

備註

建立一個新的 AlternativeSpan。

Java 文件 android.speech.AlternativeSpan.AlternativeSpan(int, int, java.util.List<java.lang.String>)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於