SmartCardEmulator Class

Definition

Represents a smart card emulator device.

public ref class SmartCardEmulator sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.SmartCards.SmartCardEmulatorContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SmartCardEmulator final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.SmartCards.SmartCardEmulatorContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SmartCardEmulator
Public NotInheritable Class SmartCardEmulator
Inheritance
Object Platform::Object IInspectable SmartCardEmulator
Attributes

Windows requirements

Device family
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Devices.SmartCards.SmartCardEmulatorContract (introduced in v1.0)

Remarks

Version history

Windows version SDK version Value added
1709 16299 IsSupported

Properties

EnablementPolicy

Gets the current card emulation policy set by the user.

MaxAppletIdGroupRegistrations

Gets the maximum number of permitted applet ID group registrations.

Methods

GetAppletIdGroupRegistrationsAsync()

Gets the registered applet identifier groups for this smart card, asynchronously.

GetDefaultAsync()

Returns the SmartCardEmulator object representing the default smart card emulator device.

IsHostCardEmulationSupported()

Gets a Boolean value indicating if host card emulation is supported by this device.

IsSupported()

Returns whether the SmartCardEmulator is supported.

RegisterAppletIdGroupAsync(SmartCardAppletIdGroup)

Asynchronously registers a group of applet IDs.

Start()

Starts the smart card emulator. This method must be called from a background task.

UnregisterAppletIdGroupAsync(SmartCardAppletIdGroupRegistration)

Asynchronously unregisters a previously registered group of applet IDs.

Events

ApduReceived

Occurs when an application protocol data unit (APDU) is received by the NFC controller.

ConnectionDeactivated

Occurs when the connection with the device is physically broken or when the NFC reader requests a connection to a different app.

Applies to

See also