OAuthClient.Callback
public
static
abstract
class
OAuthClient.Callback
extends Object
This class is deprecated.
use androidx.wear.phone.interactions.authentication.RemoteAuthClient
provided by the Jetpack Wear Phone
Interactions library instead.
This callback is notified when an async OAuth request completes.
Your app should update its UI to let the user know of the success or failure.
Summary
Public constructors | |
|---|---|
Callback()
|
|
Public methods | |
|---|---|
abstract
void
|
onAuthorizationError(int errorCode)
Called when an async OAuth request fails. |
abstract
void
|
onAuthorizationResponse(Uri requestUrl, Uri responseUrl)
Called when an async oauth request completes succesfully. |
Inherited methods | |
|---|---|
|
From class
java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
final
Class<?>
getClass()
int
hashCode()
final
void
notify()
final
void
notifyAll()
String
toString()
final
void
wait(long arg0, int arg1)
final
void
wait(long arg0)
final
void
wait()
| |
Public constructors
Callback
public Callback ()
Public methods
onAuthorizationError
public abstract void onAuthorizationError (int errorCode)
Called when an async OAuth request fails.
See OAuthClient.sendAuthorizationRequest(Uri, OAuthClient.Callback) .
| Parameters | |
|---|---|
errorCode |
int |
onAuthorizationResponse
public abstract void onAuthorizationResponse (Uri requestUrl, Uri responseUrl)
Called when an async oauth request completes succesfully.
See OAuthClient.sendAuthorizationRequest(Uri, OAuthClient.Callback) .
| Parameters | |
|---|---|
requestUrl |
Uri |
responseUrl |
Uri |