nfc_register_tag_readerwriter()

Register for notification of tag events.

Synopsis:

#include <nfc/nfc.h>
 
NFC_API nfc_result_t nfc_register_tag_readerwriter(unsigned int nfc_tag_type_mask)

Since:

BlackBerry 10.0.0

Arguments:

nfc_tag_type_mask

One or more tag connection types represented as bit-fields. The bit-fields are specified in the nfc_tag_type_t type.

Library:

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

Description:

The nfc_register_tag_readerwriter() function registers for notification of a tag detection event. Once a tag is detected by the NFC reader, reading and writing of tags is possible. Upon successful detection, a call to nfc_get_event_type() returns NFC_TAG_READWRITE_EVENT.

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