Most visited

Recently visited

Added in API level 21

TtsSpan.MoneyBuilder

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


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

From class android.text.style.TtsSpan.SemioticClassBuilder
From class android.text.style.TtsSpan.Builder
From 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.

Hooray!