Most visited

Recently visited

Added in API level 21

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


TtsSpans的构建者,具有形态句法特征的设置者。 此构建器可以直接使用,但此构建器的更具体的子类(如TtsSpan.TextBuilderTtsSpan.CardinalBuilder可能更有用。

Summary

Public constructors

TtsSpan.SemioticClassBuilder(String type)

Public methods

C setAnimacy(String animacy)

设置此实例的生命信息。

C setCase(String grammaticalCase)

设置此实例的语法案例信息。

C setGender(String gender)

设置此实例的性别信息。

C setMultiplicity(String multiplicity)

设置此实例的多重性信息。

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)

设置此实例的生命信息。

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)

设置此实例的语法案例信息。

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)

设置此实例的性别信息。

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)

设置此实例的多重性信息。

Parameters
multiplicity String: Can be any of MULTIPLICITY_SINGLE, MULTIPLICITY_DUAL and MULTIPLICITY_PLURAL.
Returns
C This instance.

Hooray!