Share via


NfcFCardEmulation.GetSystemCodeForService(ComponentName) Method

Definition

Retrieves the current System Code for the specified service.

[Android.Runtime.Register("getSystemCodeForService", "(Landroid/content/ComponentName;)Ljava/lang/String;", "", ApiSince=24)]
public string? GetSystemCodeForService (Android.Content.ComponentName? service);
[<Android.Runtime.Register("getSystemCodeForService", "(Landroid/content/ComponentName;)Ljava/lang/String;", "", ApiSince=24)>]
member this.GetSystemCodeForService : Android.Content.ComponentName -> string

Parameters

service
ComponentName

The component name of the service

Returns

the current System Code

Attributes

Remarks

Retrieves the current System Code for the specified service.

Before calling #registerSystemCodeForService(ComponentName, String), the System Code contained in the Manifest file is returned. After calling #registerSystemCodeForService(ComponentName, String), the System Code registered there is returned. After calling #unregisterSystemCodeForService(ComponentName), "null" is returned.

Java documentation for android.nfc.cardemulation.NfcFCardEmulation.getSystemCodeForService(android.content.ComponentName).

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