SpringCard PC/SC API for .NET  18.10.10
Access PC/SC couplers and smart cards from .NET applications
SpringCard.PCSC.SCardReaderList Class Reference

The SCardReaderList object is used to monitor a set of PC/SC readers (i.e. wait for card events) More...

Inheritance diagram for SpringCard.PCSC.SCardReaderList:
SpringCard.PCSC.ZeroDriver.SCardReaderList_CcidOver SpringCard.PCSC.ZeroDriver.SCardReaderList_CcidOverBle SpringCard.PCSC.ZeroDriver.SCardReaderList_CcidOverNetwork SpringCard.PCSC.ZeroDriver.SCardReaderList_CcidOverSerial SpringCard.PCSC.ZeroDriver.SCardReaderList_CcidOverBle_BgApi

Public Member Functions

 SCardReaderList (uint Scope, string Groups)
 
 SCardReaderList (string[] reader_names)
 
virtual void Release ()
 
delegate void StatusChangeCallback (string ReaderName, uint ReaderState, CardBuffer CardAtr)
 
void StartMonitor (StatusChangeCallback callback)
 
void StopMonitor ()
 
bool Contains (string ReaderName)
 
SCardReader GetReader (int index)
 
SCardReader GetReader (string reader_name)
 

Protected Attributes

string [] _reader_names
 

Properties

string [] Readers [get]
 
uint LastError [get]
 
string LastErrorAsString [get]
 

Detailed Description

The SCardReaderList object is used to monitor a set of PC/SC readers (i.e. wait for card events)

Member Function Documentation

◆ StartMonitor()

void SpringCard.PCSC.SCardReaderList.StartMonitor ( StatusChangeCallback  callback)

m* SCardReaderList/StartMonitor

NAME SCardReaderList.StartMonitor()

SYNOPSIS SCardReaderList.StartMonitor(SCardReaderList.StatusChangeCallback callback);

DESCRIPTION Create a background thread to monitor the reader associated to the object. Everytime the status of the reader is changed, the callback is invoked.

SEE ALSO SCardReaderList.StatusChangeCallback SCardReaderList.StopMonitor()

◆ StatusChangeCallback()

delegate void SpringCard.PCSC.SCardReaderList.StatusChangeCallback ( string  ReaderName,
uint  ReaderState,
CardBuffer  CardAtr 
)

t* SCardReaderList/StatusChangeCallback

NAME SCardReaderList.StatusChangeCallback

SYNOPSIS delegate void StatusChangeCallback(string ReaderName, uint ReaderState, CardBuffer CardAtr);

DESCRIPTION Typedef for the callback that will be called by the background thread launched by SCardReaderList.StartMonitor(), everytime the status of one of the readers is changed.

NOTES The callback is invoked in the context of a background thread. This implies that it is not allowed to access the GUI's components directly.

◆ StopMonitor()

void SpringCard.PCSC.SCardReaderList.StopMonitor ( )

m* SCardReaderList/StopMonitor

NAME SCardReaderList.StopMonitor()

DESCRIPTION Stop the background thread previously launched by SCardReaderList.StartMonitor().

Property Documentation

◆ LastError

uint SpringCard.PCSC.SCardReaderList.LastError
get

v* SCardReaderList/LastError

NAME uint SCardReaderList.LastError

OUTPUT Returns the last error encountered by the object when working with SCARD functions.

SEE ALSO SCardReaderList.LastErrorAsString

◆ LastErrorAsString

string SpringCard.PCSC.SCardReaderList.LastErrorAsString
get

v* SCardReaderList/LastErrorAsString

NAME string SCardReaderList.LastErrorAsString

OUTPUT Returns the last error encountered by the object when working with SCARD functions.

SEE ALSO SCardReaderList.LastError

◆ Readers

string [] SpringCard.PCSC.SCardReaderList.Readers
get

f* SCardReaderList/Readers

NAME SCardReaderList.Readers

DESCRIPTION Provides the list of the monitored PC/SC readers

SYNOPSIS string[] SCardReaderList.Readers


The documentation for this class was generated from the following file: