Added in API level 21

ElectronicBuilder


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

A builder for TtsSpans of type TYPE_ELECTRONIC.

Summary

Public constructors

Creates a TtsSpan of type TYPE_ELECTRONIC.

Public methods
open TtsSpan.ElectronicBuilder!
setDomain(domain: String!)

Sets the ARG_DOMAIN argument.

open TtsSpan.ElectronicBuilder!
setEmailArguments(username: String!, domain: String!)

Sets the ARG_USERNAME and ARG_DOMAIN arguments, representing an email address.

open TtsSpan.ElectronicBuilder!
setFragmentId(fragmentId: String!)

Sets the ARG_FRAGMENT_ID argument.

open TtsSpan.ElectronicBuilder!
setPassword(password: String!)

Sets the ARG_PASSWORD argument.

open TtsSpan.ElectronicBuilder!
setPath(path: String!)

Sets the ARG_PATH argument.

open TtsSpan.ElectronicBuilder!
setPort(port: Int)

Sets the ARG_PORT argument.

open TtsSpan.ElectronicBuilder!
setProtocol(protocol: String!)

Sets the ARG_PROTOCOL argument.

open TtsSpan.ElectronicBuilder!
setQueryString(queryString: String!)

Sets the ARG_QUERY_STRING argument.

open TtsSpan.ElectronicBuilder!
setUsername(username: String!)

Sets the ARG_USERNAME 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

ElectronicBuilder

Added in API level 21
ElectronicBuilder()

Creates a TtsSpan of type TYPE_ELECTRONIC.

Public methods

setDomain

Added in API level 21
open fun setDomain(domain: String!): TtsSpan.ElectronicBuilder!

Sets the ARG_DOMAIN argument.

Parameters
domain String!: The domain, for example "source.android.com".
Return
TtsSpan.ElectronicBuilder! This instance.

setEmailArguments

Added in API level 21
open fun setEmailArguments(
    username: String!,
    domain: String!
): TtsSpan.ElectronicBuilder!

Sets the ARG_USERNAME and ARG_DOMAIN arguments, representing an email address.

Parameters
username String!: The part before the @ in the email address.
domain String!: The part after the @ in the email address.
Return
TtsSpan.ElectronicBuilder! This instance.

setFragmentId

Added in API level 21
open fun setFragmentId(fragmentId: String!): TtsSpan.ElectronicBuilder!

Sets the ARG_FRAGMENT_ID argument.

Return
TtsSpan.ElectronicBuilder! This instance.

setPassword

Added in API level 21
open fun setPassword(password: String!): TtsSpan.ElectronicBuilder!

Sets the ARG_PASSWORD argument.

Return
TtsSpan.ElectronicBuilder! This instance.

setPath

Added in API level 21
open fun setPath(path: String!): TtsSpan.ElectronicBuilder!

Sets the ARG_PATH argument.

Parameters
path String!: For example "source/index.html".
Return
TtsSpan.ElectronicBuilder! This instance.

setPort

Added in API level 21
open fun setPort(port: Int): TtsSpan.ElectronicBuilder!

Sets the ARG_PORT argument.

Return
TtsSpan.ElectronicBuilder! This instance.

setProtocol

Added in API level 21
open fun setProtocol(protocol: String!): TtsSpan.ElectronicBuilder!

Sets the ARG_PROTOCOL argument.

Parameters
protocol String!: The protocol of the URI. Examples are "http" and "ftp".
Return
TtsSpan.ElectronicBuilder! This instance.

setQueryString

Added in API level 21
open fun setQueryString(queryString: String!): TtsSpan.ElectronicBuilder!

Sets the ARG_QUERY_STRING argument.

Parameters
queryString String!: For example "arg=value&argtwo=value".
Return
TtsSpan.ElectronicBuilder! This instance.

setUsername

Added in API level 21
open fun setUsername(username: String!): TtsSpan.ElectronicBuilder!

Sets the ARG_USERNAME argument.

Return
TtsSpan.ElectronicBuilder! This instance.