Stay organized with collections
Save and categorize content based on your preferences.
GetWalletCardsCallback
public
interface
GetWalletCardsCallback
android.service.quickaccesswallet.GetWalletCardsCallback
|
Handles response from the QuickAccessWalletService
for GetWalletCardsRequest
Summary
Public methods
onFailure
public abstract void onFailure (GetWalletCardsError error)
Notifies the Android System that an QuickAccessWalletService.onWalletCardsRequested
could not be handled by the service.
Parameters |
error |
GetWalletCardsError : The error message. Note: this message should not contain PII
(Personally Identifiable Information, such as username or email address).
This value cannot be null . |
onSuccess
public abstract void onSuccess (GetWalletCardsResponse response)
Notifies the Android System that an QuickAccessWalletService.onWalletCardsRequested
was successfully handled by the service.
Parameters |
response |
GetWalletCardsResponse : The response contains the list of walletCards to be shown
to the user as well as the index of the card that should initially be
presented as the selected card. The list should not contain more than the
maximum number of cards requested.
This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# GetWalletCardsCallback\n\nAdded in [API level 30](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nGetWalletCardsCallback\n======================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/service/quickaccesswallet/GetWalletCardsCallback \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\n\ninterface\nGetWalletCardsCallback\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------------------|\n| android.service.quickaccesswallet.GetWalletCardsCallback |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nHandles response from the [QuickAccessWalletService](/reference/android/service/quickaccesswallet/QuickAccessWalletService) for [GetWalletCardsRequest](/reference/android/service/quickaccesswallet/GetWalletCardsRequest)\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onFailure](/reference/android/service/quickaccesswallet/GetWalletCardsCallback#onFailure(android.service.quickaccesswallet.GetWalletCardsError))`(`[GetWalletCardsError](/reference/android/service/quickaccesswallet/GetWalletCardsError)` error) ` Notifies the Android System that an [QuickAccessWalletService.onWalletCardsRequested](/reference/android/service/quickaccesswallet/QuickAccessWalletService#onWalletCardsRequested(android.service.quickaccesswallet.GetWalletCardsRequest,%20android.service.quickaccesswallet.GetWalletCardsCallback)) could not be handled by the service. |\n| ` abstract void` | ` `[onSuccess](/reference/android/service/quickaccesswallet/GetWalletCardsCallback#onSuccess(android.service.quickaccesswallet.GetWalletCardsResponse))`(`[GetWalletCardsResponse](/reference/android/service/quickaccesswallet/GetWalletCardsResponse)` response) ` Notifies the Android System that an [QuickAccessWalletService.onWalletCardsRequested](/reference/android/service/quickaccesswallet/QuickAccessWalletService#onWalletCardsRequested(android.service.quickaccesswallet.GetWalletCardsRequest,%20android.service.quickaccesswallet.GetWalletCardsCallback)) was successfully handled by the service. |\n\nPublic methods\n--------------\n\n### onFailure\n\nAdded in [API level 30](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onFailure (GetWalletCardsError error)\n```\n\nNotifies the Android System that an [QuickAccessWalletService.onWalletCardsRequested](/reference/android/service/quickaccesswallet/QuickAccessWalletService#onWalletCardsRequested(android.service.quickaccesswallet.GetWalletCardsRequest,%20android.service.quickaccesswallet.GetWalletCardsCallback))\ncould not be handled by the service.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `error` | `GetWalletCardsError`: The error message. **Note:** this message should **not** contain PII (Personally Identifiable Information, such as username or email address). This value cannot be `null`. \u003cbr /\u003e |\n\n| Throws ||\n|---------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [IllegalStateException](/reference/java/lang/IllegalStateException) | if this method or [onSuccess(GetWalletCardsResponse)](/reference/android/service/quickaccesswallet/GetWalletCardsCallback#onSuccess(android.service.quickaccesswallet.GetWalletCardsResponse)) was already called. |\n\n### onSuccess\n\nAdded in [API level 30](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onSuccess (GetWalletCardsResponse response)\n```\n\nNotifies the Android System that an [QuickAccessWalletService.onWalletCardsRequested](/reference/android/service/quickaccesswallet/QuickAccessWalletService#onWalletCardsRequested(android.service.quickaccesswallet.GetWalletCardsRequest,%20android.service.quickaccesswallet.GetWalletCardsCallback))\nwas successfully handled by the service.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `response` | `GetWalletCardsResponse`: The response contains the list of [walletCards](/reference/android/service/quickaccesswallet/WalletCard) to be shown to the user as well as the index of the card that should initially be presented as the selected card. The list should not contain more than the maximum number of cards requested. This value cannot be `null`. \u003cbr /\u003e |"]]