Contents

beginSession(reply:)

Begins a session with the Smart Card.

Declaration

func beginSession(reply: @escaping  @Sendable (Bool, (any Error)?) -> Void)
func beginSession() async throws -> Bool

Parameters

  • reply:

    success

    Whether the session could be established successfully.

    error

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

    The NSError object is created in the Tkerrordomain domain with a code in the Code 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