OAuthClient.Callback

public static abstract class OAuthClient.Callback
extends Object

java.lang.Object
   ↳ android.support.wearable.authentication.OAuthClient.Callback


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

OAuthClient.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

Public constructors

OAuthClient.Callback

OAuthClient.Callback ()

Public methods

onAuthorizationError

void onAuthorizationError (int errorCode)

Called when an async OAuth request fails.

See sendAuthorizationRequest(Uri, OAuthClient.Callback).

Parameters
errorCode int

onAuthorizationResponse

void onAuthorizationResponse (Uri requestUrl, 
                Uri responseUrl)

Called when an async oauth request completes succesfully.

See sendAuthorizationRequest(Uri, OAuthClient.Callback).

Parameters
requestUrl Uri

responseUrl Uri