lightbulb_outline Please take our October 2018 developer survey. Start survey

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

TtsSpan.CardinalBuilder()

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

TtsSpan.CardinalBuilder(long number)

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

TtsSpan.CardinalBuilder(String 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

TtsSpan.CardinalBuilder

added in API level 21
public TtsSpan.CardinalBuilder ()

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

TtsSpan.CardinalBuilder

added in API level 21
public TtsSpan.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:

TtsSpan.CardinalBuilder

added in API level 21
public TtsSpan.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:

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.