SmartCardSession::disconnect()

Disconnect from the current smart card.

Synopsis:

#include <smartcard_spi/SmartCardSession.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardSession::disconnect(sc_card_disposition_t dispositionAction)=0

Since:

BlackBerry 10.3.0

Arguments:

dispositionAction

The action to be performed upon termination of the connection.

Library:

libscs (For the qcc command, use the -l scs option to link against this library)

Description:

This function terminates the current smart card connection. If no connection is currently active, then an error is returned. Upon termination, the action indicated by the dispositionAction parameter is performed if possible.

Any application may reset the card, even in shared access mode. Power-down and eject actions will succeed only if the application has exclusive access to the card.

Returns:

If successful, SCARD_S_SUCCESS is returned. Otherwise, an error code is returned.