Dela via


CardEmulation.GetSelectionModeForCategory(String) Method

Definition

Returns the service selection mode for the passed in category.

[Android.Runtime.Register("getSelectionModeForCategory", "(Ljava/lang/String;)I", "")]
public Android.Nfc.CardEmulators.CardSelectionMode GetSelectionModeForCategory (string? category);
[<Android.Runtime.Register("getSelectionModeForCategory", "(Ljava/lang/String;)I", "")>]
member this.GetSelectionModeForCategory : string -> Android.Nfc.CardEmulators.CardSelectionMode

Parameters

category
String

The category, for example #CATEGORY_PAYMENT

Returns

the selection mode for the passed in category

Attributes

Remarks

Returns the service selection mode for the passed in category. Valid return values are:

#SELECTION_MODE_PREFER_DEFAULT the user has requested a default service for this category, which will be preferred.

#SELECTION_MODE_ALWAYS_ASK the user has requested to be asked every time what service they would like to use in this category.

#SELECTION_MODE_ASK_IF_CONFLICT the user will only be asked to pick a service if there is a conflict.

Java documentation for android.nfc.cardemulation.CardEmulation.getSelectionModeForCategory(java.lang.String).

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