SIGN UP
Navigation

IClientLoginListener

Interface that may be used to handle login events.

Methods

void onLoginFailed(LoginError loginError)

Invoked when login process failed

Parameters

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

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

void onRefreshTokenFailed(LoginError loginError)

Invoked when refresh of login tokens failed

Parameters

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