public static void Init(INfc nfc) { if (Nfc == null) { Nfc = nfc ?? throw new ArgumentNullException(nameof(nfc)); } }
public AddAttendance() { InitializeComponent(); device = DependencyService.Get <INfc>(); device.NewTag += HandleNewTag; }
public NfcViewModel() { _nfc = CrossNfc.Current; }