GetWalletCardsCallback
interface GetWalletCardsCallback
android.service.quickaccesswallet.GetWalletCardsCallback |
Handles response from the QuickAccessWalletService
for GetWalletCardsRequest
Summary
Public methods | |
---|---|
abstract Unit |
onFailure(error: GetWalletCardsError) Notifies the Android System that an |
abstract Unit |
onSuccess(response: GetWalletCardsResponse) Notifies the Android System that an |
Public methods
onFailure
abstract fun onFailure(error: GetWalletCardsError): Unit
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 . |
Exceptions | |
---|---|
java.lang.IllegalStateException |
if this method or onSuccess was already called. |
onSuccess
abstract fun onSuccess(response: GetWalletCardsResponse): Unit
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 . |