3

Windows Phone 8 had the ability for your app to prevent the phone from going to the lock screen: PhoneApplicationService.Current.ApplicationIdleMode = IdleDetectionMode.Disabled ;

Anybody know what the equivalent is for Universal Window Platform?

1
  • The answer to the linked question should work. Link Commented Jan 24, 2016 at 22:21

1 Answer 1

8

You can use this:

var displayRequest = new Windows.System.Display.DisplayRequest(); displayRequest.RequestActive(); 

But be aware of the fact that you are just requesting the screen to stay active. This can not prevent the user from locking the screen by himself manually.

Sign up to request clarification or add additional context in comments.

1 Comment

Excellent! It works! Vielen Dank!! Jetzt kann ich mein App benutzen.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.