Added in API level 21
TelephoneBuilder
open class TelephoneBuilder : TtsSpan.SemioticClassBuilder<TtsSpan.TelephoneBuilder!>
| kotlin.Any | |||
| ↳ | android.text.style.TtsSpan.Builder<C> | ||
| ↳ | 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 | |
|---|---|
|
Creates a TtsSpan of type |
|
TelephoneBuilder(numberParts: String!)Creates a TtsSpan of type |
|
| Public methods | |
|---|---|
| open TtsSpan.TelephoneBuilder! |
setCountryCode(countryCode: String!)Sets the |
| open TtsSpan.TelephoneBuilder! |
setExtension(extension: String!)Sets the |
| open TtsSpan.TelephoneBuilder! |
setNumberParts(numberParts: String!)Sets the |
| Inherited functions | |
|---|---|
Public constructors
TelephoneBuilder
Added in API level 21
TelephoneBuilder(numberParts: String!)
Creates a TtsSpan of type TYPE_TELEPHONE and sets the ARG_NUMBER_PARTS argument.
Public methods
setCountryCode
Added in API level 21
open fun setCountryCode(countryCode: String!): TtsSpan.TelephoneBuilder!
Sets the ARG_COUNTRY_CODE argument.
| Parameters | |
|---|---|
countryCode |
String!: The country code can be a series of digits optionally prefixed with a "+". |
| Return | |
|---|---|
TtsSpan.TelephoneBuilder! |
This instance. |
setExtension
Added in API level 21
open fun setExtension(extension: String!): TtsSpan.TelephoneBuilder!
Sets the ARG_EXTENSION argument.
| Parameters | |
|---|---|
extension |
String!: The extension can be a series of digits. |
| Return | |
|---|---|
TtsSpan.TelephoneBuilder! |
This instance. |
setNumberParts
Added in API level 21
open fun setNumberParts(numberParts: String!): TtsSpan.TelephoneBuilder!
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 ".". |
| Return | |
|---|---|
TtsSpan.TelephoneBuilder! |
This instance. |