다음을 통해 공유


CardEmulation.IsDefaultServiceForAid(ComponentName, String) Method

Definition

Allows an application to query whether a service is currently the default handler for a specified ISO7816-4 Application ID.

[Android.Runtime.Register("isDefaultServiceForAid", "(Landroid/content/ComponentName;Ljava/lang/String;)Z", "")]
public bool IsDefaultServiceForAid (Android.Content.ComponentName? service, string? aid);
[<Android.Runtime.Register("isDefaultServiceForAid", "(Landroid/content/ComponentName;Ljava/lang/String;)Z", "")>]
member this.IsDefaultServiceForAid : Android.Content.ComponentName * string -> bool

Parameters

service
ComponentName

The ComponentName of the service

aid
String

The ISO7816-4 Application ID

Returns

whether the service is the default handler for the specified AID

        &lt;p class="note"&gt;Requires the <code data-dev-comment-type="c">android.Manifest.permission#NFC</code> permission.
Attributes

Remarks

Allows an application to query whether a service is currently the default handler for a specified ISO7816-4 Application ID.

Java documentation for android.nfc.cardemulation.CardEmulation.isDefaultServiceForAid(android.content.ComponentName, 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