TtsSpan.CardinalBuilder


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

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


A builder for TtsSpans of type TtsSpan.TYPE_CARDINAL.

Summary

Public constructors

CardinalBuilder()

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

CardinalBuilder(String number)

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

CardinalBuilder(long number)

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

Public methods

TtsSpan.CardinalBuilder setNumber(long number)

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

TtsSpan.CardinalBuilder setNumber(String number)

Sets the TtsSpan.ARG_NUMBER argument.

Inherited methods

Public constructors

CardinalBuilder

Added in API level 21
public CardinalBuilder ()

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

CardinalBuilder

Added in API level 21
public CardinalBuilder (String number)

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

Parameters
number String: The number to synthesize.

See also:

CardinalBuilder

Added in API level 21
public CardinalBuilder (long number)

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

Parameters
number long: The number to synthesize.

See also:

Public methods

setNumber

Added in API level 21
public TtsSpan.CardinalBuilder setNumber (long number)

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

Parameters
number long: The number that will be synthesized.

Returns
TtsSpan.CardinalBuilder This instance.

setNumber

Added in API level 21
public TtsSpan.CardinalBuilder 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.CardinalBuilder This instance.