Added in API level 21

TimeBuilder


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

Inherited functions

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

See Also