Language

CardSelectionMode Enum

Definition

Enumerates values returned by several types.

public enum CardSelectionMode
type CardSelectionMode = 
Inheritance
CardSelectionMode

Fields

Name Value Description
PreferDefault 0

Return value for getSelectionModeForCategory(String).

In this mode, the user has set a default service for this category.

When using ISO-DEP card emulation with HostApduService or OffHostApduService, if a remote NFC device selects any of the Application IDs (AIDs) that the default service has registered in this category, that service will automatically be bound to to handle the transaction.

Android reference for android.nfc.cardemulation.CardEmulation.SELECTION_MODE_PREFER_DEFAULT.

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.

AlwaysAsk 1

Return value for getSelectionModeForCategory(String).

In this mode, when using ISO-DEP card emulation with HostApduService or OffHostApduService, whenever an Application ID (AID) of this category is selected, the user is asked which service they want to use to handle the transaction, even if there is only one matching service.

Android reference for android.nfc.cardemulation.CardEmulation.SELECTION_MODE_ALWAYS_ASK.

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.

AskIfConflict 2

Return value for getSelectionModeForCategory(String).

In this mode, when using ISO-DEP card emulation with HostApduService or OffHostApduService, the user will only be asked to select a service if the Application ID (AID) selected by the reader has been registered by multiple services. If there is only one service that has registered for the AID, that service will be invoked directly.

Android reference for android.nfc.cardemulation.CardEmulation.SELECTION_MODE_ASK_IF_CONFLICT.

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.

Remarks

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