Skip to content

Most visited

Recently visited

navigation

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


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

From class android.text.style.TtsSpan.Builder
From class java.lang.Object

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.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)