Skip to content

Most visited

Recently visited

navigation

TtsSpan.ElectronicBuilder

public static class TtsSpan.ElectronicBuilder
extends SemioticClassBuilder<TtsSpan.ElectronicBuilder>

java.lang.Object
   ↳ android.text.style.TtsSpan.Builder<C extends android.text.style.TtsSpan.SemioticClassBuilder<?>>
     ↳ android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.ElectronicBuilder>
       ↳ android.text.style.TtsSpan.ElectronicBuilder


A builder for TtsSpans of type TYPE_ELECTRONIC.

Summary

Public constructors

TtsSpan.ElectronicBuilder()

Creates a TtsSpan of type TYPE_ELECTRONIC.

Public methods

TtsSpan.ElectronicBuilder setDomain(String domain)

Sets the ARG_DOMAIN argument.

TtsSpan.ElectronicBuilder setEmailArguments(String username, String domain)

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

TtsSpan.ElectronicBuilder setFragmentId(String fragmentId)

Sets the ARG_FRAGMENT_ID argument.

TtsSpan.ElectronicBuilder setPassword(String password)

Sets the ARG_PASSWORD argument.

TtsSpan.ElectronicBuilder setPath(String path)

Sets the ARG_PATH argument.

TtsSpan.ElectronicBuilder setPort(int port)

Sets the ARG_PORT argument.

TtsSpan.ElectronicBuilder setProtocol(String protocol)

Sets the ARG_PROTOCOL argument.

TtsSpan.ElectronicBuilder setQueryString(String queryString)

Sets the ARG_QUERY_STRING argument.

TtsSpan.ElectronicBuilder setUsername(String username)

Sets the ARG_USERNAME argument.

Inherited methods

From class android.text.style.TtsSpan.SemioticClassBuilder
From class android.text.style.TtsSpan.Builder
From class java.lang.Object

Public constructors

TtsSpan.ElectronicBuilder

added in API level 21
TtsSpan.ElectronicBuilder ()

Creates a TtsSpan of type TYPE_ELECTRONIC.

Public methods

setDomain

added in API level 21
TtsSpan.ElectronicBuilder setDomain (String domain)

Sets the ARG_DOMAIN argument.

Parameters
domain String: The domain, for example "source.android.com".

Returns
TtsSpan.ElectronicBuilder This instance.

setEmailArguments

added in API level 21
TtsSpan.ElectronicBuilder setEmailArguments (String username, 
                String domain)

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.

Returns
TtsSpan.ElectronicBuilder This instance.

setFragmentId

added in API level 21
TtsSpan.ElectronicBuilder setFragmentId (String fragmentId)

Sets the ARG_FRAGMENT_ID argument.

Parameters
fragmentId String

Returns
TtsSpan.ElectronicBuilder This instance.

setPassword

added in API level 21
TtsSpan.ElectronicBuilder setPassword (String password)

Sets the ARG_PASSWORD argument.

Parameters
password String

Returns
TtsSpan.ElectronicBuilder This instance.

setPath

added in API level 21
TtsSpan.ElectronicBuilder setPath (String path)

Sets the ARG_PATH argument.

Parameters
path String: For example "source/index.html".

Returns
TtsSpan.ElectronicBuilder This instance.

setPort

added in API level 21
TtsSpan.ElectronicBuilder setPort (int port)

Sets the ARG_PORT argument.

Parameters
port int

Returns
TtsSpan.ElectronicBuilder This instance.

setProtocol

added in API level 21
TtsSpan.ElectronicBuilder setProtocol (String protocol)

Sets the ARG_PROTOCOL argument.

Parameters
protocol String: The protocol of the URI. Examples are "http" and "ftp".

Returns
TtsSpan.ElectronicBuilder This instance.

setQueryString

added in API level 21
TtsSpan.ElectronicBuilder setQueryString (String queryString)

Sets the ARG_QUERY_STRING argument.

Parameters
queryString String: For example "arg=value&argtwo=value".

Returns
TtsSpan.ElectronicBuilder This instance.

setUsername

added in API level 21
TtsSpan.ElectronicBuilder setUsername (String username)

Sets the ARG_USERNAME argument.

Parameters
username String

Returns
TtsSpan.ElectronicBuilder This instance.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)