SmartCardDeviceListener Class
Namespace: Yubico.Core.Devices.SmartCard Assembly: Yubico.Core.dllA class that provides events for a smart card device arrival and removal.
public abstract class SmartCardDeviceListener : Object
Remarks
This class exposes two events to the caller: Arrived and Removed. As their names suggest, subscribing to these events will inform your code whenever a new smart card device is discovered on the system, or one is removed, respectively.
You will only receive events for devices that were added or removed after you subscribed to the event. That is, arrival events will only be raised for devices added after you have subscribed to the Arrived events. All devices already attached to the system will be ignored.
Constructors
Name | Description |
---|---|
SmartCardDeviceListener() |
Properties
Name | Description |
---|---|
Status | A status that indicates the state of the device listener. |
Methods
Name | Description |
---|---|
ClearEventHandlers() | Implementers can call this method to reset the event handlers during cleanup. |
Create() | Creates an instance of a SmartCardDeviceListener. |
OnArrived(ISmartCardDevice) | Implementers should call this method when they have discovered a new smart card device on the system. |
OnRemoved(ISmartCardDevice) | Implementers should call this method when they have discovered that a smart card device has been removed from the system. |
Events
Name | Description |
---|---|
Arrived | Subscribe to receive an event whenever a smart card device is added to the computer. |
Removed | Subscribe to receive an event whenever a smart card device is removed from the computer. |