Retrieve the role of connection handover.
#include <nfc/nfc.h>
NFC_API nfc_result_t nfc_get_handover_role(nfc_target_t *target, handover_role_t *role)
BlackBerry 10.0.0
The NFC target returned from the nfc_get_target() function.
The returned role of connection handover negotiation.
This function gets the role of the device involved in the connection handover negotiation. The retrieval of the role of the device is dependent on the successful completion of the connection handover. Therefore, the application must wait for the NFC_HANDOVER_COMPLETE_EVENT before using this function.
NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER, which indicates that an invalid argument was passed to the function.