Android APIs
public static class

TtsSpan.CardinalBuilder

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

Class Overview

A builder for TtsSpans of type TYPE_CARDINAL.

Summary

Public Constructors
TtsSpan.CardinalBuilder()
Creates a builder for a TtsSpan of type TYPE_CARDINAL.
TtsSpan.CardinalBuilder(long number)
Creates a TtsSpan of type TYPE_CARDINAL and sets the ARG_NUMBER argument.
TtsSpan.CardinalBuilder(String number)
Creates a TtsSpan of type TYPE_CARDINAL and sets the ARG_NUMBER argument.
Public Methods
TtsSpan.CardinalBuilder setNumber(String number)
Sets the ARG_NUMBER argument.
TtsSpan.CardinalBuilder setNumber(long number)
Convenience method that converts the number to a String and set it to the value for ARG_NUMBER.
[Expand]
Inherited Methods
From class android.text.style.TtsSpan.SemioticClassBuilder
From class android.text.style.TtsSpan.Builder
From class java.lang.Object

Public Constructors

public TtsSpan.CardinalBuilder ()

Added in API level 21

Creates a builder for a TtsSpan of type TYPE_CARDINAL.

public TtsSpan.CardinalBuilder (long number)

Added in API level 21

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

Parameters
number The number to synthesize.
See Also

public TtsSpan.CardinalBuilder (String number)

Added in API level 21

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

Parameters
number The number to synthesize.

Public Methods

public TtsSpan.CardinalBuilder setNumber (String number)

Added in API level 21

Sets the ARG_NUMBER argument.

Parameters
number A non-empty string of digits with an optional leading + or -.
Returns
  • This instance.

public TtsSpan.CardinalBuilder setNumber (long number)

Added in API level 21

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

Parameters
number The number that will be synthesized.
Returns
  • This instance.