LoginWithAmazon QML Type
Controller for LoginWithAmazon More...
Import Statement: | import QrwAndroid.Amazon 1.0 |
Since: | Qt 1.0 |
Properties
- loggedIn : bool
- scopes : list
- userEmail : string
- userId : string
- userName : string
- userPostalCode : string
Detailed Description
The LoginWithAmazon type handles the state and controls the workflow of LoginWithAmazon. Also it gives access to the data of the logged in user.
If the device has the Amazon Shopping App installed the account is taken from there. If not an webview activity is opened to show a login form.
Property Documentation
Sets scopes of data you want to access of the logged in user. The scopes must be set before the login of the user has been performed.
- LoginWithAmazon.Scope_PROFILE - Requests the unique
user id
,name
andemail
from the user's data - LoginWithAmazon.Scope_PROFILE_ID - Requests the unique
user id
from the user's data - LoginWithAmazon.Scope_POSTAL_CODE - Requests the
postal code
from the user's data
By default the list only contains LoginWithAmazon.Scope_PROFILE
See also Amazon: Customer Profile.
The current user's email address if there is currently a user logged in, an empty string otherwise.
See also LoginWithAmazon::scopes.
The current user's user id if there is currently a user logged in, an empty string otherwise. The userId
uniquely identifies a user in the Amazon system and always returns the same value for the same user.
See also LoginWithAmazon::scopes and Amazon: Integrate with Your Existing Account System.
The current user's username if there is currently a user logged in, an empty string otherwise.
See also LoginWithAmazon::scopes.
The current user's postal code if there is currently a user logged in, an empty string otherwise.
See also LoginWithAmazon::scopes.