NFC-getNFCAdapter
TIP
The API usage is as follows: NFCAdapter wx.getNFCAdapter()
TIP
Support:
- Android: Support
- iOS: Not supported
- Functional description: Get NFC instances
- Parameters and descriptions: Return NFCAdapter NFC instance
- Error code
Error code Error message Description 13000 The device does not support NFC - 13001 The system NFC switch is not turned on - 13010 Unknown error - 13019 user is not authorized The user is not authorized 13011 invalid parameter Invalid parameters 13012 parse NdefMessage failed Failed to parse parameters into NdefMessage 13021 NFC discovery already started NFC scanning has started 13018 NFC discovery has not started Attempt to stop NFC scanning when NFC scanning has not started 13022 Tech already connected The tag is already connected 13023 Tech has not connected Attempt to disconnect when the tag is not connected 13013 NFC tag has not been discovered NFC tag not scanned 13014 invalid tech Invalid tag technology 13015 unavailable tech Failed to obtain the corresponding technology from the tag 13024 function not support The current tag technology does not support this function 13017 system internal error Related read and write operations failed 13016 connect fail Connection failed