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.