Added in API level 30

GetWalletCardsCallback


interface GetWalletCardsCallback
android.service.quickaccesswallet.GetWalletCardsCallback

Handles response from the QuickAccessWalletService for GetWalletCardsRequest

Summary

Public methods
abstract Unit

Notifies the Android System that an QuickAccessWalletService#onWalletCardsRequested could not be handled by the service.

abstract Unit

Notifies the Android System that an QuickAccessWalletService#onWalletCardsRequested was successfully handled by the service.

Public methods

onFailure

Added in API level 30
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

Added in API level 30
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.