Skip to content

Most visited

Recently visited

navigation

TtsSpan.OrdinalBuilder

public static class TtsSpan.OrdinalBuilder
extends SemioticClassBuilder<TtsSpan.OrdinalBuilder>

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


A builder for TtsSpans of type TYPE_ORDINAL.

Summary

Public constructors

TtsSpan.OrdinalBuilder()

Creates a builder for a TtsSpan of type TYPE_ORDINAL.

TtsSpan.OrdinalBuilder(long number)

Creates a TtsSpan of type TYPE_ORDINAL and sets the ARG_NUMBER argument.

TtsSpan.OrdinalBuilder(String number)

Creates a TtsSpan of type TYPE_ORDINAL and sets the ARG_NUMBER argument.

Public methods

TtsSpan.OrdinalBuilder setNumber(long number)

Convenience method that converts the number to a String and sets it to the value for ARG_NUMBER.

TtsSpan.OrdinalBuilder setNumber(String number)

Sets the ARG_NUMBER argument.

Inherited methods

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

Public constructors

TtsSpan.OrdinalBuilder

added in API level 21
TtsSpan.OrdinalBuilder ()

Creates a builder for a TtsSpan of type TYPE_ORDINAL.

TtsSpan.OrdinalBuilder

added in API level 21
TtsSpan.OrdinalBuilder (long number)

Creates a TtsSpan of type TYPE_ORDINAL and sets the ARG_NUMBER argument.

Parameters
number long: The ordinal number to synthesize.

See also:

TtsSpan.OrdinalBuilder

added in API level 21
TtsSpan.OrdinalBuilder (String number)

Creates a TtsSpan of type TYPE_ORDINAL and sets the ARG_NUMBER argument.

Parameters
number String: The number to synthesize.

See also:

Public methods

setNumber

added in API level 21
TtsSpan.OrdinalBuilder setNumber (long number)

Convenience method that converts the number to a String and sets it to the value for ARG_NUMBER.

Parameters
number long: The ordinal number that will be synthesized.

Returns
TtsSpan.OrdinalBuilder This instance.

setNumber

added in API level 21
TtsSpan.OrdinalBuilder setNumber (String number)

Sets the ARG_NUMBER argument.

Parameters
number String: A non-empty string of digits with an optional leading + or -.

Returns
TtsSpan.OrdinalBuilder 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!

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)