nfc_is_static_handover()

Determine whether the connection handover target is a static handover detection or dynamic handover between two devices.

Synopsis:

#include <nfc/nfc.h>
 
NFC_API nfc_result_t nfc_is_static_handover(nfc_target_t *target, bool *isStatic)

Since:

BlackBerry 10.2.0

Arguments:

target

The NFC target returned from the nfc_get_target() function.

isStatic

The returned value. If true, the handover target is an NFC tag; otherwise, the handover target is a device that supports NFC connection handover.

Library:

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

Description:

This function returns information that indicates whether a handover target is detected from an NFC tag or a remote device target. The retrieval of the information 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.

Returns:

NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER, which indicates that an invalid argument was passed to the function.

Last modified: 2014-05-14



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

comments powered by Disqus