Exemplo n.º 1
0
        public override async void DidDetectTags(NFCNdefReaderSession session, INFCNdefTag[] tags)
        {
            System.Diagnostics.Debug.WriteLine("========> DidDetectTags");

            _tag = tags[0];
            await session.ConnectToTagAsync(_tag);

            TagDetected?.Invoke(this, new NfcTagDetectedEventArgs(
                                    tagId: string.Empty, //// TODO: CHECK HOW TO GET ID
                                    ndefMessage: await ReadNdefAsync()));
        }