TtsSpan.DurationBuilder
public
static
class
TtsSpan.DurationBuilder
extends SemioticClassBuilder<TtsSpan.DurationBuilder>
java.lang.Object | |||
↳ | android.text.style.TtsSpan.Builder<C extends android.text.style.TtsSpan.SemioticClassBuilder<?>> | ||
↳ | android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.DurationBuilder> | ||
↳ | android.text.style.TtsSpan.DurationBuilder |
A builder for TtsSpans of type TtsSpan.TYPE_DURATION
.
Summary
Public constructors | |
---|---|
DurationBuilder()
Creates a builder for a TtsSpan of type |
Public methods | |
---|---|
TtsSpan.DurationBuilder
|
setHours(int hours)
Sets the |
TtsSpan.DurationBuilder
|
setMinutes(int minutes)
Sets the |
TtsSpan.DurationBuilder
|
setSeconds(int seconds)
Sets the |
Inherited methods | |
---|---|
Public constructors
DurationBuilder
public DurationBuilder ()
Creates a builder for a TtsSpan of type TtsSpan.TYPE_DURATION
.
Public methods
setHours
public TtsSpan.DurationBuilder setHours (int hours)
Sets the TtsSpan.ARG_HOURS
argument.
Parameters | |
---|---|
hours |
int : The value to be set for hours. |
Returns | |
---|---|
TtsSpan.DurationBuilder |
This instance.
This value cannot be null . |
setMinutes
public TtsSpan.DurationBuilder setMinutes (int minutes)
Sets the TtsSpan.ARG_MINUTES
argument.
Parameters | |
---|---|
minutes |
int : The value to be set for minutes. |
Returns | |
---|---|
TtsSpan.DurationBuilder |
This instance.
This value cannot be null . |
setSeconds
public TtsSpan.DurationBuilder setSeconds (int seconds)
Sets the TtsSpan.ARG_SECONDS
argument.
Parameters | |
---|---|
seconds |
int : The value to be set for seconds. |
Returns | |
---|---|
TtsSpan.DurationBuilder |
This instance.
This value cannot be null . |