Class: CredentialsData

  • CredentialsData stores user credentials and their type for sender identification in Chromecast applications.

  • It includes credentials for user authentication and credentialsType indicating the platform origin (defaulting to "web").

  • Developers can create a CredentialsData object using the constructor with credentials and optional credentialsType parameters.

  • The credentials and credentialsType properties provide access to the stored credential information.

Constructor

CredentialsData

new CredentialsData(credentials, credentialsType)

Parameter

credentials

string

The credentials for the user.

credentialsType

Optional

string

The credentials type indicating which platform the credentials were sent from. This defaults to web or can be custom-defined.

Properties

credentials

string

The credentials for the user.

credentialsType

string

The credentials type indicating which platform the credentials were sent from. This defaults to web or can be custom-defined.