public final class AWSMobileClient extends Object implements com.amazonaws.auth.AWSCredentialsProvider
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() {
public void onResult(UserStateDetails userStateDetails) {
switch (userStateDetails.getUserState()) {
case SIGNED_IN:
break;
case SIGNED_OUT:
try {
AWSMobileClient.getInstance().showSignIn(MainActivity.this);
} catch (Exception e) {
Log.e("TAG", "", e);
}
break;
default:
Log.w("Unhandled state see UserState for a list of states");
break;
}
}
})
}
| Modifier and Type | Class and Description |
|---|---|
class |
AWSMobileClient.InitializeBuilder
Deprecated.
Since 2.8.0 This method will be removed in the next minor version.
Please update to use AWSMobileClient using `initialize`.
Please visit https://aws-amplify.github.io for the latest Android documentation.
|
class |
AWSMobileClient.SignInProviderConfig
Deprecated.
Since 2.8.0 This method will be removed in the next minor version.
Please update to use AWSMobileClient using `initialize`.
Please visit https://aws-amplify.github.io for the latest Android documentation.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CHALLENGE_RESPONSE_NEW_PASSWORD_KEY |
static String |
CHALLENGE_RESPONSE_USER_ATTRIBUTES_PREFIX_KEY |
static String |
HOSTED_UI_KEY |
static String |
USER_AGENT |
| Modifier and Type | Method and Description |
|---|---|
protected Runnable |
_initialize(android.content.Context context,
com.amazonaws.mobile.config.AWSConfiguration awsConfiguration,
Callback<UserStateDetails> callback) |
void |
addUserStateListener(UserStateListener listener)
Adds a listener to be notified of state changes.
|
void |
changePassword(String oldPassword,
String newPassword) |
void |
changePassword(String oldPassword,
String newPassword,
Callback<Void> callback) |
ForgotPasswordResult |
confirmForgotPassword(String password,
Map<String,String> clientMetadata,
String forgotPasswordChallengeResponse)
Second method to call after
forgotPassword(String) to respond to any challenges
that the service may request. |
ForgotPasswordResult |
confirmForgotPassword(String password,
String forgotPasswordChallengeResponse)
Second method to call after
forgotPassword(String) to respond to any challenges
that the service may request. |
void |
confirmForgotPassword(String password,
String forgotPasswordChallengeResponse,
Callback<ForgotPasswordResult> callback)
Second method to call after
forgotPassword(String) to respond to any challenges
that the service may request. |
void |
confirmForgotPassword(String password,
String forgotPasswordChallengeResponse,
Map<String,String> clientMetadata,
Callback<ForgotPasswordResult> callback)
Second method to call after
forgotPassword(String) to respond to any challenges
that the service may request. |
SignInResult |
confirmSignIn(Map<String,String> signInChallengeResponse)
|
void |
confirmSignIn(Map<String,String> signInChallengeResponse,
Callback<SignInResult> callback)
|
SignInResult |
confirmSignIn(Map<String,String> signInChallengeResponse,
Map<String,String> clientMetaData)
|
void |
confirmSignIn(Map<String,String> signInChallengeResponse,
Map<String,String> clientMetaData,
Callback<SignInResult> callback)
|
SignInResult |
confirmSignIn(String signInChallengeResponse) |
void |
confirmSignIn(String signInChallengeResponse,
Callback<SignInResult> callback) |
SignUpResult |
confirmSignUp(String username,
String signUpChallengeResponse)
Confirm the sign-up request with follow-up information
|
void |
confirmSignUp(String username,
String signUpChallengeResponse,
Callback<SignUpResult> callback)
Confirm the sign-up request with follow-up information
|
SignUpResult |
confirmSignUp(String username,
String signUpChallengeResponse,
Map<String,String> clientMetadata)
Confirm the sign-up request with follow-up information
|
void |
confirmSignUp(String username,
String signUpChallengeResponse,
Map<String,String> clientMetadata,
Callback<SignUpResult> callback)
Confirm the sign-up request with follow-up information
|
void |
confirmUpdateUserAttribute(String attributeName,
String updateUserAttributeChallengeResponse)
Confirm the attribute with the code provided by user.
|
void |
confirmUpdateUserAttribute(String attributeName,
String updateUserAttributeChallengeResponse,
Callback<Void> callback)
Confirm the attribute with the code provided by user.
|
void |
confirmVerifyUserAttribute(String attributeName,
String updateUserAttributeChallengeResponse)
Confirm the attribute with the code provided by user.
|
void |
confirmVerifyUserAttribute(String attributeName,
String updateUserAttributeChallengeResponse,
Callback<Void> callback)
Confirm the attribute with the code provided by user.
|
UserStateDetails |
currentUserState()
Performs a check on the current UserState.
|
void |
currentUserState(Callback<UserStateDetails> callback)
Performs a check on the current UserState.
|
UserStateDetails |
federatedSignIn(String providerKey,
String token)
Federate tokens from custom identity providers into Cognito Identity Pool by providing the
logins key and token
|
void |
federatedSignIn(String providerKey,
String token,
Callback<UserStateDetails> callback)
Federate tokens from custom identity providers into Cognito Identity Pool by providing the
logins key and token
|
UserStateDetails |
federatedSignIn(String providerKey,
String token,
FederatedSignInOptions options)
Federate tokens from custom identity providers by providing the
logins key and token
|
void |
federatedSignIn(String providerKey,
String token,
FederatedSignInOptions options,
Callback<UserStateDetails> callback)
Federate tokens from custom identity providers by providing the
logins key and token
|
protected void |
federatedSignInWithoutAssigningState(String providerKey,
String token) |
protected void |
federatedSignInWithoutAssigningState(String providerKey,
String token,
Callback<UserStateDetails> callback) |
protected void |
federateWithCognitoIdentity(String providerKey,
String token) |
ForgotPasswordResult |
forgotPassword(String username)
Used to reset password if user forgot the old password.
|
void |
forgotPassword(String username,
Callback<ForgotPasswordResult> callback)
Used to reset password if user forgot the old password.
|
ForgotPasswordResult |
forgotPassword(String username,
Map<String,String> clientMetadata)
Used to reset password if user forgot the old password.
|
void |
forgotPassword(String username,
Map<String,String> clientMetadata,
Callback<ForgotPasswordResult> callback)
Used to reset password if user forgot the old password.
|
com.amazonaws.auth.AWSCredentials |
getAWSCredentials()
Returns AWSCredentials obtained from Cognito Identity
|
void |
getAWSCredentials(Callback<com.amazonaws.auth.AWSCredentials> callback) |
com.amazonaws.mobile.config.AWSConfigurable |
getClient(android.content.Context context,
Class<? extends com.amazonaws.mobile.config.AWSConfigurable> clientClass)
Get the AWSConfigurable client if exists, else create one and
add it to the clientMap and return.
|
com.amazonaws.mobile.config.AWSConfiguration |
getConfiguration()
Retrieve the AWSConfiguration object that represents
the awsconfiguration.json file.
|
com.amazonaws.auth.AWSCredentials |
getCredentials() |
DeviceOperations |
getDeviceOperations()
Retrieve a handle to perform device related operations.
|
String |
getIdentityId() |
static AWSMobileClient |
getInstance()
Gets the singleton instance of this class.
|
Tokens |
getTokens()
Returns the tokens obtained from Cognito Userpools sign-in.
|
protected Tokens |
getTokens(boolean waitForSignIn) |
void |
getTokens(Callback<Tokens> callback)
Returns the tokens obtained from Cognito Userpools sign-in.
|
Map<String,String> |
getUserAttributes() |
void |
getUserAttributes(Callback<Map<String,String>> callback) |
String |
getUsername()
Returns the signed-in user's username obtained from the access token.
|
protected UserStateDetails |
getUserStateDetails(boolean offlineCheck)
Has side-effect of attempting to alert developer to try and sign-in user
when required to be signed-in and will mutate the user's state.
|
boolean |
handleAuthResponse(android.content.Intent intent)
Pass in the Intent from the OAuth 2.0 exchange from
showSignIn(Activity) |
void |
initialize(android.content.Context context,
com.amazonaws.mobile.config.AWSConfiguration awsConfig,
Callback<UserStateDetails> callback) |
void |
initialize(android.content.Context context,
Callback<UserStateDetails> callback) |
protected boolean |
isNetworkAvailable(android.content.Context context)
Uses Android system commands to determine if the device is online.
|
boolean |
isSignedIn()
A variant of
currentUserState() that simplifies the output to a boolean. |
void |
refresh() |
void |
releaseSignInWait()
Release the wait for tokens to be refreshed
Doing this fails all pending operations that were
waiting for sign-in.
|
boolean |
removeUserStateListener(UserStateListener listener)
Removes a listener.
|
SignUpResult |
resendSignUp(String username)
Used when a user has attempted sign-up previously and wants to continue the process.
|
void |
resendSignUp(String username,
Callback<SignUpResult> callback)
Used when a user has attempted sign-up previously and wants to continue the process.
|
protected void |
setUserState(UserStateDetails details) |
UserStateDetails |
showSignIn(android.app.Activity callingActivity)
Shows a sign-in UI for user's to sign-in, sign-up, forgot password, create account
|
void |
showSignIn(android.app.Activity callingActivity,
Callback<UserStateDetails> callback)
Shows a sign-in UI for user's to sign-in, sign-up, forgot password, create account
|
UserStateDetails |
showSignIn(android.app.Activity callingActivity,
SignInUIOptions signInUIOptions)
Shows a sign-in UI for user's to sign-in, sign-up, forgot password, create account
|
void |
showSignIn(android.app.Activity callingActivity,
SignInUIOptions signInUIOptions,
Callback<UserStateDetails> callback)
Shows a sign-in UI for user's to sign-in, sign-up, forgot password, create account
|
SignInResult |
signIn(String username,
String password,
Map<String,String> validationData) |
void |
signIn(String username,
String password,
Map<String,String> validationData,
Callback<SignInResult> callback) |
void |
signOut()
Clears local tokens so that the client is in a signed-out state.
|
void |
signOut(SignOutOptions signOutOptions)
Sign-out the user with more options.
|
void |
signOut(SignOutOptions signOutOptions,
Callback<Void> callback)
Sign-out the user with more options.
|
SignUpResult |
signUp(String username,
String password,
Map<String,String> userAttributes,
Map<String,String> validationData)
Sign-up users.
|
void |
signUp(String username,
String password,
Map<String,String> userAttributes,
Map<String,String> validationData,
Callback<SignUpResult> callback)
Sign-up users.
|
SignUpResult |
signUp(String username,
String password,
Map<String,String> userAttributes,
Map<String,String> clientMetadata,
Map<String,String> validationData)
Sign-up users.
|
void |
signUp(String username,
String password,
Map<String,String> userAttributes,
Map<String,String> validationData,
Map<String,String> clientMetadata,
Callback<SignUpResult> callback)
Sign-up users.
|
List<UserCodeDeliveryDetails> |
updateUserAttributes(Map<String,String> userAttributes)
Sends a map of user attributes to update.
|
void |
updateUserAttributes(Map<String,String> userAttributes,
Callback<List<UserCodeDeliveryDetails>> callback)
Sends a map of user attributes to update.
|
UserCodeDeliveryDetails |
verifyUserAttribute(String attributeName)
Verify an attribute like email.
|
void |
verifyUserAttribute(String attributeName,
Callback<UserCodeDeliveryDetails> callback)
Verify an attribute like email.
|
protected boolean |
waitForSignIn()
This method checks the current state of the user.
|
public static final String USER_AGENT
public static final String HOSTED_UI_KEY
public static final String CHALLENGE_RESPONSE_NEW_PASSWORD_KEY
public static final String CHALLENGE_RESPONSE_USER_ATTRIBUTES_PREFIX_KEY
public static AWSMobileClient getInstance()
public com.amazonaws.mobile.config.AWSConfiguration getConfiguration()
public com.amazonaws.auth.AWSCredentials getCredentials()
getCredentials in interface com.amazonaws.auth.AWSCredentialsProviderpublic void refresh()
refresh in interface com.amazonaws.auth.AWSCredentialsProvider@WorkerThread
public com.amazonaws.auth.AWSCredentials getAWSCredentials()
throws Exception
Exception@AnyThread public void getAWSCredentials(Callback<com.amazonaws.auth.AWSCredentials> callback)
@AnyThread public String getIdentityId()
@AnyThread
public void initialize(android.content.Context context,
Callback<UserStateDetails> callback)
@AnyThread
public void initialize(android.content.Context context,
com.amazonaws.mobile.config.AWSConfiguration awsConfig,
Callback<UserStateDetails> callback)
protected Runnable _initialize(android.content.Context context, com.amazonaws.mobile.config.AWSConfiguration awsConfiguration, Callback<UserStateDetails> callback)
@AnyThread public DeviceOperations getDeviceOperations()
@AnyThread public void releaseSignInWait()
protected void setUserState(UserStateDetails details)
protected boolean isNetworkAvailable(android.content.Context context)
context - application context@AnyThread public String getUsername()
@WorkerThread public UserStateDetails currentUserState()
@AnyThread public void currentUserState(Callback<UserStateDetails> callback)
@AnyThread public void addUserStateListener(UserStateListener listener)
releaseSignInWait() or any form of sign-in can be called
to prevent blocking getCredentials(), getTokens(), or other methods
requiring a sign-in.listener - @AnyThread public boolean removeUserStateListener(UserStateListener listener)
listener - @AnyThread public boolean isSignedIn()
currentUserState() that simplifies the output to a boolean.
True if SIGNED_IN, SIGNED_OUT_USER_POOLS_TOKENS_INVALID, SIGNED_OUT_FEDERATED_TOKENS_INVALID.
False if GUEST, SIGNED_OUT.protected boolean waitForSignIn()
UserStateListener will be
notified with @UserState.SIGNED_OUT_USER_POOLS_TOKENS_INVALID orprotected UserStateDetails getUserStateDetails(boolean offlineCheck)
offlineCheck - true, will determine if the tokens are expired or the credentials are expired and block for refresh@AnyThread public void signIn(String username, String password, Map<String,String> validationData, Callback<SignInResult> callback)
@WorkerThread public SignInResult signIn(String username, String password, Map<String,String> validationData) throws Exception
Exception@AnyThread public void confirmSignIn(String signInChallengeResponse, Callback<SignInResult> callback)
@WorkerThread public SignInResult confirmSignIn(String signInChallengeResponse) throws Exception
Exception@AnyThread public void confirmSignIn(Map<String,String> signInChallengeResponse, Map<String,String> clientMetaData, Callback<SignInResult> callback)
signIn(java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>, com.amazonaws.mobile.client.Callback<com.amazonaws.mobile.client.results.SignInResult>).
Call with the user's response to the sign-in challenge.signInChallengeResponse - obtained from userclientMetaData - Meta data for lambda triggerscallback - callback@WorkerThread public SignInResult confirmSignIn(Map<String,String> signInChallengeResponse, Map<String,String> clientMetaData) throws Exception
signIn(java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>, com.amazonaws.mobile.client.Callback<com.amazonaws.mobile.client.results.SignInResult>).
Call with the user's response to the sign-in challenge.signInChallengeResponse - obtained from userclientMetaData - Meta data for lambda triggersException@AnyThread public void confirmSignIn(Map<String,String> signInChallengeResponse, Callback<SignInResult> callback)
signIn(java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>, com.amazonaws.mobile.client.Callback<com.amazonaws.mobile.client.results.SignInResult>).
Call with the user's response to the sign-in challenge.signInChallengeResponse - obtained from usercallback - callback@WorkerThread public SignInResult confirmSignIn(Map<String,String> signInChallengeResponse) throws Exception
signIn(java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>, com.amazonaws.mobile.client.Callback<com.amazonaws.mobile.client.results.SignInResult>).
Call with the user's response to the sign-in challenge.signInChallengeResponse - obtained from userException@AnyThread public void signOut()
@WorkerThread public void signOut(SignOutOptions signOutOptions) throws Exception
SignOutOptions.builder()
.signOutGlobally(true) // Sign-out user from all sessions across devices
.build();
signOutOptions - optionsException@AnyThread public void signOut(SignOutOptions signOutOptions, Callback<Void> callback)
SignOutOptions.builder()
.signOutGlobally(true) // Sign-out user from all sessions across devices
.build();
signOutOptions - options@AnyThread public void federatedSignIn(String providerKey, String token, Callback<UserStateDetails> callback)
The logins key can be specified with IdentityProvider#AMAZON#toString()
providerKey - Custom provider key i.e. Google sign-in's key is accounts.google.comtoken - the JWT token vended by the third-party@WorkerThread public UserStateDetails federatedSignIn(String providerKey, String token) throws Exception
The logins key can be specified with IdentityProvider.AMAZON
providerKey - Custom provider key i.e. Google sign-in's key is accounts.google.comtoken - the JWT token vended by the third-partyException@AnyThread public void federatedSignIn(String providerKey, String token, FederatedSignInOptions options, Callback<UserStateDetails> callback)
The logins key can be specified with IdentityProvider#AMAZON#toString()
providerKey - Custom provider key i.e. Google sign-in's key is accounts.google.comtoken - the JWT token vended by the third-party@WorkerThread public UserStateDetails federatedSignIn(String providerKey, String token, FederatedSignInOptions options) throws Exception
The logins key can be specified with IdentityProvider.AMAZON
providerKey - Custom provider key i.e. Google sign-in's key is accounts.google.comtoken - the JWT token vended by the third-partyExceptionprotected void federatedSignInWithoutAssigningState(String providerKey, String token) throws Exception
Exceptionprotected void federatedSignInWithoutAssigningState(String providerKey, String token, Callback<UserStateDetails> callback)
protected void federateWithCognitoIdentity(String providerKey, String token)
@WorkerThread public Tokens getTokens() throws Exception
Exception - when the tokens cannot be retrieved successfully.@AnyThread public void getTokens(Callback<Tokens> callback)
Exception - when the tokens cannot be retrieved successfully.@AnyThread public void signUp(String username, String password, Map<String,String> userAttributes, Map<String,String> validationData, Map<String,String> clientMetadata, Callback<SignUpResult> callback)
SignUpResult will contain next steps if necessary.
Call confirmSignUp(String, String, Callback) with the necessary next
step code obtained from user.username - username/email address/handlepassword - user's passworduserAttributes - attributes associated with uservalidationData - optional, set of data to validate the sign-up requestclientMetadata - meta data to be passed to the lambdas invoked by sign up operation.callback - callback will be invoked to notify the success or failure of the
SignUp operation@WorkerThread public SignUpResult signUp(String username, String password, Map<String,String> userAttributes, Map<String,String> clientMetadata, Map<String,String> validationData) throws Exception
SignUpResult will contain next steps if necessary.
Call confirmSignUp(String, String) with the necessary next step code obtained from user.username - username/email address/handlepassword - user's passworduserAttributes - attributes associated with uservalidationData - optional, set of data to validate the sign-up requestclientMetadata - meta data to be passed to the lambdas invoked by sign up operation.Exception - if there is any error generated by the client@AnyThread public void signUp(String username, String password, Map<String,String> userAttributes, Map<String,String> validationData, Callback<SignUpResult> callback)
SignUpResult will contain next steps if necessary.
Call confirmSignUp(String, String, Callback) with the necessary next
step code obtained from user.username - username/email address/handlepassword - user's passworduserAttributes - attributes associated with uservalidationData - optional, set of data to validate the sign-up requestcallback - callback will be invoked to notify the success or failure of the
SignUp operation@WorkerThread public SignUpResult signUp(String username, String password, Map<String,String> userAttributes, Map<String,String> validationData) throws Exception
SignUpResult will contain next steps if necessary.
Call confirmSignUp(String, String) with the necessary next step code obtained from user.username - username/email address/handlepassword - user's passworduserAttributes - attributes associated with uservalidationData - optional, set of data to validate the sign-up requestException - if there is any error generated by the client@AnyThread public void confirmSignUp(String username, String signUpChallengeResponse, Map<String,String> clientMetadata, Callback<SignUpResult> callback)
username - username/email address/handle of the user who is signing upsignUpChallengeResponse - response to the signUp challenge postedclientMetadata - meta data to be passed to the lambdas invoked by confirm sign up operation.callback - the callback will be invoked to notify the success or
failure of the confirmSignUp operation@WorkerThread public SignUpResult confirmSignUp(String username, String signUpChallengeResponse, Map<String,String> clientMetadata) throws Exception
username - username of the user who is signing upsignUpChallengeResponse - response to the signUp challenge postedclientMetadata - meta data to be passed to the lambdas invoked by confirm sign up operation.Exception@AnyThread public void confirmSignUp(String username, String signUpChallengeResponse, Callback<SignUpResult> callback)
username - username/email address/handle of the user who is signing upsignUpChallengeResponse - response to the signUp challenge postedcallback - the callback will be invoked to notify the success or
failure of the confirmSignUp operation@WorkerThread public SignUpResult confirmSignUp(String username, String signUpChallengeResponse) throws Exception
username - username of the user who is signing upsignUpChallengeResponse - response to the signUp challenge postedException@AnyThread public void resendSignUp(String username, Callback<SignUpResult> callback)
username - callback - @WorkerThread public SignUpResult resendSignUp(String username) throws Exception
username - Exception@AnyThread public void forgotPassword(String username, Map<String,String> clientMetadata, Callback<ForgotPasswordResult> callback)
username - username of the user trying to reset password.clientMetadata - meta data to be passed to the lambdas invoked by confirm sign up operation.callback - callback will be invoked to notify the success or failure of the
forgot password operation@WorkerThread public ForgotPasswordResult forgotPassword(String username, Map<String,String> clientMetadata) throws Exception
username - username of the user trying to reset password.Exception@AnyThread public void forgotPassword(String username, Callback<ForgotPasswordResult> callback)
username - username of the user trying to reset password.callback - callback will be invoked to notify the success or failure of the
forgot password operation@WorkerThread public ForgotPasswordResult forgotPassword(String username) throws Exception
username - username of the user trying to reset password.Exception@AnyThread public void confirmForgotPassword(String password, String forgotPasswordChallengeResponse, Map<String,String> clientMetadata, Callback<ForgotPasswordResult> callback)
forgotPassword(String) to respond to any challenges
that the service may request.password - new passwordforgotPasswordChallengeResponse - response to the forgot password challenge postedclientMetadata - metadata to be passed to the lambda invoked by this operation.callback - callback will be invoked to notify the success or failure of the
confirm forgot password operation@WorkerThread public ForgotPasswordResult confirmForgotPassword(String password, Map<String,String> clientMetadata, String forgotPasswordChallengeResponse) throws Exception
forgotPassword(String) to respond to any challenges
that the service may request.password - new password.clientMetadata - metadata to be passed to the lambda invoked by this operation.forgotPasswordChallengeResponse - response to the forgot password challenge posted.Exception@AnyThread public void confirmForgotPassword(String password, String forgotPasswordChallengeResponse, Callback<ForgotPasswordResult> callback)
forgotPassword(String) to respond to any challenges
that the service may request.password - new password.forgotPasswordChallengeResponse - response to the forgot password challenge posted.callback - callback will be invoked to notify the success or failure of the
confirm forgot password operation@WorkerThread public ForgotPasswordResult confirmForgotPassword(String password, String forgotPasswordChallengeResponse) throws Exception
forgotPassword(String) to respond to any challenges
that the service may request.password - new password.forgotPasswordChallengeResponse - response to the forgot password challenge posted.Exception@AnyThread public void changePassword(String oldPassword, String newPassword, Callback<Void> callback)
@WorkerThread public void changePassword(String oldPassword, String newPassword) throws Exception
Exception@WorkerThread public Map<String,String> getUserAttributes() throws Exception
Exception@AnyThread public void updateUserAttributes(Map<String,String> userAttributes, Callback<List<UserCodeDeliveryDetails>> callback)
userAttributes - the attributes i.e. emailcallback - verification delivery information@WorkerThread public List<UserCodeDeliveryDetails> updateUserAttributes(Map<String,String> userAttributes) throws Exception
userAttributes - the attributes i.e. emailException@AnyThread public void verifyUserAttribute(String attributeName, Callback<UserCodeDeliveryDetails> callback)
attributeName - i.e. emailcallback - verification delivery information@WorkerThread public UserCodeDeliveryDetails verifyUserAttribute(String attributeName) throws Exception
attributeName - i.e. emailException@AnyThread public void confirmUpdateUserAttribute(String attributeName, String updateUserAttributeChallengeResponse, Callback<Void> callback)
attributeName - i.e. emailupdateUserAttributeChallengeResponse - i.e. 123456callback - callback@WorkerThread public void confirmUpdateUserAttribute(String attributeName, String updateUserAttributeChallengeResponse) throws Exception
attributeName - i.e. emailupdateUserAttributeChallengeResponse - i.e. 123456Exception@AnyThread public void confirmVerifyUserAttribute(String attributeName, String updateUserAttributeChallengeResponse, Callback<Void> callback)
attributeName - i.e. emailupdateUserAttributeChallengeResponse - i.e. 123456callback - callback@WorkerThread public void confirmVerifyUserAttribute(String attributeName, String updateUserAttributeChallengeResponse) throws Exception
attributeName - i.e. emailupdateUserAttributeChallengeResponse - i.e. 123456Exception@AnyThread public boolean handleAuthResponse(android.content.Intent intent)
showSignIn(Activity)intent - @AnyThread
public void showSignIn(android.app.Activity callingActivity,
Callback<UserStateDetails> callback)
callingActivity - The activity that the sign-in screen will be shown on top of.callback - callback with UserStateDetails at end of operation@WorkerThread public UserStateDetails showSignIn(android.app.Activity callingActivity) throws Exception
callingActivity - The activity that the sign-in screen will be shown on top of.Exception@AnyThread
public void showSignIn(android.app.Activity callingActivity,
SignInUIOptions signInUIOptions,
Callback<UserStateDetails> callback)
callingActivity - The activity that the sign-in screen will be shown on top of.signInUIOptions - Override any default configuration with your preferences.callback - callback with UserStateDetails at end of operation@WorkerThread public UserStateDetails showSignIn(android.app.Activity callingActivity, SignInUIOptions signInUIOptions) throws Exception
callingActivity - The activity that the sign-in screen will be shown on top of.signInUIOptions - Override any default configuration with your preferences.Exceptionpublic com.amazonaws.mobile.config.AWSConfigurable getClient(android.content.Context context,
Class<? extends com.amazonaws.mobile.config.AWSConfigurable> clientClass)
context - The activity contextclientClass - SDK Client Class that confirms to the AWSConfigurable interface.Copyright © 2020. All rights reserved.