| java.lang.Object | |
| ↳ | com.amazon.identity.auth.device.api.authorization.User | 
User encapsulates the general profile information of an Amazon customer. It can be retrieved in two
 ways:
 
getUser().fetch(Context, Listener) API.| [Expand] Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From interface
android.os.Parcelable | |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CREATOR | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Retrieves basic profile information for a user (using OAuth 2.0) for the scopes requested in the last call to
  authorize(AuthorizeRequest). | |||||||||||
| The email address of the customer's Amazon account. | |||||||||||
| The user's Amazon account ID. | |||||||||||
| Generic map of the profile data returned when scopes with profile permissions are requested. | |||||||||||
| The user's name as set in their Amazon customer profile. | |||||||||||
| The zip/postal code that is associated with the customer's account. | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Object | |||||||||||
|  From interface
  android.os.Parcelable | |||||||||||
Retrieves basic profile information for a user (using OAuth 2.0) for the scopes requested in the last call to
 authorize(AuthorizeRequest). The authorize method must have been called once prior to
 this call so that a user can authorize the app. If the app has restarted since the last authorize call,
 fetch may still succeed using the cached profile data and/or credentials.
| context | Required. | 
|---|---|
| listener | Callback that returns an Useron success, orAuthErrorupon failure. The
  listener will be called on a non-UI thread.onError(U)will be called for the following
  OAuth-related errors:
 ERROR_ACCESS_DENIEDwill be returned.
  Any other possible OAuth-related errors will be encapsulated in a
   | 
The email address of the customer's Amazon account.
The user's Amazon account ID. This identifier is unique to your application.
Generic map of the profile data returned when scopes with profile permissions are requested. This should be used when User does not define a method to retrieve the desired profile data returned.
The user's name as set in their Amazon customer profile.
The zip/postal code that is associated with the customer's account.