Retrieve card states for the cards of interest.
#include <smartcard/sc_smart_card.h>
sc_response_code_t sc_locate_cards(sc_context_t *context,
const sc_card_name_t *cards,
size_t num_cards,
sc_reader_state_t **reader_states,
size_t num_reader_states)
BlackBerry 10.2.0
The active smart card context. This value cannot be NULL.
Array of card types of interest.
Number of elements in the cards array.
On input, the array describes the set of readers of interest. On output, the array contains information that indicates whether a card matching one of the specified card types is present.
Number of elements in reader_states.
The value of the event_state field of each sc_reader_state_t instance indicates whether a card that matches one of the specified card types is present. Unknown card types are ignored. If an unknown reader is specified, an error is returned.
To block a pending insertion of the expected card types, use sc_get_status_change().
SC_SCARD_S_SUCCESS upon success, an error code otherwise. See sc_response_code_t for defined error codes.