TtsSpan.SemioticClassBuilder

public static class TtsSpan.SemioticClassBuilder
extends Builder<C extends SemioticClassBuilder<?>>

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


A builder for TtsSpans, has setters for morphosyntactic features. This builder can be used directly, but the more specific subclasses of this builder like TtsSpan.TextBuilder and TtsSpan.CardinalBuilder are likely more useful.

Summary

Public constructors

TtsSpan.SemioticClassBuilder(String type)

Public methods

C setAnimacy(String animacy)

Sets the animacy information for this instance.

C setCase(String grammaticalCase)

Sets the grammatical case information for this instance.

C setGender(String gender)

Sets the gender information for this instance.

C setMultiplicity(String multiplicity)

Sets the multiplicity information for this instance.

Inherited methods

Public constructors

TtsSpan.SemioticClassBuilder

added in API level 21
TtsSpan.SemioticClassBuilder (String type)

Parameters
type String

Public methods

setAnimacy

added in API level 21
C setAnimacy (String animacy)

Sets the animacy information for this instance.

Parameters
animacy String: Can be any of ANIMACY_ANIMATE and ANIMACY_INANIMATE.

Returns
C This instance.

setCase

added in API level 21
C setCase (String grammaticalCase)

Sets the grammatical case information for this instance.

Parameters
grammaticalCase String: Can be any of CASE_NOMINATIVE, CASE_ACCUSATIVE, CASE_DATIVE, CASE_ABLATIVE, CASE_GENITIVE, CASE_VOCATIVE, CASE_LOCATIVE and CASE_INSTRUMENTAL.

Returns
C This instance.

setGender

added in API level 21
C setGender (String gender)

Sets the gender information for this instance.

Parameters
gender String: Can any of GENDER_NEUTRAL, GENDER_MALE and GENDER_FEMALE.

Returns
C This instance.

setMultiplicity

added in API level 21
C setMultiplicity (String multiplicity)

Sets the multiplicity information for this instance.

Parameters
multiplicity String: Can be any of MULTIPLICITY_SINGLE, MULTIPLICITY_DUAL and MULTIPLICITY_PLURAL.

Returns
C This instance.