Android APIs
public static class

TtsSpan.TelephoneBuilder

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

Class Overview

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

Public Constructors

public TtsSpan.TelephoneBuilder ()

Added in API level 21

Creates a TtsSpan of type TYPE_TELEPHONE.

public TtsSpan.TelephoneBuilder (String numberParts)

Added in API level 21

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

Public Methods

public TtsSpan.TelephoneBuilder setCountryCode (String countryCode)

Added in API level 21

Sets the ARG_COUNTRY_CODE argument.

Parameters
countryCode The country code can be a series of digits optionally prefixed with a "+".
Returns
  • This instance.

public TtsSpan.TelephoneBuilder setExtension (String extension)

Added in API level 21

Sets the ARG_EXTENSION argument.

Parameters
extension The extension can be a series of digits.
Returns
  • This instance.

public TtsSpan.TelephoneBuilder setNumberParts (String numberParts)

Added in API level 21

Sets the ARG_NUMBER_PARTS argument.

Parameters
numberParts The main telephone number. Can be a series of digits and letters separated by spaces, "/", "-" or ".".
Returns
  • This instance.