Wallet.WalletOptions
Stay organized with collections
Save and categorize content based on your preferences.
Field Summary
public final int |
environment
|
The environment to use. |
public final int |
theme
|
The theme to use for Wallet screens. |
Inherited Field Summary
From interface
com.google.android.gms.common.api.Api.ApiOptions
Inherited Method Summary
From class java.lang.Object
From interface
com.google.android.gms.common.api.Api.ApiOptions.HasAccountOptions
Fields
public final int
environment
Public Methods
public boolean
equals
( Object
other)
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eWallet.WalletOptions\u003c/code\u003e allows you to configure the environment and theme for using the Google Wallet API.\u003c/p\u003e\n"],["\u003cp\u003eIt's recommended to use \u003ccode\u003eWalletConstants.ENVIRONMENT_TEST\u003c/code\u003e for development and testing purposes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eWalletConstants.THEME_LIGHT\u003c/code\u003e is currently the only supported theme for Wallet screens.\u003c/p\u003e\n"],["\u003cp\u003eInstances of \u003ccode\u003eWallet.WalletOptions\u003c/code\u003e are created using the \u003ccode\u003eWallet.WalletOptions.Builder\u003c/code\u003e class.\u003c/p\u003e\n"]]],["Wallet.WalletOptions configures the Wallet API, created using Wallet.WalletOptions.Builder. It defines the `environment` (defaulting to test) and `theme` (defaulting to light). Key actions include getting an `Account` via `getAccount()`, and comparing objects using `equals()` and `hashCode()`. It has `environment` and `theme` fields. `No_OPTIONS` is inherited, and methods are inherited from the object class such as wait and clone.\n"],null,["# Wallet.WalletOptions\n\npublic static final class **Wallet.WalletOptions** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nimplements [Api.ApiOptions.HasAccountOptions](/android/reference/com/google/android/gms/common/api/Api.ApiOptions.HasAccountOptions) \nOptions for using the Wallet API. To create an instance, use the [Wallet.WalletOptions.Builder](/android/reference/com/google/android/gms/wallet/Wallet.WalletOptions.Builder). \n\n### Nested Class Summary\n\n|-------|---|---|-----------------|\n| class | [Wallet.WalletOptions.Builder](/android/reference/com/google/android/gms/wallet/Wallet.WalletOptions.Builder) || Wallet builder. |\n\n### Field Summary\n\n|------------------|--------------------------------------------------------------------------------------------------|--------------------------------------|\n| public final int | [environment](/android/reference/com/google/android/gms/wallet/Wallet.WalletOptions#environment) | The environment to use. |\n| public final int | [theme](/android/reference/com/google/android/gms/wallet/Wallet.WalletOptions#theme) | The theme to use for Wallet screens. |\n\n### Inherited Field Summary\n\nFrom interface com.google.android.gms.common.api.Api.ApiOptions \n\n|-------------------------------------------------------------------------------------------------------------------------------|------------|---|\n| public static final [Api.ApiOptions.NoOptions](/android/reference/com/google/android/gms/common/api/Api.ApiOptions.NoOptions) | NO_OPTIONS | |\n\n### Public Method Summary\n\n|----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/android/reference/com/google/android/gms/wallet/Wallet.WalletOptions#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) other) |\n| [Account](//developer.android.com/reference/android/accounts/Account.html) | [getAccount](/android/reference/com/google/android/gms/wallet/Wallet.WalletOptions#getAccount())() |\n| int | [hashCode](/android/reference/com/google/android/gms/wallet/Wallet.WalletOptions#hashCode())() |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface com.google.android.gms.common.api.Api.ApiOptions.HasAccountOptions \n\n|-------------------------------------------------------------------------------------|--------------|\n| abstract [Account](//developer.android.com/reference/android/accounts/Account.html) | getAccount() |\n\nFields\n------\n\n#### public final int\n**environment**\n\nThe environment to use. Specify [WalletConstants.ENVIRONMENT_TEST](/android/reference/com/google/android/gms/wallet/WalletConstants#ENVIRONMENT_TEST) until you have applied for and been granted\naccess to the Production environment. Defaults to [WalletConstants.ENVIRONMENT_TEST](/android/reference/com/google/android/gms/wallet/WalletConstants#ENVIRONMENT_TEST). \n\n#### public final int\n**theme**\n\nThe theme to use for Wallet screens. The only legitimate value is [WalletConstants.THEME_LIGHT](/android/reference/com/google/android/gms/wallet/WalletConstants#THEME_LIGHT)\nas this is the only supported theme. User-created themes are not supported. Defaults to\n[WalletConstants.THEME_LIGHT](/android/reference/com/google/android/gms/wallet/WalletConstants#THEME_LIGHT).\n\nPublic Methods\n--------------\n\n#### public boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) other)\n\n#### public [Account](//developer.android.com/reference/android/accounts/Account.html)\n**getAccount** ()\n\n#### public int **hashCode** ()"]]