Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.21 KB

OHCKIT_NFCCardReaderProvider.adoc

File metadata and controls

31 lines (22 loc) · 1.21 KB

NFCCardReaderProvider

A CardReaderProvider implementation that handles the communication with the Apple iPhone NFC interface.

NFCCardReaderSession

For convience, the NFCCardReaderSession combines the usage of the NFC inteface with the HealthCardAccess/HealthCardControl layers.

The initializer takes some NFC-Display messages, the CAN (card access number) and a closure with a NFCHealthCardSessionHandle to send/receive commands/responses to/from the NFC HealthCard and to update the user’s interface message to.

link:{sourcedir}/NFCDemo/NFC/NFCLoginController.swift[role=include]

Execute the operation on the NFC HealthCard. The secure channel (PACE) is established initially before executing the operation.

link:{sourcedir}/NFCDemo/NFC/NFCLoginController.swift[role=include]

The thrown error will be of type NFCHealthCardSessionError. The NFCHealthCardSession also gives you an endpoint to invalidate the underlying TagReaderSession.

link:{sourcedir}/NFCDemo/NFC/NFCLoginController.swift[role=include]