nfc_get_setting()
Retrieve one of the NFC user settings that is available from the device.
Synopsis:
#include <nfc/nfc.h>
NFC_API nfc_result_t nfc_get_setting(nfc_settings_t setting, bool *enabled)
Arguments:
- setting
-
The setting whose value you want to retrieve. Valid settings must be of type nfc_settings_t.
- enabled
-
The current value of the specified user setting.
Library:
libnfcDescription:
This function retrieves the current value for the specified user setting.
Returns:
NFC_RESULT_SUCCESS, or one of the following:
- NFC_RESULT_SERVICE_CONNECTION_ERROR: The application is not connected to the NFC system.
- NFC_RESULT_LOCKED: The activation request could not be completed as a mode change was already in progress. It is recommended to try calling nfc_set_setting() again.