nfc_register_handover_listener()

Register for notification of a successful NFC handover.

Synopsis:

#include <nfc/nfc.h>
 
NFC_API nfc_result_t nfc_register_handover_listener(handover_transport_type_t type)

Since:

BlackBerry 10.0.0

Arguments:

type

The transport type used to complete the NFC handover.

Library:

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

Description:

This function registers a caller to be updated when an NFC handover has occurred. On successful detection, a call to the nfc_get_event_type() function returns NFC_HANDOVER_DETECTED_EVENT.

Initial calls to this function register the specified type as the preferred transport type with the highest priority. Subsequent calls with new transport types register the supplied transport types with lower priority. Calls to this function with already registered transport types have no effect.

Returns:

NFC_RESULT_SUCCESS, or one of the following:

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus