Given a text payload, this function creates a properly formatted
NFCRecord to be written to an NFC tag.
- payload–(Required) The text to be converted to an NFC record.
A Promise object that resolves to an
A rejected promise returns an
Use this function to create and return an NFC record to use as a parameter for the
- If an error occurs, the error is returned via a rejected promise. Handle errors in a
- When the user cancels the operation, the promise is rejected with a
NFCServiceFailure.codevalue of USER_DISMISSED.