How to prevent display in task switcher in UWP

When you open the task switcher on your Windows phone (click the "Windows" button), you can see a preview of all the applications that are currently in Suspended mode. (see screenshot) Windows Phone 10 Task Switch I think that windows, like most mobile operating systems, take a screenshot of the application that will be used in the task switch.

My application processes sensitive data, and I do not want a screenshot with, say, a password on it to be taken automatically.

My idea was to display a blank image that covers the entire screen when called OnSuspending. Unfortunately, the screen shot was already taken at that time, so it's too late.

?

+4
1
  • , : "" .
  • ( ) - IsScreenCaptureEnabled, .

:

protected override void OnNavigatedTo(NavigationEventArgs e)
{
    // Disable screen capture when the user navigates to this page.
    Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().IsScreenCaptureEnabled = false;
}

OS, . - , .

  1. - . , - " ". . , , , OS : ", ".

, UserVoice ?

+1

All Articles