private void ManageWriteUriOperation() { NfcNdefRecord record = new NfcNdefRecord { TypeFormat = NfcNdefTypeFormat.Uri, Payload = NfcUtils.EncodeToByteArray(uriToWrite) }; OnNfcTagUriWriten?.Invoke(this, WriteNfcNdefRecord(record)); }
public override void DidInvalidate(NFCNdefReaderSession session, NSError error) { //Error if (isReadingTag) { OnNfcTagRead?.Invoke(this, null); } else if (isWritingTagText) { OnNfcTagTextWriten?.Invoke(this, false); } else if (isWritingTagUri) { OnNfcTagUriWriten?.Invoke(this, false); } else if (isWritingTagMime) { OnNfcTagMimeWriten?.Invoke(this, false); } else if (isCleaningTag) { OnNfcTagCleaned?.Invoke(this, false); } }