Share via


GetWalletCardsResponse.SelectedIndex Property

Definition

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.

public int SelectedIndex { [Android.Runtime.Register("getSelectedIndex", "()I", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getSelectedIndex", "()I", "", ApiSince=30)>]
member this.SelectedIndex : int

Property Value

Attributes

Remarks

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 WalletCard walletCards, unless the list is empty in which case the selectedIndex can take any value. 0 is a nice round number for such cases.

Java documentation for android.service.quickaccesswallet.GetWalletCardsResponse.getSelectedIndex().

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