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 TtsSpan.TYPE_TELEPHONE.

Summary

Public constructors

TelephoneBuilder()

Creates a TtsSpan of type TtsSpan.TYPE_TELEPHONE.

TelephoneBuilder(String numberParts)

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

Public methods

TtsSpan.TelephoneBuilder setCountryCode(String countryCode)

Sets the TtsSpan.ARG_COUNTRY_CODE argument.

TtsSpan.TelephoneBuilder setExtension(String extension)

Sets the TtsSpan.ARG_EXTENSION argument.

TtsSpan.TelephoneBuilder setNumberParts(String numberParts)

Sets the TtsSpan.ARG_NUMBER_PARTS argument.

Inherited methods

Public constructors

TelephoneBuilder

Added in API level 21
public TelephoneBuilder ()

Creates a TtsSpan of type TtsSpan.TYPE_TELEPHONE.

TelephoneBuilder

Added in API level 21
public TelephoneBuilder (String numberParts)

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

Parameters
numberParts String

Public methods

setCountryCode

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

Sets the TtsSpan.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
public TtsSpan.TelephoneBuilder setExtension (String extension)

Sets the TtsSpan.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
public TtsSpan.TelephoneBuilder setNumberParts (String numberParts)

Sets the TtsSpan.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.