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(); }
public static async void StartNFCRedirecting() { await Task.Delay(100); NFCController.StartListening(OnMessageReceived, true); }
protected override void OnSleep() { NFCController.Pause(); }
protected override void OnResume() { base.OnResume(); NFCController.Resume(); }
protected override void OnStart() { NFCController.StopAll(); }