lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

TtsSpan.OrdinalBuilder

public static class TtsSpan.OrdinalBuilder
extends SemioticClassBuilder<TtsSpan.OrdinalBuilder>

java.lang.Object
   ↳ android.text.style.TtsSpan.Builder<C extends android.text.style.TtsSpan.SemioticClassBuilder<?>>
     ↳ android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.OrdinalBuilder>
       ↳ android.text.style.TtsSpan.OrdinalBuilder


A builder for TtsSpans of type TtsSpan.TYPE_ORDINAL.

Summary

Public constructors

TtsSpan.OrdinalBuilder()

Creates a builder for a TtsSpan of type TtsSpan.TYPE_ORDINAL.

TtsSpan.OrdinalBuilder(long number)

Creates a TtsSpan of type TtsSpan.TYPE_ORDINAL and sets the TtsSpan.ARG_NUMBER argument.

TtsSpan.OrdinalBuilder(String number)

Creates a TtsSpan of type TtsSpan.TYPE_ORDINAL and sets the TtsSpan.ARG_NUMBER argument.

Public methods

TtsSpan.OrdinalBuilder setNumber(long number)

Convenience method that converts the number to a String and sets it to the value for TtsSpan.ARG_NUMBER.

TtsSpan.OrdinalBuilder setNumber(String number)

Sets the TtsSpan.ARG_NUMBER argument.

Inherited methods

Public constructors

TtsSpan.OrdinalBuilder

added in API level 21
public TtsSpan.OrdinalBuilder ()

Creates a builder for a TtsSpan of type TtsSpan.TYPE_ORDINAL.

TtsSpan.OrdinalBuilder

added in API level 21
public TtsSpan.OrdinalBuilder (long number)

Creates a TtsSpan of type TtsSpan.TYPE_ORDINAL and sets the TtsSpan.ARG_NUMBER argument.

Parameters
number long: The ordinal number to synthesize.

See also:

TtsSpan.OrdinalBuilder

added in API level 21
public TtsSpan.OrdinalBuilder (String number)

Creates a TtsSpan of type TtsSpan.TYPE_ORDINAL and sets the TtsSpan.ARG_NUMBER argument.

Parameters
number String: The number to synthesize.

See also:

Public methods

setNumber

added in API level 21
public TtsSpan.OrdinalBuilder setNumber (long number)

Convenience method that converts the number to a String and sets it to the value for TtsSpan.ARG_NUMBER.

Parameters
number long: The ordinal number that will be synthesized.

Returns
TtsSpan.OrdinalBuilder This instance.

setNumber

added in API level 21
public TtsSpan.OrdinalBuilder setNumber (String number)

Sets the TtsSpan.ARG_NUMBER argument.

Parameters
number String: A non-empty string of digits with an optional leading + or -.

Returns
TtsSpan.OrdinalBuilder This instance.