com.google.android.gms.auth.account
Stay organized with collections
Save and categorize content based on your preferences.
Interfaces
Classes
WorkAccount
|
WorkAccount provides APIs to manage work accounts
(com.google.work). |
WorkAccountClient
|
Client to manage Android for Work
Accounts. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eWorkAccount\u003c/code\u003e class provides APIs for managing work accounts associated with the domain \u003ccode\u003ecom.google.work\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eWorkAccountClient\u003c/code\u003e class offers a client interface for managing Android for Work Accounts.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eWorkAccountApi\u003c/code\u003e and \u003ccode\u003eWorkAccountApi.AddAccountResult\u003c/code\u003e interfaces are deprecated and should be replaced by \u003ccode\u003eWorkAccountClient\u003c/code\u003e accessed through \u003ccode\u003eWorkAccount.getClient(Activity)\u003c/code\u003e.\u003c/p\u003e\n"]]],["The deprecated `WorkAccountApi` and `WorkAccountApi.AddAccountResult` interfaces should be replaced with `WorkAccountClient`. `WorkAccount` provides APIs for managing work accounts. `WorkAccountClient` is the recommended client for managing Android for Work Accounts. Developers should use `WorkAccount.getClient(Activity)` to obtain the `WorkAccountClient` instead of the deprecated interface.\n"],null,["# com.google.android.gms.auth.account\n\n### Interfaces\n\n|---------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [WorkAccountApi](/android/reference/com/google/android/gms/auth/account/WorkAccountApi) | *This interface is deprecated. Use [WorkAccountClient](/android/reference/com/google/android/gms/auth/account/WorkAccountClient) via [WorkAccount.getClient(Activity)](/android/reference/com/google/android/gms/auth/account/WorkAccount#getClient(android.app.Activity)) instead.* |\n| [WorkAccountApi.AddAccountResult](/android/reference/com/google/android/gms/auth/account/WorkAccountApi.AddAccountResult) | *This interface is deprecated. Use [WorkAccountClient](/android/reference/com/google/android/gms/auth/account/WorkAccountClient) via [WorkAccount.getClient(Activity)](/android/reference/com/google/android/gms/auth/account/WorkAccount#getClient(android.app.Activity)) instead.* |\n\n### Classes\n\n|-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------|\n| [WorkAccount](/android/reference/com/google/android/gms/auth/account/WorkAccount) | WorkAccount provides APIs to manage work accounts (com.google.work). |\n| [WorkAccountClient](/android/reference/com/google/android/gms/auth/account/WorkAccountClient) | Client to manage Android for Work Accounts. |"]]