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 |
Public methods | |
---|---|
open TtsSpan.MoneyBuilder! |
setCurrency(currency: String!) Sets the |
open TtsSpan.MoneyBuilder! |
setFractionalPart(fractionalPart: String!) Sets the |
open TtsSpan.MoneyBuilder! |
setIntegerPart(integerPart: String!) Sets the |
open TtsSpan.MoneyBuilder! |
setIntegerPart(integerPart: Long) Convenience method that converts the number to a String and set it to the value for |
open TtsSpan.MoneyBuilder! |
setQuantity(quantity: String!) Sets the |
Inherited functions | |
---|---|
Public constructors
Public methods
setCurrency
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
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
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. |
setIntegerPart
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. |
setQuantity
open fun setQuantity(quantity: String!): TtsSpan.MoneyBuilder!
Sets the ARG_QUANTITY
argument.
Parameters | |
---|---|
quantity |
String!: |
Return | |
---|---|
TtsSpan.MoneyBuilder! |
This instance. |