AI-generated Key Takeaways
-
The Google Authentication library for Android provides classes for authenticating Google accounts and handling related events.
-
GoogleAuthUtil
offers methods to obtain and revoke OAuth2 tokens for Google accounts. -
Several exception classes like
GoogleAuthException
andUserRecoverableAuthException
handle authentication errors, some of which can be resolved through user intervention. -
AccountChangeEvent
and related classes provide a mechanism to track changes to Google accounts on the device. -
CookieUtil
assists in building cookie strings from specified fields, although its usage may be limited.
Classes
AccountChangeEvent | AccountChangeEvent instances are Parcelables that contain data about an event for an account (e.g., the account was added, modified, etc.). |
AccountChangeEventsRequest | Requests for
AccountChangeEvent s. |
AccountChangeEventsResponse | Response to a
AccountChangeEventsRequest . |
CookieUtil | Helper class to build the cookie String from the given fields. |
GoogleAuthUtil | GoogleAuthUtil provides static
utility methods to acquire OAuth2 tokens for Google accounts; and also to invalidate
OAuth2 tokens. |
Exceptions
GoogleAuthException | GoogleAuthExceptions signal Google authentication errors. |
GooglePlayServicesAvailabilityException | GooglePlayServicesAvailabilityExceptions are
special instances of UserRecoverableAuthException s
which are thrown when the expected Google Play services app is not available for some
reason. |
UserRecoverableAuthException | UserRecoverableAuthExceptions signal Google authentication errors that can be recovered with user action, such as a user login. |
UserRecoverableNotifiedException | UserRecoverableNotifiedException signals that there was a Google authentication error which can be recovered with user action and has been handled by publishing a notification for the user to act on. |