nfc_get_domain()

Retrieve the unique domain ID for the NFC service.

Synopsis:

#include <nfc/nfc_bps.h>
 
NFC_API int nfc_get_domain()

Since:

BlackBerry 10.0.0

Arguments:

Library:

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

Description:

This function retrieves the unique domain ID for the NFC service. Use this function in your application to determine whether an event that you retrieve is an NFC event and then respond accordingly.

You use the bps_get_event() function from the BPS library to retrieve the event.

Returns:

The domain ID for the NFC service upon success, BPS_FAILURE otherwise.