Android APIs
public static class

TtsSpan.MoneyBuilder

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

Class Overview

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(long integerPart)
Convenience method that converts the number to a String and set it to the value for ARG_INTEGER_PART.
TtsSpan.MoneyBuilder setIntegerPart(String integerPart)
Sets the ARG_INTEGER_PART argument.
TtsSpan.MoneyBuilder setQuantity(String quantity)
Sets the ARG_QUANTITY argument.
[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.MoneyBuilder ()

Added in API level 21

Creates a TtsSpan of type TYPE_MONEY.

Public Methods

public TtsSpan.MoneyBuilder setCurrency (String currency)

Added in API level 21

Sets the ARG_CURRENCY argument.

Parameters
currency Should be a ISO4217 currency code, e.g. "USD".
Returns
  • This instance.

public TtsSpan.MoneyBuilder setFractionalPart (String fractionalPart)

Added in API level 21

Sets the ARG_FRACTIONAL_PART argument.

Parameters
fractionalPart Can be a string of digits of any size.
Returns
  • This instance.

public TtsSpan.MoneyBuilder setIntegerPart (long integerPart)

Added in API level 21

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

Parameters
integerPart The integer part of the amount.
Returns
  • This instance.

public TtsSpan.MoneyBuilder setIntegerPart (String integerPart)

Added in API level 21

Sets the ARG_INTEGER_PART argument.

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

public TtsSpan.MoneyBuilder setQuantity (String quantity)

Added in API level 21

Sets the ARG_QUANTITY argument.

Returns
  • This instance.