Close any open smart card session.
#include <smartcard/sc_smart_card.h>
sc_response_code_t sc_detach(sc_context_t *context,
sc_card_disposition_t card_disposition)
BlackBerry 10.2.0
The active smart card context. This value cannot be NULL.
The disposition action to be performed upon termination.
If no connection is currently opened, then an error is returned.
Upon termination, the action indicated by card_disposition is performed, if possible. The allowed actions include:
Any application may reset the card, even in shared access mode. You can turn off the power to a smart card or eject a smart card only if the app has exclusive access to the card.
SC_SCARD_S_SUCCESS upon success, an error code otherwise. See sc_response_code_t for defined error codes.