Added in API level 21

DateBuilder


open class DateBuilder : TtsSpan.SemioticClassBuilder<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
TtsSpan! build()

Returns a TtsSpan built from the parameters set by the setter methods.

C setIntArgument(arg: String!, value: Int)

Sets an argument to an int value.

C setLongArgument(arg: String!, value: Long)

Sets an argument to a long value.

C setStringArgument(arg: String!, value: String!)

Sets an argument to a string value.

C setAnimacy(animacy: String!)

Sets the animacy information for this instance.

C setCase(grammaticalCase: String!)

Sets the grammatical case information for this instance.

C setGender(gender: String!)

Sets the gender information for this instance.

C setMultiplicity(multiplicity: String!)

Sets the multiplicity information for this instance.

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