C# uwp application prevent idle mode -


windows phone 8 had ability app prevent phone going lock screen: phoneapplicationservice.current.applicationidlemode = idledetectionmode.disabled ;

anybody know equivalent universal window platform?

you can use this:

var displayrequest = new windows.system.display.displayrequest(); displayrequest.requestactive(); 

but aware of fact requesting screen stay active. can not prevent user locking screen himself manually.


Comments