Most visited

Recently visited

Added in API level 21

TtsSpan.TelephoneBuilder

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


TYPE_TELEPHONE类型的 TYPE_TELEPHONE构建器。

Summary

Public constructors

TtsSpan.TelephoneBuilder()

创建一个TYPE_TELEPHONE类型的 TYPE_TELEPHONE

TtsSpan.TelephoneBuilder(String numberParts)

创建一个类型为TYPE_TELEPHONETYPE_TELEPHONE并设置参数 ARG_NUMBER_PARTS

Public methods

TtsSpan.TelephoneBuilder setCountryCode(String countryCode)

设置 ARG_COUNTRY_CODE参数。

TtsSpan.TelephoneBuilder setExtension(String extension)

设置 ARG_EXTENSION参数。

TtsSpan.TelephoneBuilder setNumberParts(String numberParts)

设置 ARG_NUMBER_PARTS参数。

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 ()

创建一个类型为TYPE_TELEPHONETYPE_TELEPHONE

TtsSpan.TelephoneBuilder

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

创建一个类型为TYPE_TELEPHONETYPE_TELEPHONE并设置参数 ARG_NUMBER_PARTS

Parameters
numberParts String

Public methods

setCountryCode

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

设置 ARG_COUNTRY_CODE参数。

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)

设置 ARG_EXTENSION参数。

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)

设置 ARG_NUMBER_PARTS参数。

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

Hooray!