Display Request in Universal Windows Program

Display Request class use to keep screen always activate state, means did you noticed in mobile or tablet or Laptops, if you not use the system after some point of time screen go to the sleep mode (default user can set this option), to avoid this in your application, you can use the Display Request so that screen always in activate mode

Where to use this option: Mostly media based application we can use this option like video playing, if video playing user no need to interact with application, this time enable this option screen always to activate state and video continues playing screen won’t go to sleep mode.

And some of the Form based application, let say suppose if user fill application, this time they will refer external source, this time no need to allow screen to sleep mode.

Note: Don’t always use this option because if easily power going to down

Let see simple example handle the activate button enable Display Request option & Deactivate button release the Display Request option

DisplayRequest class: Access the screen display adapter
RequestActive: Screen activate mode
RequestRelease: Screen activate release mode

image

Written static class, where need to activate the screen display call the Enable function.

True: Screen display activate, false: release the screen display.

function
function

AcitvateRing is process ring control,

AcitvateRing

Ebook Download
View all
Learn
View all