Keyple Terminal
KeypleTerminal is the entry point to the Keyple Distributed Client Library. Provided an instance of a NFC reader, and a NetworkClient, this object will handle the Card Selection Scenario if any, connect the NFC Card to the Keyple server and execute the commands sent by the server.
Use waitForCard for synchronous card detection or waitForCard with a callback parameter for asynchronous detection.
Then use executeRemoteService to start the Keyple transaction.
Parameters
An optional Card Selection Strategy Json string. See Selection JSON Specification here to learn more
Constructors
Functions
Execute a remote service on the Keyple server. This suspend method will communicate back and forth, over the network with the keyple server, and over NFC with the card. The server drives the transaction, requesting the card to execute APDU commands. APDU responses are sent back to the server, that can process them and decide to send new APDU commands to execute, as many time as needed.
Injects the card selection scenario that has been retrieved by your own means (from your server for example).
Set the scan instructions to the user, for applicable NFC readers. (Displayed on the iOS system "NFC reader" popup)
Suspends until a card is detected.
Starts monitoring the reader for card detection events asynchronously.