Exemplo n.º 1
0
        protected void UpdateSystemSuspendLevel_MainThread()
        {
            // We'll use the maximum suspend level from main suspend level and player suspend level
            SuspendLevel value = _applicationSuspendLevel;

            _applicationSuspendLevel = value;
            if (_playerSuspendLevel > value)
            {
                value = _playerSuspendLevel;
            }
            EnergySavingConfig.SetCurrentSuspendLevel(value);
        }
Exemplo n.º 2
0
 protected void UpdateSystemSuspendLevel_MainThread()
 {
     EnergySavingConfig.SetCurrentSuspendLevel(_applicationSuspendLevel);
 }