A representation of a smart card.
- iOS 13.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 13.0+
This class provides an interface for managing sessions with a smart card, transmitting requests, and facilitating user interaction.
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
is property to be notified when a smart card is invalidated, due to being removed from the slot or another reason.