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 |
|
TimeBuilder(hours: Int, minutes: Int) Creates a builder for a TtsSpan of type |
Public methods | |
---|---|
open TtsSpan.TimeBuilder! |
Sets the |
open TtsSpan.TimeBuilder! |
setMinutes(minutes: Int) Sets the |
Inherited functions | |
---|---|
Public constructors
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