public abstract class DefaultSignInResultHandler extends java.lang.Object implements SignInResultHandler
IdentityManager.login(Context, SignInResultHandler)
by providing default
behavior in the case that the user cancels signing in or encounters an error. The default for
canceling is to toast that sign-in was canceled. The default for a sign-in error is to show
an alert dialog specifying the error message.Constructor and Description |
---|
DefaultSignInResultHandler() |
Modifier and Type | Method and Description |
---|---|
void |
onIntermediateProviderCancel(android.app.Activity callingActivity,
IdentityProvider provider)
User cancelled signing in with a provider on the sign-in activity.
|
void |
onIntermediateProviderError(android.app.Activity callingActivity,
IdentityProvider provider,
java.lang.Exception ex)
User encountered an error when attempting to sign-in with a provider.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onCancel, onSuccess
public void onIntermediateProviderCancel(android.app.Activity callingActivity, IdentityProvider provider)
onIntermediateProviderCancel
in interface SignInResultHandler
provider
- the provider the user canceled with.public void onIntermediateProviderError(android.app.Activity callingActivity, IdentityProvider provider, java.lang.Exception ex)
onIntermediateProviderError
in interface SignInResultHandler
provider
- the provider the user attempted to sign-in with that encountered an error.ex
- the exception that occurred.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.