Added in API level 30

GetWalletCardsCallback

public interface GetWalletCardsCallback

android.service.quickaccesswallet.GetWalletCardsCallback


Handles response from the QuickAccessWalletService for GetWalletCardsRequest

Summary

Public methods

abstract void onFailure(GetWalletCardsError error)

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

abstract void onSuccess(GetWalletCardsResponse response)

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

Public methods

onFailure

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

Throws
IllegalStateException if this method or onSuccess(GetWalletCardsResponse) was already called.

onSuccess

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