Android APIs
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<?>>
Known Direct Subclasses

Class Overview

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.
[Expand]
Inherited Methods
From class android.text.style.TtsSpan.Builder
From class java.lang.Object

Public Constructors

public TtsSpan.SemioticClassBuilder (String type)

Added in API level 21

Public Methods

public C setAnimacy (String animacy)

Added in API level 21

Sets the animacy information for this instance.

Parameters
animacy Can be any of ANIMACY_ANIMATE and ANIMACY_INANIMATE.
Returns
  • This instance.

public C setCase (String grammaticalCase)

Added in API level 21

Sets the grammatical case information for this instance.

Returns
  • This instance.

public C setGender (String gender)

Added in API level 21

Sets the gender information for this instance.

Parameters
gender Can any of GENDER_NEUTRAL, GENDER_MALE and GENDER_FEMALE.
Returns
  • This instance.

public C setMultiplicity (String multiplicity)

Added in API level 21

Sets the multiplicity information for this instance.

Parameters
multiplicity Can be any of MULTIPLICITY_SINGLE, MULTIPLICITY_DUAL and MULTIPLICITY_PLURAL.
Returns
  • This instance.