IClientLoginListener
Interface that may be used to handle login events.
Methods
onLoginFailed
void
onLoginFailed( loginError)
Invoked when login process failed
Parameters
loginError:
Failure reason
Returns
type:
void
onLoginSuccessful
void
onLoginSuccessful(String
displayName, authParams)
Invoked when login process finished successfully
Parameters
displayName:
String
Display name of logged in user
authParams:
Auth parameters that can be used to login using access token
Returns
type:
void
onOneTimeKeyGenerated
void
onOneTimeKeyGenerated(String
key)
Returns 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)
Invoked when refresh of login tokens failed
Parameters
loginError:
Failure reason
Returns
type:
void
onRefreshTokenSuccess
void
onRefreshTokenSuccess( authParams)
Invoked when refresh of login tokens finished successfully
Parameters
authParams:
Auth parameters that can be used to login using access token
Returns
type:
void