AddressConstants
Stay organized with collections
Save and categorize content based on your preferences.
Constants used for Address APIs.
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\u003e\u003ccode\u003eAddressConstants\u003c/code\u003e provides a set of constants for interacting with Address APIs on Android.\u003c/p\u003e\n"],["\u003cp\u003eIt includes nested interfaces for error codes (\u003ccode\u003eErrorCodes\u003c/code\u003e), intent extras (\u003ccode\u003eExtras\u003c/code\u003e), result codes (\u003ccode\u003eResultCodes\u003c/code\u003e), and themes (\u003ccode\u003eThemes\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThese constants are used when requesting and handling user address information through the \u003ccode\u003erequestUserAddress\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use these constants to customize the user interface and interpret the results of address requests.\u003c/p\u003e\n"]]],[],null,["# AddressConstants\n\npublic interface **AddressConstants** \nConstants used for Address APIs. \n\n### Nested Class Summary\n\n|-----------|---|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| interface | [AddressConstants.ErrorCodes](/android/reference/com/google/android/gms/identity/intents/AddressConstants.ErrorCodes) || Error codes that could be returned in the data Intent returned to your Activity via its onActivityResult method. |\n| interface | [AddressConstants.Extras](/android/reference/com/google/android/gms/identity/intents/AddressConstants.Extras) || Keys for Intent extras. |\n| interface | [AddressConstants.ResultCodes](/android/reference/com/google/android/gms/identity/intents/AddressConstants.ResultCodes) || Custom result codes that can be returned to your Activity's onActivityResult method after you call [requestUserAddress(GoogleApiClient, UserAddressRequest, int)](/android/reference/com/google/android/gms/identity/intents/Address#requestUserAddress(com.google.android.gms.common.api.GoogleApiClient, com.google.android.gms.identity.intents.UserAddressRequest, int)). |\n| interface | [AddressConstants.Themes](/android/reference/com/google/android/gms/identity/intents/AddressConstants.Themes) || System themes that can be used to customize the UI elements shown when you call [requestUserAddress(GoogleApiClient, UserAddressRequest, int)](/android/reference/com/google/android/gms/identity/intents/Address#requestUserAddress(com.google.android.gms.common.api.GoogleApiClient, com.google.android.gms.identity.intents.UserAddressRequest, int)). |"]]