QuickAccessWalletService.OnWalletCardsRequested Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- request
- GetWalletCardsRequest
The requested image dimensions, icon size, and maximum card count.
- callback
- IGetWalletCardsCallback
The callback to receive the response or error. Call either success or failure once for each request, as soon as possible. The callback can be called from any thread.
- 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.
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.