TKSmart object represents a Smart Card. The
TKSmart class provides an interface for managing sessions with a Smart Card, transmitting requests, and facilitating user interaction.
- macOS 10.10+
You can create a
TKSmart object when a Smart Card is inserted into a slot, by calling the
make method on the corresponding
TKSmart object. To start communicating with the Smart Card, call the
begin method on the
TKSmart object. Once an exclusive session has been established, you transmit data using the
transmit method. After you’ve finished communicating with a Smart Card, you call the
If the Smart Card is physically removed from its slot, the session object becomes invalid, and any further calls to
transmit will return an error. You can use Key-Value Observing on the
valid property to be notified when a Smart Card is invalidated, due to being removed from the slot or another reason.