Instance Method

beginSessionWithReply:

Begins a session with the Smart Card.

Declaration

- (void)beginSessionWithReply:(void (^)(BOOL success, NSError *error))reply;

Parameters

reply
success

Whether the session could be established successfully.

error

Contains information about the the error preventing the transaction from being established.

The NSError object is created in the TKErrorDomain domain with a code in the TKErrorCode enumeration.

Discussion

This method will fail if there is already an existing session for the Smart Card.

Calls to this method must be balanced with calls to endSession.

See Also

Communicating with the Smart Card

transmitRequest:reply:

Transmits data in Application Protocol Data Unit (APDU) format to the Smart Card.

endSession

Completes any pending transmissions and ends the session to the Smart Card.