Skip to content

Most visited

Recently visited

navigation

TtsSpan.TelephoneBuilder

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

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


A builder for TtsSpans of type TYPE_TELEPHONE.

Summary

Public constructors

TtsSpan.TelephoneBuilder()

Creates a TtsSpan of type TYPE_TELEPHONE.

TtsSpan.TelephoneBuilder(String numberParts)

Creates a TtsSpan of type TYPE_TELEPHONE and sets the ARG_NUMBER_PARTS argument.

Public methods

TtsSpan.TelephoneBuilder setCountryCode(String countryCode)

Sets the ARG_COUNTRY_CODE argument.

TtsSpan.TelephoneBuilder setExtension(String extension)

Sets the ARG_EXTENSION argument.

TtsSpan.TelephoneBuilder setNumberParts(String numberParts)

Sets the ARG_NUMBER_PARTS 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.TelephoneBuilder

added in API level 21
TtsSpan.TelephoneBuilder ()

Creates a TtsSpan of type TYPE_TELEPHONE.

TtsSpan.TelephoneBuilder

added in API level 21
TtsSpan.TelephoneBuilder (String numberParts)

Creates a TtsSpan of type TYPE_TELEPHONE and sets the ARG_NUMBER_PARTS argument.

Parameters
numberParts String

Public methods

setCountryCode

added in API level 21
TtsSpan.TelephoneBuilder setCountryCode (String countryCode)

Sets the ARG_COUNTRY_CODE argument.

Parameters
countryCode String: The country code can be a series of digits optionally prefixed with a "+".

Returns
TtsSpan.TelephoneBuilder This instance.

setExtension

added in API level 21
TtsSpan.TelephoneBuilder setExtension (String extension)

Sets the ARG_EXTENSION argument.

Parameters
extension String: The extension can be a series of digits.

Returns
TtsSpan.TelephoneBuilder This instance.

setNumberParts

added in API level 21
TtsSpan.TelephoneBuilder setNumberParts (String numberParts)

Sets the ARG_NUMBER_PARTS argument.

Parameters
numberParts String: The main telephone number. Can be a series of digits and letters separated by spaces, "/", "-" or ".".

Returns
TtsSpan.TelephoneBuilder 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)