Beispiel #1
0
        private void OnNavigating(object sender, ShellNavigatingEventArgs e)
        {
            AddChipTab.IsEnabled = Preferences.Get("Role", "") == "ROLE_ADMIN";
            if (Shell.Current == null)
            {
                return;
            }

            if ((e.Source == ShellNavigationSource.ShellSectionChanged || e.Source == ShellNavigationSource.Unknown) &&
                e.Target.Location.ToString() != Routes.Attendance)
            {
                NFCController.StartListening(OnMessageReceived, true);
            }

            MapRouteToPage(e.Target.Location)?.OnNavigated();
        }
Beispiel #2
0
        public static async void StartNFCRedirecting()
        {
            await Task.Delay(100);

            NFCController.StartListening(OnMessageReceived, true);
        }
Beispiel #3
0
 protected override void OnSleep()
 {
     NFCController.Pause();
 }
Beispiel #4
0
 protected override void OnResume()
 {
     base.OnResume();
     NFCController.Resume();
 }
Beispiel #5
0
 protected override void OnStart()
 {
     NFCController.StopAll();
 }