Android.Nfc.CardEmulators.CardEmulation.IsDefaultServiceForCategory Method
Allows an application to query whether a service is currently the default service to handle a card emulation category.

Syntax

[Android.Runtime.Register("isDefaultServiceForCategory", "(Landroid/content/ComponentName;Ljava/lang/String;)Z", "")]
public bool IsDefaultServiceForCategory (Android.Content.ComponentName service, string category)

Parameters

service
The ComponentName of the service
category
The category

Returns

Documentation for this section has not yet been entered.

Remarks

Allows an application to query whether a service is currently the default service to handle a card emulation category.

Note that if CardEmulation.GetSelectionModeForCategory(string) returns CardEmulation.SelectionModeAlwaysAsk or CardEmulation.SelectionModeAskIfConflict, this method will always return false. That is because in these selection modes a default can't be set at the category level. For categories where the selection mode is CardEmulation.SelectionModeAlwaysAsk or CardEmulation.SelectionModeAskIfConflict, use CardEmulation.IsDefaultServiceForAid(Android.Content.ComponentName, System.String) to determine whether a service is the default for a specific AID.

[Android Documentation]

Requirements

Namespace: Android.Nfc.CardEmulators
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0