Share via


QuickAccessWalletService.OnWalletCardsRequested Method

Definition

Called when the user requests the service to provide wallet cards.

[Android.Runtime.Register("onWalletCardsRequested", "(Landroid/service/quickaccesswallet/GetWalletCardsRequest;Landroid/service/quickaccesswallet/GetWalletCardsCallback;)V", "GetOnWalletCardsRequested_Landroid_service_quickaccesswallet_GetWalletCardsRequest_Landroid_service_quickaccesswallet_GetWalletCardsCallback_Handler", ApiSince=30)]
public abstract void OnWalletCardsRequested (Android.Service.QuickAccessWallet.GetWalletCardsRequest request, Android.Service.QuickAccessWallet.IGetWalletCardsCallback callback);
[<Android.Runtime.Register("onWalletCardsRequested", "(Landroid/service/quickaccesswallet/GetWalletCardsRequest;Landroid/service/quickaccesswallet/GetWalletCardsCallback;)V", "GetOnWalletCardsRequested_Landroid_service_quickaccesswallet_GetWalletCardsRequest_Landroid_service_quickaccesswallet_GetWalletCardsCallback_Handler", ApiSince=30)>]
abstract member OnWalletCardsRequested : Android.Service.QuickAccessWallet.GetWalletCardsRequest * Android.Service.QuickAccessWallet.IGetWalletCardsCallback -> unit

Parameters

Attributes

Remarks

Called when the user requests the service to provide wallet cards.

This method will be called on the main thread, but the callback may be called from any thread. The callback should be called as quickly as possible. The service must always call either GetWalletCardsCallback#onSuccess(GetWalletCardsResponse) or GetWalletCardsCallback#onFailure(GetWalletCardsError). Calling multiple times or calling both methods will cause an exception to be thrown.

Java documentation for android.service.quickaccesswallet.QuickAccessWalletService.onWalletCardsRequested(android.service.quickaccesswallet.GetWalletCardsRequest, android.service.quickaccesswallet.GetWalletCardsCallback).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to