语言

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()。 该列表可能不包含 null 值。

selectedIndex
Int32

应显示为最初“选定”卡的卡片的索引。 索引必须大于或等于零且小于电子钱包卡列表的大小(除非列表为空,在这种情况下,该值可能为 0)。

特性

注解

构造新响应。

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于