At.FF.Krems.FullscreenBrowser.PowerManagement.SetPowerReq C# (CSharp) Method

SetPowerReq() public method

Set the power requirements for the current application, e.g. Hold display and system from suspend.
public SetPowerReq ( PowerThreadRequirements threadReq ) : void
threadReq PowerThreadRequirements Flag stating suspend mode, or release.
return void
        public void SetPowerReq(PowerThreadRequirements threadReq)
        {
            if (Bootstrapper.GetInstance<IBrowserConfiguration>().Config.DisablePowerManagement)
            {
                return;
            }

            // Set application power requirments
            NativeMethods.SetThreadExecutionState(threadReq);
        }