use of com.amazonaws.mobile.client.internal.InternalCallback in project aws-sdk-android by aws-amplify.
the class OAuth2Utils method forgotPassword.
/**
* Used to reset password if user forgot the old password.
*
* @param username username of the user trying to reset password.
* @param callback callback will be invoked to notify the success or failure of the
* forgot password operation
*/
@AnyThread
public void forgotPassword(final String username, final Callback<ForgotPasswordResult> callback) {
final InternalCallback internalCallback = new InternalCallback<ForgotPasswordResult>(callback);
internalCallback.async(_forgotPassword(username, Collections.<String, String>emptyMap(), internalCallback));
}
use of com.amazonaws.mobile.client.internal.InternalCallback in project aws-sdk-android by aws-amplify.
the class OAuth2Utils method showSignIn.
/**
* Shows a sign-in UI for user's to sign-in, sign-up, forgot password, create account
* @param callingActivity The activity that the sign-in screen will be shown on top of.
* @param signInUIOptions Override any default configuration with your preferences.
* @param callback callback with UserStateDetails at end of operation
*/
@AnyThread
public void showSignIn(final Activity callingActivity, final SignInUIOptions signInUIOptions, final Callback<UserStateDetails> callback) {
// SignInUIOptions
InternalCallback internalCallback = new InternalCallback(callback);
internalCallback.async(_showSignIn(callingActivity, signInUIOptions, internalCallback));
}
use of com.amazonaws.mobile.client.internal.InternalCallback in project aws-sdk-android by aws-amplify.
the class OAuth2Utils method changePassword.
@AnyThread
public void changePassword(final String oldPassword, final String newPassword, final Callback<Void> callback) {
final InternalCallback internalCallback = new InternalCallback<Void>(callback);
internalCallback.async(_changePassword(oldPassword, newPassword, internalCallback));
}
use of com.amazonaws.mobile.client.internal.InternalCallback in project aws-sdk-android by aws-amplify.
the class OAuth2Utils method confirmVerifyUserAttribute.
/**
* Confirm the attribute with the code provided by user.
* @param attributeName i.e. email
* @param updateUserAttributeChallengeResponse i.e. 123456
* @param callback callback
*/
@AnyThread
public void confirmVerifyUserAttribute(final String attributeName, final String updateUserAttributeChallengeResponse, final Callback<Void> callback) {
InternalCallback internalCallback = new InternalCallback(callback);
internalCallback.async(_confirmUserAttribute(attributeName, updateUserAttributeChallengeResponse, internalCallback));
}
use of com.amazonaws.mobile.client.internal.InternalCallback in project aws-sdk-android by aws-amplify.
the class OAuth2Utils method confirmSignIn.
/**
* The counter part to {@link #signIn}.
* Call with the user's response to the sign-in challenge.
*
* @param signInChallengeResponse obtained from user
* @param clientMetaData Meta data for lambda triggers
* @param callback callback
*/
@AnyThread
public void confirmSignIn(final Map<String, String> signInChallengeResponse, final Map<String, String> clientMetaData, final Callback<SignInResult> callback) {
final InternalCallback internalCallback = new InternalCallback<SignInResult>(callback);
internalCallback.async(_confirmSignIn(signInChallengeResponse, internalCallback, clientMetaData));
}
Aggregations