The Wayback Machine - https://web.archive.org/web/20161023134200/https://developer.android.com/reference/android/text/style/TtsSpan.MoneyBuilder.html
Skip to content

Most visited

Recently visited

navigation

TtsSpan.MoneyBuilder

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

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


A builder for TtsSpans of type TYPE_MONEY.

Summary

Public constructors

TtsSpan.MoneyBuilder()

Creates a TtsSpan of type TYPE_MONEY.

Public methods

TtsSpan.MoneyBuilder setCurrency(String currency)

Sets the ARG_CURRENCY argument.

TtsSpan.MoneyBuilder setFractionalPart(String fractionalPart)

Sets the ARG_FRACTIONAL_PART argument.

TtsSpan.MoneyBuilder setIntegerPart(String integerPart)

Sets the ARG_INTEGER_PART argument.

TtsSpan.MoneyBuilder setIntegerPart(long integerPart)

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

TtsSpan.MoneyBuilder setQuantity(String quantity)

Sets the ARG_QUANTITY argument.

Inherited methods

ImageFrom class android.text.style.TtsSpan.SemioticClassBuilder
ImageFrom class android.text.style.TtsSpan.Builder
ImageFrom class java.lang.Object

Public constructors

TtsSpan.MoneyBuilder

Added in API level 21
TtsSpan.MoneyBuilder ()

Creates a TtsSpan of type TYPE_MONEY.

Public methods

setCurrency

Added in API level 21
TtsSpan.MoneyBuilder setCurrency (String currency)

Sets the ARG_CURRENCY argument.

Parameters
currency String: Should be a ISO4217 currency code, e.g. "USD".
Returns
TtsSpan.MoneyBuilder This instance.

setFractionalPart

Added in API level 21
TtsSpan.MoneyBuilder setFractionalPart (String fractionalPart)

Sets the ARG_FRACTIONAL_PART argument.

Parameters
fractionalPart String: Can be a string of digits of any size.
Returns
TtsSpan.MoneyBuilder This instance.

setIntegerPart

Added in API level 21
TtsSpan.MoneyBuilder setIntegerPart (String integerPart)

Sets the ARG_INTEGER_PART argument.

Parameters
integerPart String: A non-empty string of digits with an optional leading + or -.
Returns
TtsSpan.MoneyBuilder This instance.

setIntegerPart

Added in API level 21
TtsSpan.MoneyBuilder setIntegerPart (long integerPart)

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

Parameters
integerPart long: The integer part of the amount.
Returns
TtsSpan.MoneyBuilder This instance.

setQuantity

Added in API level 21
TtsSpan.MoneyBuilder setQuantity (String quantity)

Sets the ARG_QUANTITY argument.

Returns
TtsSpan.MoneyBuilder This instance.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.