SmartCardEmulator SmartCardEmulator SmartCardEmulator SmartCardEmulator SmartCardEmulator Class

Definition

Represents a smart card emulator device.

public : sealed class SmartCardEmulator
struct winrt::Windows::Devices::SmartCards::SmartCardEmulator
public sealed class SmartCardEmulator
Public NotInheritable Class SmartCardEmulator
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.SmartCards.SmartCardEmulatorContract (introduced v1)

Remarks

Version history

Windows version SDK version Value added
1709 16299 IsSupported

Properties

EnablementPolicy EnablementPolicy EnablementPolicy EnablementPolicy EnablementPolicy

Gets the current card emulation policy set by the user.

MaxAppletIdGroupRegistrations MaxAppletIdGroupRegistrations MaxAppletIdGroupRegistrations MaxAppletIdGroupRegistrations MaxAppletIdGroupRegistrations

Gets the maximum number of permitted applet ID group registrations.

Methods

GetAppletIdGroupRegistrationsAsync() GetAppletIdGroupRegistrationsAsync() GetAppletIdGroupRegistrationsAsync() GetAppletIdGroupRegistrationsAsync() GetAppletIdGroupRegistrationsAsync()

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

GetDefaultAsync() GetDefaultAsync() GetDefaultAsync() GetDefaultAsync() GetDefaultAsync()

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

IsHostCardEmulationSupported() IsHostCardEmulationSupported() IsHostCardEmulationSupported() IsHostCardEmulationSupported() IsHostCardEmulationSupported()

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

IsSupported() IsSupported() IsSupported() IsSupported() IsSupported()

Returns whether the SmartCardEmulator is supported.

RegisterAppletIdGroupAsync(SmartCardAppletIdGroup) RegisterAppletIdGroupAsync(SmartCardAppletIdGroup) RegisterAppletIdGroupAsync(SmartCardAppletIdGroup) RegisterAppletIdGroupAsync(SmartCardAppletIdGroup) RegisterAppletIdGroupAsync(SmartCardAppletIdGroup)

Asynchronously registers a group of applet IDs.

Start() Start() Start() Start() Start()

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

UnregisterAppletIdGroupAsync(SmartCardAppletIdGroupRegistration) UnregisterAppletIdGroupAsync(SmartCardAppletIdGroupRegistration) UnregisterAppletIdGroupAsync(SmartCardAppletIdGroupRegistration) UnregisterAppletIdGroupAsync(SmartCardAppletIdGroupRegistration) UnregisterAppletIdGroupAsync(SmartCardAppletIdGroupRegistration)

Asynchronously unregisters a previously registered group of applet IDs.

Events

ApduReceived ApduReceived ApduReceived ApduReceived ApduReceived

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

ConnectionDeactivated ConnectionDeactivated ConnectionDeactivated ConnectionDeactivated ConnectionDeactivated

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

See also