void InitModifyScreenBrightness()
 {
     slider.onValueChanged.AddListener(newBrightness =>
     {
         if (!AGSettings.CanWriteSystemSettings())
         {
             AGUIMisc.ShowToast("Can't modify system settings because user did not allow it!");
             return;
         }
         AGSettings.SetSystemScreenBrightness(newBrightness);
     });
 }
        public void CheckIfAppCanWriteSystemSettings()
        {
            bool canWriteSystemSettings = AGSettings.CanWriteSystemSettings();

            AGUIMisc.ShowToast("Can write system settings? : " + canWriteSystemSettings);
        }