Class A3LSignInClient
- java.lang.Object
-
- com.amazon.A3L.authentication.api.signin.A3LSignInClient
-
public class A3LSignInClient extends java.lang.Object
Provides abstraction over GoogleSignInClient and AppAuth client helper Holds the respective helper classes depending on the current service being used.
-
-
Constructor Summary
Constructors Constructor Description A3LSignInClient(com.amazon.A3L.authentication.appauth.AppAuthSignInClientHelper appAuthSignInClientHelper)
A3LSignInClient(com.amazon.A3L.authentication.googlesignin.GoogleSignInClientHelper googleSignInClientHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.content.Intent
getSignInIntent()
Gets an Intent to start the Google Sign In flow by callingActivity.startActivityForResult(Intent, int)
.com.google.android.gms.tasks.Task<java.lang.Void>
revokeAccess()
Revokes access given to the current application.com.google.android.gms.tasks.Task<java.lang.Void>
signOut()
Signs out the current signed-in user if any.
-
-
-
Constructor Detail
-
A3LSignInClient
public A3LSignInClient(@NonNull com.amazon.A3L.authentication.googlesignin.GoogleSignInClientHelper googleSignInClientHelper)
-
A3LSignInClient
public A3LSignInClient(@NonNull com.amazon.A3L.authentication.appauth.AppAuthSignInClientHelper appAuthSignInClientHelper)
-
-
Method Detail
-
getSignInIntent
public android.content.Intent getSignInIntent()
Gets an Intent to start the Google Sign In flow by callingActivity.startActivityForResult(Intent, int)
.- Returns:
- The
Intent
used for start the sign-in flow.
-
signOut
public com.google.android.gms.tasks.Task<java.lang.Void> signOut()
Signs out the current signed-in user if any. It also clears the account previously selected by the user and a future sign in attempt will require the user pick an account again.- Returns:
- Task: A
Task
that may be used to check for failure, success or completion
-
revokeAccess
public com.google.android.gms.tasks.Task<java.lang.Void> revokeAccess()
Revokes access given to the current application. Future sign-in attempts will require the user to re-consent to all requested scopes. Applications are required to provide users that are signed in with Google the ability to disconnect their Google account from the app. If the user deletes their account, you must delete the information that your app obtained from the Google APIs.- Returns:
- Task: A
Task
that may be used to check for failure, success or completion
-
-