Exemplo n.º 1
0
        private void ManageReadOperation()
        {
            //TODO 2. READING CARD 5
            NfcTagInfo nTag = GetNfcTagInfo(currentTag);

            OnNfcTagRead?.Invoke(this, nTag);
            currentIntent = null;
        }
Exemplo n.º 2
0
        private void OnNdefRed(NFCNdefMessage message, NSError error)
        {
            if (message == null)
            {
                OnNfcTagRead?.Invoke(this, null);
                return;
            }
            NfcTagInfo tagInfo = new NfcTagInfo();

            tagInfo.Records = GetRecords(message.Records);

            OnNfcTagRead?.Invoke(this, tagInfo);
        }
Exemplo n.º 3
0
 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);
     }
 }