IClientLoginListener
Interface that provides API to handle login events.
Methods
onLoginFailed
void
onLoginFailed( loginError)
Triggered if a login process has failed.
Parameters
loginError:
Failure reason
Returns
type:
void
onLoginSuccessful
void
onLoginSuccessful(String
displayName, authParams)
Triggered if a login process has finished successfully.
Parameters
displayName:
String
Display name of logged in user
authParams:
Auth parameters that can be used to log in via access token
Returns
type:
void
onOneTimeKeyGenerated
void
onOneTimeKeyGenerated(String
key)
Returns the one-time key generated by the login server as a result of IClient.requestOneTimeKey(String).
Parameters
key:
String
One time key
Returns
type:
void
onRefreshTokenFailed
void
onRefreshTokenFailed( loginError)
Triggered if a refresh of login tokens has failed.
Parameters
loginError:
Failure reason
Returns
type:
void
onRefreshTokenSuccess
void
onRefreshTokenSuccess( authParams)
Triggered if a refresh of login tokens has finished successfully.
Parameters
authParams:
Auth parameters that can be used to log in via access token
Returns
type:
void