Files
osukey/osu.Game/Screens/Play
Christine Chen 0a6baf670e Send a warning notification if device is unplugged and low battery
- Uses Xamarin.Essentials in osu.Game.PlayerLoader to check battery level
- Encapsulated battery checking in the public BatteryManager class so battery level and plugged in status can be accessed and edited in TestPlayerLoader
- When checking battery level, catch NotImplementedException thrown by Xamarin.Essentials.Battery on non-mobile platforms
- Added visual unit tests for battery notification
  To mock battery status and level, we had to define a batteryManager object in TestPlayerLoader and add a new function ResetPlayerWithBattery()

Co-Authored-By: Marlina José <marlina@umich.edu>
2021-04-07 15:56:50 -04:00
..
2020-03-16 16:32:25 -07:00
2021-03-13 06:09:07 +03:00
2020-05-04 18:36:24 -07:00
2020-05-20 15:08:33 +09:00
2020-10-27 14:10:12 +09:00
2020-05-04 18:36:24 -07:00
2020-06-15 20:32:27 +09:00
2021-04-02 21:27:20 +09:00
2019-11-25 22:37:07 +09:00
2020-11-03 20:10:13 +09:00
2020-02-24 20:52:15 +09:00