CredentialsData.Builder

  • CredentialsData.Builder is used to create instances of CredentialsData, which stores user credentials for the Cast framework.

  • It provides methods to set the credentials and their type.

  • The build() method creates a CredentialsData object with the specified values.

  • The default credentials type is CredentialsData.CREDENTIALS_TYPE_ANDROID.

public static class CredentialsData.Builder extends Object

Builder for CredentialsData.

Public Constructor Summary

Public Method Summary

CredentialsData
build()
Builds a CredentialsData.
CredentialsData.Builder
setCredentials(String credentials)
Sets the credentials.
CredentialsData.Builder
setCredentialsType(String credentialsType)
Sets the credentials type.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public CredentialsData build ()

Builds a CredentialsData.

public CredentialsData.Builder setCredentials (String credentials)

Sets the credentials.

See CredentialsData.getCredentials() for details.

public CredentialsData.Builder setCredentialsType (String credentialsType)

Sets the credentials type. The default value is CredentialsData.CREDENTIALS_TYPE_ANDROID.

See CredentialsData.getCredentialsType() for details.