Pcsc class

The main class to use to deal with PCSC.

Constructors

Pcsc()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

cardConnect(int context, String reader, PcscShare share, PcscProtocol protocol) Future<CardStruct>
Connects to the card using the specified reader.
cardDisconnect(int hCard, PcscDisposition disposition) Future<void>
Disconnects from the card.
dispositionToInt(PcscDisposition disposition) int
Converts a disposition method to its corresponding identifier.
establishContext(PcscSCope scope) Future<int>
Establishes a PCSC context.
intToProtocol(int protocol) PcscProtocol
Converts a protocol identifier to its corresponding enum.
listReaders(int context) Future<List<String>>
Lists available readers for this context.
protocolToInt(PcscProtocol protocol) int
Converts a protocol to its corresponding identifier.
releaseContext(int context) Future<void>
Releases the PCSC context.
scopeToInt(PcscSCope scope) int
Converts a scope to its corresponding identifier.
shareToInt(PcscShare share) int
Converts a share mode to its corresponding identifier.
transmit(CardStruct card, List<int> commandBytes, {bool newIsolate = false}) Future<List<int>>
Transmits an APDU to the card.
waitForCardPresent(int context, String readerName) Future<Map>
Waits for a card to be present on the specified reader.
waitForCardRemoved(int context, String readerName) Future<void>
Waits for a card to be removed on the specified reader.