語言

GetWalletCardsResponse(IList<WalletCard>, Int32) 建構函式

定義

建立一個新的回應。

[Android.Runtime.Register(".ctor", "(Ljava/util/List;I)V", "", ApiSince=30)]
public GetWalletCardsResponse(System.Collections.Generic.IList<Android.Service.QuickAccessWallet.WalletCard> walletCards, int selectedIndex);
[<Android.Runtime.Register(".ctor", "(Ljava/util/List;I)V", "", ApiSince=30)>]
new Android.Service.QuickAccessWallet.GetWalletCardsResponse : System.Collections.Generic.IList<Android.Service.QuickAccessWallet.WalletCard> * int -> Android.Service.QuickAccessWallet.GetWalletCardsResponse

參數

walletCards
IList<WalletCard>

錢包卡的清單。 列表可以是空的,但不能大於 GetWalletCardsRequest#getMaxCards()。 該清單不得包含空值。

selectedIndex
Int32

應該作為最初「被選中」的卡片的索引。 索引必須大於或等於零,且小於 walletCards 清單的大小(除非清單為空,此時值可能為 0)。

屬性

備註

建立一個新的回應。

Java 文件 android.service.quickaccesswallet.GetWalletCardsResponse.GetWalletCardsResponse(java.util.List<android.service.quickaccesswallet.WalletCard>, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於