Added in API level 21

MoneyBuilder


open class MoneyBuilder : TtsSpan.SemioticClassBuilder<TtsSpan.MoneyBuilder!>
kotlin.Any
   ↳ android.text.style.TtsSpan.Builder<C>
   ↳ 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

Creates a TtsSpan of type TYPE_MONEY.

Public methods
open TtsSpan.MoneyBuilder!
setCurrency(currency: String!)

Sets the ARG_CURRENCY argument.

open TtsSpan.MoneyBuilder!
setFractionalPart(fractionalPart: String!)

Sets the ARG_FRACTIONAL_PART argument.

open TtsSpan.MoneyBuilder!
setIntegerPart(integerPart: Long)

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

open TtsSpan.MoneyBuilder!
setIntegerPart(integerPart: String!)

Sets the ARG_INTEGER_PART argument.

open TtsSpan.MoneyBuilder!
setQuantity(quantity: String!)

Sets the ARG_QUANTITY argument.

Inherited functions

Public constructors

MoneyBuilder

Added in API level 21
MoneyBuilder()

Creates a TtsSpan of type TYPE_MONEY.

Public methods

setCurrency

Added in API level 21
open fun setCurrency(currency: String!): TtsSpan.MoneyBuilder!

Sets the ARG_CURRENCY argument.

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

setFractionalPart

Added in API level 21
open fun setFractionalPart(fractionalPart: String!): TtsSpan.MoneyBuilder!

Sets the ARG_FRACTIONAL_PART argument.

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

setIntegerPart

Added in API level 21
open fun setIntegerPart(integerPart: Long): TtsSpan.MoneyBuilder!

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.
Return
TtsSpan.MoneyBuilder! This instance.

setIntegerPart

Added in API level 21
open fun setIntegerPart(integerPart: String!): TtsSpan.MoneyBuilder!

Sets the ARG_INTEGER_PART argument.

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

setQuantity

Added in API level 21
open fun setQuantity(quantity: String!): TtsSpan.MoneyBuilder!

Sets the ARG_QUANTITY argument.

Parameters
quantity String!:
Return
TtsSpan.MoneyBuilder! This instance.