# Print output for @column tags ?> TtsSpan.TimeBuilder - Android SDK | Android Developers

Most visited


Recently visited


TtsSpan.TimeBuilder

public static class TtsSpan.TimeBuilder
extends SemioticClassBuilder<TtsSpan.TimeBuilder>

java.lang.Object
   ↳ android.text.style.TtsSpan.Builder<C extends android.text.style.TtsSpan.SemioticClassBuilder<?>>
     ↳ android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.TimeBuilder>
       ↳ android.text.style.TtsSpan.TimeBuilder


A builder for TtsSpans of type TtsSpan.TYPE_TIME.

Summary


Public constructors

TimeBuilder()

Creates a builder for a TtsSpan of type TtsSpan.TYPE_TIME.

TimeBuilder(int hours, int minutes)

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

Public methods

TtsSpan.TimeBuilder setHours(int hours)

Sets the TtsSpan.ARG_HOURS argument.

TtsSpan.TimeBuilder setMinutes(int minutes)

Sets the TtsSpan.ARG_MINUTES argument.

Inherited methods

Public constructors


TimeBuilder

public TimeBuilder ()

Creates a builder for a TtsSpan of type TtsSpan.TYPE_TIME.

TimeBuilder

public TimeBuilder (int hours, 
                int minutes)

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

Parameters
hours int

minutes int

Public methods


setHours

public TtsSpan.TimeBuilder setHours (int hours)

Sets the TtsSpan.ARG_HOURS argument.

Parameters
hours int: The value to be set for hours. See TtsSpan.ARG_HOURS.

Returns
TtsSpan.TimeBuilder This instance.

See also:

setMinutes

public TtsSpan.TimeBuilder setMinutes (int minutes)

Sets the TtsSpan.ARG_MINUTES argument.

Parameters
minutes int: The value to be set for minutes. See TtsSpan.ARG_MINUTES.

Returns
TtsSpan.TimeBuilder This instance.

See also:

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.