At.FF.Krems.FullscreenBrowser.PowerManagement.SetPowerReq C# (CSharp) 메소드

SetPowerReq() 공개 메소드

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.
리턴 void
        public void SetPowerReq(PowerThreadRequirements threadReq)
        {
            if (Bootstrapper.GetInstance<IBrowserConfiguration>().Config.DisablePowerManagement)
            {
                return;
            }

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