RemoteAuthClient.Callback


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 functions

abstract Unit

Called when an async remote authentication request fails.

abstract Unit

Called when an async remote authentication request completes successfully.

Public constructors

Callback

Added in 1.0.0
Callback()

Public functions

onAuthorizationError

Added in 1.0.0
@UiThread
abstract fun onAuthorizationError(request: OAuthRequest, errorCode: Int): Unit

Called when an async remote authentication request fails.

see sendAuthorizationRequest

onAuthorizationResponse

Added in 1.0.0
@UiThread
abstract fun onAuthorizationResponse(request: OAuthRequest, response: OAuthResponse): Unit

Called when an async remote authentication request completes successfully.

see sendAuthorizationRequest