| java.lang.Object | |||
| ↳ | android.text.style.TtsSpan.Builder<android.text.style.TtsSpan.DecimalBuilder> | ||
| ↳ | android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.DecimalBuilder> | ||
| ↳ | android.text.style.TtsSpan.DecimalBuilder | ||
A builder for TtsSpans of type TYPE_DECIMAL.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a builder for a TtsSpan of type
TYPE_DECIMAL.
| |||||||||||
Creates a TtsSpan of type
TYPE_DECIMAL and sets the
ARG_INTEGER_PART and ARG_FRACTIONAL_PART arguments.
| |||||||||||
Creates a TtsSpan of type
TYPE_DECIMAL and sets the
ARG_INTEGER_PART and ARG_FRACTIONAL_PART arguments.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Convenience method takes a double and a maximum number of fractional
digits, it sets the
ARG_INTEGER_PART and
ARG_FRACTIONAL_PART arguments.
| |||||||||||
Sets the
ARG_FRACTIONAL_PART argument.
| |||||||||||
Convenience method that converts the number to a String and sets it
to the value for
ARG_INTEGER_PART.
| |||||||||||
Sets the
ARG_INTEGER_PART argument.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.text.style.TtsSpan.SemioticClassBuilder
| |||||||||||
From class
android.text.style.TtsSpan.Builder
| |||||||||||
From class
java.lang.Object
| |||||||||||
Creates a builder for a TtsSpan of type TYPE_DECIMAL.
Creates a TtsSpan of type TYPE_DECIMAL and sets the
ARG_INTEGER_PART and ARG_FRACTIONAL_PART arguments.
Creates a TtsSpan of type TYPE_DECIMAL and sets the
ARG_INTEGER_PART and ARG_FRACTIONAL_PART arguments.
Convenience method takes a double and a maximum number of fractional
digits, it sets the ARG_INTEGER_PART and
ARG_FRACTIONAL_PART arguments.
| number | The number to be synthesized. |
|---|---|
| minimumFractionDigits | The minimum number of fraction digits that are pronounced. |
| maximumFractionDigits | The maximum number of fraction digits that are pronounced. If maximumFractionDigits < minimumFractionDigits then minimumFractionDigits will be assumed to be equal to maximumFractionDigits. |
Sets the ARG_FRACTIONAL_PART argument.
| fractionalPart | A non-empty string of digits. |
|---|
Convenience method that converts the number to a String and sets it
to the value for ARG_INTEGER_PART.
| integerPart | The integer part of the decimal. |
|---|
Sets the ARG_INTEGER_PART argument.
| integerPart | A non-empty string of digits with an optional leading + or -. |
|---|