Lenguaje

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

Definición

Crea un nuevo objeto 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

Parámetros

startPosition
Int32

Posición inicial del intervalo de la cadena reconocida originalmente.

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

Posición final exclusiva del intervalo de la cadena reconocida originalmente.

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

Todas las alternativas para el intervalo [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.
Atributos

Comentarios

Crea un nuevo objeto AlternativeSpan.

Java documentación para android.speech.AlternativeSpan.AlternativeSpan(int, int, java.util.List<java.lang.String>).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a