public override async void Cancel() { var rootFrame = RootFrame ?? Window.Current.Content as Frame ?? ((FrameworkElement)Window.Current.Content).GetFirstChildOfType <Frame>(); var dispatcher = Dispatcher ?? Window.Current.Dispatcher; ScanPage?.Cancel(); await dispatcher.RunAsync(CoreDispatcherPriority.High, () => { if (rootFrame.CanGoBack) { rootFrame.GoBack(); } }); }
public override void PauseAnalysis() { ScanPage?.PauseAnalysis(); }
public override void AutoFocus() { ScanPage?.AutoFocus(); }
public override void ToggleTorch() { ScanPage?.ToggleTorch(); }
public override void Torch(bool on) { ScanPage?.Torch(on); }
void PlatformResumeAnalysis() => ScanPage?.ResumeAnalysis();
void PlatformPauseAnalysis() => ScanPage?.PauseAnalysis();
public override void ResumeAnalysis() { ScanPage.RequestResumeAnalysis(); }
void PlatformToggleTorch() => ScanPage?.ToggleTorch();
void PlatformTorch(bool on) => ScanPage?.Torch(on);
public override void ToggleTorch() { ScanPage.RequestToggleTorch(); }
public override void Torch(bool on) { ScanPage.RequestTorch(on); }
public override void Cancel() { ScanPage.RequestCancel(); }
public override void AutoFocus() { ScanPage.RequestAutoFocus(); }
public override void ResumeAnalysis() { ScanPage?.ResumeAnalysis(); }
void PlatformAutoFocus() => ScanPage?.AutoFocus();
public override void PauseAnalysis() { ScanPage.RequestPauseAnalysis(); }