Class
caplin.streamlink

ConnectionStatusEvent

Provides information about a change in status of the connection to the Liberator.

The ConnectionStatusEvent is provided on a onConnectionStatusChange callback to a caplin.streamlink.ConnectionListener.

Constructor Summary

Attributes Name and Description
caplin.streamlink.ConnectionStatusEvent()

Method Summary

Attributes Name and Description
caplin.streamlink.ConnectionState getConnectionState()

Returns the new state of a connection the the Liberator.

String getLiberatorUrl()

Returns the URL of the Liberator connection that this status event has been raised for.

caplin.streamlink.LoginFailedReason getLoginFailReason()

Returns the reason for the login attempt failing.

String getUsername()

Returns the username that will be used to log in to the Liberator.

Constructor Detail

caplin.streamlink.ConnectionStatusEvent()

Method Detail

caplin.streamlink.ConnectionState getConnectionState()

Returns the new state of a connection the the Liberator.

Returns
{caplin.streamlink.ConnectionState} The new connection state

String getLiberatorUrl()

Returns the URL of the Liberator connection that this status event has been raised for.

Returns
{String} The Liberator URL.

caplin.streamlink.LoginFailedReason getLoginFailReason()

Returns the reason for the login attempt failing. It only makes sense to obtain this value if the ConnectionState is LOGINFAILED.

Returns
{caplin.streamlink.LoginFailedReason} The reason (LoginFailedReason.NONE if not available).

String getUsername()

Returns the username that will be used to log in to the Liberator.

Returns
{String} The username. This is only available when the caplin.streamlink.ConnectionState is CredentialsRetrieved.