RemoteAuthClient.Callback

public abstract class RemoteAuthClient.Callback


This callback is notified when an async remote authentication request completes.

Typically, your app should update its UI to let the user aware of the success or failure.

Summary

Public constructors

Public methods

abstract void

Called when an async remote authentication request fails.

abstract void

Called when an async remote authentication request completes successfully.

Public constructors

Callback

Added in 1.0.0
public Callback()

Public methods

onAuthorizationError

Added in 1.0.0
@UiThread
public abstract void onAuthorizationError(@NonNull OAuthRequest request, int errorCode)

Called when an async remote authentication request fails.

see sendAuthorizationRequest

onAuthorizationResponse

Added in 1.0.0
@UiThread
public abstract void onAuthorizationResponse(
    @NonNull OAuthRequest request,
    @NonNull OAuthResponse response
)

Called when an async remote authentication request completes successfully.

see sendAuthorizationRequest