SIGN UP

IClientLoginListener

Interface that may be used to handle login events.

Methods

onLoginFailed

void onLoginFailed(LoginError loginError)

Invoked when login process failed

Parameters

onLoginSuccessful

void onLoginSuccessful(String displayName, AuthParams authParams)

Invoked when login process finished successfully

Parameters

  • displayName:

    String

    Display name of logged in user

  • authParams:

    AuthParams

    Auth parameters that can be used to login using access token

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

onRefreshTokenFailed

void onRefreshTokenFailed(LoginError loginError)

Invoked when refresh of login tokens failed

Parameters

onRefreshTokenSuccess

void onRefreshTokenSuccess(AuthParams authParams)

Invoked when refresh of login tokens finished successfully

Parameters

  • authParams:

    AuthParams

    Auth parameters that can be used to login using access token