Added in API level 21

FractionBuilder


open class FractionBuilder : TtsSpan.SemioticClassBuilder<TtsSpan.FractionBuilder!>
kotlin.Any
   ↳ android.text.style.TtsSpan.Builder<C>
   ↳ android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.FractionBuilder>
   ↳ android.text.style.TtsSpan.FractionBuilder

A builder for TtsSpans of type TYPE_FRACTION.

Summary

Public constructors

Creates a builder for a TtsSpan of type TYPE_FRACTION.

FractionBuilder(integerPart: Long, numerator: Long, denominator: Long)

Creates a TtsSpan of type TYPE_FRACTION and sets the ARG_INTEGER_PART, ARG_NUMERATOR, and ARG_DENOMINATOR arguments.

Public methods
open TtsSpan.FractionBuilder!
setDenominator(denominator: String!)

Sets the ARG_DENOMINATOR argument.

open TtsSpan.FractionBuilder!
setDenominator(denominator: Long)

Convenience method that converts the denominator to a String and sets the argument ARG_DENOMINATOR.

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

Sets the ARG_INTEGER_PART argument.

open TtsSpan.FractionBuilder!
setIntegerPart(integerPart: Long)

Convenience method that converts the integer to a String and sets the argument ARG_NUMBER.

open TtsSpan.FractionBuilder!
setNumerator(numerator: String!)

Sets the ARG_NUMERATOR argument.

open TtsSpan.FractionBuilder!
setNumerator(numerator: Long)

Convenience method that converts the numerator to a String and sets the argument ARG_NUMERATOR.

Inherited functions

Public constructors

FractionBuilder

Added in API level 21
FractionBuilder()

Creates a builder for a TtsSpan of type TYPE_FRACTION.

FractionBuilder

Added in API level 21
FractionBuilder(
    integerPart: Long,
    numerator: Long,
    denominator: Long)

Creates a TtsSpan of type TYPE_FRACTION and sets the ARG_INTEGER_PART, ARG_NUMERATOR, and ARG_DENOMINATOR arguments.

Public methods

setDenominator

Added in API level 21
open fun setDenominator(denominator: String!): TtsSpan.FractionBuilder!

Sets the ARG_DENOMINATOR argument.

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

setDenominator

Added in API level 21
open fun setDenominator(denominator: Long): TtsSpan.FractionBuilder!

Convenience method that converts the denominator to a String and sets the argument ARG_DENOMINATOR.

Parameters
denominator Long: The denominator.
Return
TtsSpan.FractionBuilder! This instance.

setIntegerPart

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

Sets the ARG_INTEGER_PART argument.

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

setIntegerPart

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

Convenience method that converts the integer to a String and sets the argument ARG_NUMBER.

Parameters
integerPart Long: The integer part.
Return
TtsSpan.FractionBuilder! This instance.

setNumerator

Added in API level 21
open fun setNumerator(numerator: String!): TtsSpan.FractionBuilder!

Sets the ARG_NUMERATOR argument.

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

setNumerator

Added in API level 21
open fun setNumerator(numerator: Long): TtsSpan.FractionBuilder!

Convenience method that converts the numerator to a String and sets the argument ARG_NUMERATOR.

Parameters
numerator Long: The numerator.
Return
TtsSpan.FractionBuilder! This instance.