AlternativeSpan(Int32, Int32, IList<String>) Constructor

Definition

Creates a new 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

Parameters

startPosition
Int32

The start position of the span of the originally recognized string.

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

The exclusive end position of the span of the originally recognized string.

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

All the alternatives for the [mStart, mEnd) span.

          &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.
Attributes

Remarks

Creates a new AlternativeSpan.

Java documentation for android.speech.AlternativeSpan.AlternativeSpan(int, int, java.util.List<java.lang.String>).

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