GetWalletCardsResponse
class GetWalletCardsResponse : Parcelable
| kotlin.Any | |
| ↳ | android.service.quickaccesswallet.GetWalletCardsResponse |
The response for an GetWalletCardsRequest contains a list of wallet cards and the index of the card that should initially be displayed in the 'selected' position.
Summary
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
GetWalletCardsResponse(walletCards: MutableList<WalletCard!>, selectedIndex: Int)Construct a new response. |
|
| Public methods | |
|---|---|
| Int |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| Int |
The |
| MutableList<WalletCard!> |
The list of |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<GetWalletCardsResponse!> | |
Public constructors
GetWalletCardsResponse
GetWalletCardsResponse(
walletCards: MutableList<WalletCard!>,
selectedIndex: Int)
Construct a new response.
| Parameters | |
|---|---|
walletCards |
MutableList<WalletCard!>: The list of wallet cards. The list may be empty but must NOT be larger than GetWalletCardsRequest.getMaxCards(). The list may not contain null values. |
selectedIndex |
Int: The index of the card that should be presented as the initially 'selected' card. The index must be greater than or equal to zero and less than the size of the list of walletCards (unless the list is empty in which case the value may be 0). |
Public methods
describeContents
fun describeContents(): Int
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or
|
getSelectedIndex
fun getSelectedIndex(): Int
The selectedIndex represents the index of the card that should be presented in the 'selected' position when the cards are initially displayed in the quick access wallet. The selectedIndex should be greater than or equal to zero and less than the size of the list of walletCards, unless the list is empty in which case the selectedIndex can take any value. 0 is a nice round number for such cases.
getWalletCards
fun getWalletCards(): MutableList<WalletCard!>
The list of WalletCards. The size of this list should not exceed GetWalletCardsRequest.getMaxCards().
| Return | |
|---|---|
MutableList<WalletCard!> |
This value cannot be null. |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
dest |
Parcel: This value cannot be null. |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of the following:
|