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 @UiThread void

Called when an async remote authentication request fails.

abstract @UiThread void
onAuthorizationResponse(
    @NonNull OAuthRequest request,
    @NonNull OAuthResponse response
)

Called when an async remote authentication request completes successfully.

Public constructors

Callback

public final Callback()

Public methods

onAuthorizationError

@UiThread
@NonNull
public abstract @UiThread void onAuthorizationError(
    @NonNull OAuthRequest request,
    @RemoteAuthClient.Companion.ErrorCode int errorCode
)

Called when an async remote authentication request fails.

see sendAuthorizationRequest

onAuthorizationResponse

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

Called when an async remote authentication request completes successfully.

see sendAuthorizationRequest