Rate this page:

IClientLoginListener

Interface that may be used to handle login events.

Methods

onLoginFailed

Copy URL

void

onLoginFailed(

LoginError

loginError
)

Invoked when login process failed

Parameters

Returns

  • type:

    void

onLoginSuccessful

Copy URL

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

Returns

  • type:

    void

onOneTimeKeyGenerated

Copy URL

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

Copy URL

void

onRefreshTokenFailed(

LoginError

loginError
)

Invoked when refresh of login tokens failed

Parameters

Returns

  • type:

    void

onRefreshTokenSuccess

Copy URL

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

Returns

  • type:

    void