Initiate Send file operation
Returns DOMRequest, if initiation of send file operation is successful
then ‘onsuccess’ is called else ‘onerror’
window | Current window |
blob | Raw data of the file to be sent. This object represents a file-like (nsIDOMFile) object of immutable, raw data. The blob data needs to be 'object wrapped' before calling this interface. |
sessionToken | Current token |
Register the event target.
target | An instance of the nsINfcDOMEventTarget. |
Register the given application id with Chrome process
window | Current window |
appId | Application ID to be registered |
Unregister the given application id with Chrome process
window | Current window |
appId | Application ID to be registered |
Checks if the given application’s id is a registered peer target (with the Chrome process)
Returns DOMRequest, if appId is registered then ‘onsuccess’ is called else ‘onerror’
window | Current window |
appId | Application ID to be updated with Chrome process |
Notify the Chrome process that user has accepted to share nfc message on P2P UI
window | Current window |
appId | Application ID that is capable of handling NFC_EVENT_PEER_READY event |
Notify the status of sendFile operation to Chrome process
window | Current window |
status | Status of sendFile operation |
requestId | Request ID of SendFile DOM Request |
Power on the NFC hardware and start polling for NFC tags or devices.
Stop polling for NFC tags or devices. i.e. enter low power mode.
Power off the NFC hardware.