Package com.caplin.streamlink
Interface ConnectionStatusEvent
-
public interface ConnectionStatusEvent
Provides information about a change in status of the connection to the Liberator.
The
ConnectionStatusEvent
is provided on aonConnectionStatusChange
callback to aConnectionListener
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionState
getConnectionState()
Returns the new state of a connection the the Liberator.java.lang.String
getLiberatorUrl()
Returns the URL of the Liberator connection that this status event has been raised for.LoginFailedReason
getLoginFailReason()
Returns the reason for the login attempt failing.java.lang.String
getUsername()
Returns the username that will be used to log in to the Liberator.
-
-
-
Method Detail
-
getConnectionState
ConnectionState getConnectionState()
Returns the new state of a connection the the Liberator.
- Returns:
- The new connection state
-
getLiberatorUrl
java.lang.String getLiberatorUrl()
Returns the URL of the Liberator connection that this status event has been raised for.
- Returns:
- The Liberator URL.
-
getUsername
java.lang.String getUsername()
Returns the username that will be used to log in to the Liberator.
- Returns:
- The username. This is only available when the
ConnectionState
isCredentialsRetrieved
.
-
getLoginFailReason
LoginFailedReason getLoginFailReason()
Returns the reason for the login attempt failing. It only makes sense to obtain this value if the ConnectionState is LOGINFAILED.
- Returns:
- The reason (LoginFailedReason.NONE if not available).
-
-