Share via


CardEmulation.GetAidsForService(ComponentName, String) Method

Definition

Retrieves the currently registered AIDs for the specified category for a service.

[Android.Runtime.Register("getAidsForService", "(Landroid/content/ComponentName;Ljava/lang/String;)Ljava/util/List;", "")]
public System.Collections.Generic.IList<string>? GetAidsForService (Android.Content.ComponentName? service, string? category);
[<Android.Runtime.Register("getAidsForService", "(Landroid/content/ComponentName;Ljava/lang/String;)Ljava/util/List;", "")>]
member this.GetAidsForService : Android.Content.ComponentName * string -> System.Collections.Generic.IList<string>

Parameters

service
ComponentName

The component name of the service

category
String

The category for which the AIDs were registered, e.g. #CATEGORY_PAYMENT

Returns

The list of AIDs registered for this category, or null if it couldn't be found.

Attributes

Remarks

Retrieves the currently registered AIDs for the specified category for a service.

Note that this will only return AIDs that were dynamically registered using #registerAidsForService(ComponentName, String, List) method. It will *not* return AIDs that were statically registered in the manifest.

Java documentation for android.nfc.cardemulation.CardEmulation.getAidsForService(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