Close the smart card session.
#include <smartcard_spi/SmartCardInterface.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardInterface::detach(sc_card_disposition_t dispositionAction)
BlackBerry 10.3.0
The action to be performed upon termination.
This function closes the smart card session. If no connection is currently opened, an error is returned.
Upon termination, the action indicated by dispositionAction 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.
If successful, SC_SCARD_S_SUCCESS is returned. Otherwise, an error code is returned.