Added in API level 21

TimeBuilder


open class TimeBuilder : TtsSpan.SemioticClassBuilder<TtsSpan.TimeBuilder!>

A builder for TtsSpans of type TYPE_TIME.

Summary

Public constructors

Creates a builder for a TtsSpan of type TYPE_TIME.

TimeBuilder(hours: Int, minutes: Int)

Creates a builder for a TtsSpan of type TYPE_TIME and sets the ARG_HOURS and ARG_MINUTES arguments.

Public methods
open TtsSpan.TimeBuilder!
setHours(hours: Int)

Sets the ARG_HOURS argument.

open TtsSpan.TimeBuilder!
setMinutes(minutes: Int)

Sets the ARG_MINUTES argument.

open TtsSpan.TimeBuilder
setSeconds(seconds: Int)

Sets the ARG_SECONDS 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

TimeBuilder

Added in API level 21
TimeBuilder()

Creates a builder for a TtsSpan of type TYPE_TIME.

TimeBuilder

Added in API level 21
TimeBuilder(
    hours: Int,
    minutes: Int)

Creates a builder for a TtsSpan of type TYPE_TIME and sets the ARG_HOURS and ARG_MINUTES arguments.

Public methods

setHours

Added in API level 21
open fun setHours(hours: Int): TtsSpan.TimeBuilder!

Sets the ARG_HOURS argument.

Parameters
hours Int: The value to be set for hours. See ARG_HOURS. Value is between 0 and 24 inclusive
Return
TtsSpan.TimeBuilder! This instance.

See Also

setMinutes

Added in API level 21
open fun setMinutes(minutes: Int): TtsSpan.TimeBuilder!

Sets the ARG_MINUTES argument.

Parameters
minutes Int: The value to be set for minutes. See ARG_MINUTES. Value is between 0 and 59 inclusive
Return
TtsSpan.TimeBuilder! This instance.

See Also

setSeconds

open fun setSeconds(seconds: Int): TtsSpan.TimeBuilder

Sets the ARG_SECONDS argument.

Parameters
seconds Int: The value to be set for seconds. Value is between 0 and 59 inclusive
Return
TtsSpan.TimeBuilder This instance. This value cannot be null.