Added in API level 21

DateBuilder


open class DateBuilder : TtsSpan.SemioticClassBuilder<TtsSpan.DateBuilder!>
kotlin.Any
   ↳ android.text.style.TtsSpan.Builder<C>
   ↳ android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.DateBuilder>
   ↳ android.text.style.TtsSpan.DateBuilder

A builder for TtsSpans of type TYPE_DATE.

Summary

Public constructors

Creates a builder for a TtsSpan of type TYPE_DATE.

DateBuilder(weekday: Int!, day: Int!, month: Int!, year: Int!)

Creates a builder for a TtsSpan of type TYPE_TIME and possibly sets the ARG_WEEKDAY, ARG_DAY, ARG_MONTH and ARG_YEAR arguments.

Public methods
open TtsSpan.DateBuilder!
setDay(day: Int)

Sets the ARG_DAY argument.

open TtsSpan.DateBuilder!
setMonth(month: Int)

Sets the ARG_MONTH argument.

open TtsSpan.DateBuilder!
setWeekday(weekday: Int)

Sets the ARG_WEEKDAY argument.

open TtsSpan.DateBuilder!
setYear(year: Int)

Sets the ARG_YEAR argument.

Inherited functions

Public constructors

DateBuilder

Added in API level 21
DateBuilder()

Creates a builder for a TtsSpan of type TYPE_DATE.

DateBuilder

Added in API level 21
DateBuilder(
    weekday: Int!,
    day: Int!,
    month: Int!,
    year: Int!)

Creates a builder for a TtsSpan of type TYPE_TIME and possibly sets the ARG_WEEKDAY, ARG_DAY, ARG_MONTH and ARG_YEAR arguments. Pass null to any argument to leave it unset.

Public methods

setDay

Added in API level 21
open fun setDay(day: Int): TtsSpan.DateBuilder!

Sets the ARG_DAY argument.

Parameters
day Int: The value to be set for day. See ARG_DAY.
Return
TtsSpan.DateBuilder! This instance.

See Also

setMonth

Added in API level 21
open fun setMonth(month: Int): TtsSpan.DateBuilder!

Sets the ARG_MONTH argument.

Parameters
month Int: The value to be set for month. See ARG_MONTH.
Return
TtsSpan.DateBuilder! This instance.

See Also

setWeekday

Added in API level 21
open fun setWeekday(weekday: Int): TtsSpan.DateBuilder!

Sets the ARG_WEEKDAY argument.

Parameters
weekday Int: The value to be set for weekday. See ARG_WEEKDAY.
Return
TtsSpan.DateBuilder! This instance.

See Also

setYear

Added in API level 21
open fun setYear(year: Int): TtsSpan.DateBuilder!

Sets the ARG_YEAR argument.

Parameters
year Int: The value to be set for year. See ARG_YEAR.
Return
TtsSpan.DateBuilder! This instance.

See Also