Sdílet prostřednictvím


CardEmulation.RegisterAidsForService Method

Definition

Registers a list of AIDs for a specific category for the specified service.

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

Parameters

service
ComponentName

The component name of the service

category
String

The category of AIDs to be registered

aids
IList<String>

A list containing the AIDs to be registered

Returns

whether the registration was successful.

Attributes

Remarks

Registers a list of AIDs for a specific category for the specified service.

If a list of AIDs for that category was previously registered for this service (either statically through the manifest, or dynamically by using this API), that list of AIDs will be replaced with this one.

Note that you can only register AIDs for a service that is running under the same UID as the caller of this API. Typically this means you need to call this from the same package as the service itself, though UIDs can also be shared between packages using shared UIDs.

Java documentation for android.nfc.cardemulation.CardEmulation.registerAidsForService(android.content.ComponentName, java.lang.String, java.util.List<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