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
public TtsSpan.SemioticClassBuilder (String type)

Parameters
type String

Public methods

setAnimacy

added in API level 21
public C setAnimacy (String animacy)

Sets the animacy information for this instance.

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

Returns
C This instance.

setCase

added in API level 21
public C setCase (String grammaticalCase)

Sets the grammatical case information for this instance.

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

Returns
C This instance.

setGender

added in API level 21
public C setGender (String gender)

Sets the gender information for this instance.

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

Returns
C This instance.

setMultiplicity

added in API level 21
public C setMultiplicity (String multiplicity)

Sets the multiplicity information for this instance.

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

Returns
C This instance.