private void ScheduleTagDiscovered(Intent intent) { switch (nfcManagerState) { case NfcManagerState.IDLE: { OnReadTag(intent); } break; case NfcManagerState.WRITE_REQUEST: { nfcManagerState = NfcManagerState.IDLE; OnWriteTag(intent, DataToWrite); } break; } }
private void Write(NfcService nfcService, string data) { DataToWrite = data; nfcManagerState = NfcManagerState.WRITE_REQUEST; }