Added in API level 21

TelephoneBuilder


open class TelephoneBuilder : TtsSpan.SemioticClassBuilder<TtsSpan.TelephoneBuilder!>

A builder for TtsSpans of type TYPE_TELEPHONE.

Summary

Public constructors

Creates a TtsSpan of type TYPE_TELEPHONE.

TelephoneBuilder(numberParts: String!)

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

Public methods
open TtsSpan.TelephoneBuilder!
setCountryCode(countryCode: String!)

Sets the ARG_COUNTRY_CODE argument.

open TtsSpan.TelephoneBuilder!
setExtension(extension: String!)

Sets the ARG_EXTENSION argument.

open TtsSpan.TelephoneBuilder!
setNumberParts(numberParts: String!)

Sets the ARG_NUMBER_PARTS argument.

Inherited functions
TtsSpan! build()

Returns a TtsSpan built from the parameters set by the setter methods.

C setIntArgument(arg: String!, value: Int)

Sets an argument to an int value.

C setLongArgument(arg: String!, value: Long)

Sets an argument to a long value.

C setStringArgument(arg: String!, value: String!)

Sets an argument to a string value.

C setAnimacy(animacy: String!)

Sets the animacy information for this instance.

C setCase(grammaticalCase: String!)

Sets the grammatical case information for this instance.

C setGender(gender: String!)

Sets the gender information for this instance.

C setMultiplicity(multiplicity: String!)

Sets the multiplicity information for this instance.

Public constructors

TelephoneBuilder

Added in API level 21
TelephoneBuilder()

Creates a TtsSpan of type TYPE_TELEPHONE.

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.