Stay organized with collections
Save and categorize content based on your preferences.
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
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
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# OAuthClient.Callback\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nOAuthClient.Callback\n====================\n\n\n`\npublic\nstatic\n\nabstract\nclass\nOAuthClient.Callback\n`\n\n\n`\n\nextends `[Object](http://developer.android.com/reference/java/lang/Object.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|--------------------------------------------------------------|\n| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html) ||\n| ↳ | android.support.wearable.authentication.OAuthClient.Callback |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This class is deprecated.** \n\nuse `androidx.wear.phone.interactions.authentication.RemoteAuthClient`\nprovided by the [Jetpack Wear Phone\nInteractions](../../../../../jetpack/androidx/releases/wear) library instead.\n\nThis callback is notified when an async OAuth request completes.\n\nYour app should update its UI to let the user know of the success or failure.\n\nSummary\n-------\n\n| ### Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[Callback](../../../../../reference/android/support/wearable/authentication/OAuthClient.Callback.html#Callback())`() ` |\n\n| ### Public methods ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onAuthorizationError](../../../../../reference/android/support/wearable/authentication/OAuthClient.Callback.html#onAuthorizationError(int))`(int errorCode) ` Called when an async OAuth request fails. |\n| ` abstract void` | ` `[onAuthorizationResponse](../../../../../reference/android/support/wearable/authentication/OAuthClient.Callback.html#onAuthorizationResponse(android.net.Uri,%20android.net.Uri))`(`[Uri](http://developer.android.com/reference/android/net/Uri.html)` requestUrl, `[Uri](http://developer.android.com/reference/android/net/Uri.html)` responseUrl) ` Called when an async oauth request completes succesfully. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)` ` |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | ` `[Object](http://developer.android.com/reference/java/lang/Object.html) | ` clone() ` | | ` boolean` | ` equals(`[Object](http://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void` | ` finalize() ` | | ` final `[Class](http://developer.android.com/reference/java/lang/Class.html)`\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` `[String](http://developer.android.com/reference/java/lang/String.html) | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nPublic constructors\n-------------------\n\n### Callback\n\n```\npublic Callback ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### onAuthorizationError\n\n```\npublic abstract void onAuthorizationError (int errorCode)\n```\n\nCalled when an async OAuth request fails.\n\nSee [OAuthClient.sendAuthorizationRequest(Uri, OAuthClient.Callback)](../../../../../reference/android/support/wearable/authentication/OAuthClient.html#sendAuthorizationRequest(android.net.Uri,%20android.support.wearable.authentication.OAuthClient.Callback)).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|--------------|\n| `errorCode` | `int` \u003cbr /\u003e |\n\n### onAuthorizationResponse\n\n```\npublic abstract void onAuthorizationResponse (Uri requestUrl, \n Uri responseUrl)\n```\n\nCalled when an async oauth request completes succesfully.\n\nSee [OAuthClient.sendAuthorizationRequest(Uri, OAuthClient.Callback)](../../../../../reference/android/support/wearable/authentication/OAuthClient.html#sendAuthorizationRequest(android.net.Uri,%20android.support.wearable.authentication.OAuthClient.Callback)).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|--------------|\n| `requestUrl` | `Uri` \u003cbr /\u003e |\n| `responseUrl` | `Uri` \u003cbr /\u003e |"]]