CardEmulation.RegisterAidsForService Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
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.