Added in API level 21

MoneyBuilder


open class MoneyBuilder : TtsSpan.SemioticClassBuilder<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: String!)

Sets the ARG_INTEGER_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!
setQuantity(quantity: String!)

Sets the ARG_QUANTITY argument.

Inherited functions
TtsSpan! build()

Returns a TtsSpan built from the parameters set by the setter methods.

C setIntArgument(arg: String!, value: Int)

Sets an argument to an int value.

C setLongArgument(arg: String!, value: Long)

Sets an argument to a long value.

C setStringArgument(arg: String!, value: String!)

Sets an argument to a string value.

C setAnimacy(animacy: String!)

Sets the animacy information for this instance.

C setCase(grammaticalCase: String!)

Sets the grammatical case information for this instance.

C setGender(gender: String!)

Sets the gender information for this instance.

C setMultiplicity(multiplicity: String!)

Sets the multiplicity information for this instance.

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: 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

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.

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.