Partager via


CardEmulation.SelectionModePreferDefault Field

Definition

Caution

This constant will be removed in the future version. Use Android.Nfc.CardEmulators.CardSelectionMode enum directly instead of this field.

Return value for #getSelectionModeForCategory(String).

[Android.Runtime.Register("SELECTION_MODE_PREFER_DEFAULT")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Nfc.CardEmulators.CardSelectionMode enum directly instead of this field.", true)]
public const Android.Nfc.CardEmulators.CardSelectionMode SelectionModePreferDefault = 0;
[<Android.Runtime.Register("SELECTION_MODE_PREFER_DEFAULT")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Nfc.CardEmulators.CardSelectionMode enum directly instead of this field.", true)>]
val mutable SelectionModePreferDefault : Android.Nfc.CardEmulators.CardSelectionMode

Field Value

Value = 0
Attributes

Remarks

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.

Java documentation 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.

Applies to