コード例 #1
0
        private void ScheduleTagDiscovered(Intent intent)
        {
            switch (nfcManagerState)
            {
            case NfcManagerState.IDLE:
            {
                OnReadTag(intent);
            }
            break;

            case NfcManagerState.WRITE_REQUEST:
            {
                nfcManagerState = NfcManagerState.IDLE;

                OnWriteTag(intent, DataToWrite);
            }
            break;
            }
        }
コード例 #2
0
        private void Write(NfcService nfcService, string data)
        {
            DataToWrite = data;

            nfcManagerState = NfcManagerState.WRITE_REQUEST;
        }