osu/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
..
Break
HUD Update existing usages 2021-03-13 06:09:07 +03:00
PlayerSettings Added beatmap colour settings checkbox and associated tests. 2021-01-13 00:09:22 -05:00
BeatmapMetadataDisplay.cs Flip order back to original for romanisable strings 2021-02-25 14:14:07 +09:00
BreakOverlay.cs
BreakTracker.cs Call break time update when loaded 2021-02-06 20:54:13 +03:00
ComboEffects.cs
DimmableStoryboard.cs
EpilepsyWarning.cs Ensure that all changes to screen backgrounds are on the correct thread 2021-01-05 15:22:50 +09:00
FailAnimation.cs Initial sample + samplechannel rework 2021-01-19 17:11:40 +09:00
FailOverlay.cs
GameplayBeatmap.cs Merge branch 'master' into more-accurate-most-common-bpm 2021-02-08 18:40:58 +09:00
GameplayClock.cs
GameplayClockContainer.cs Fix Storyboard's FirstEventTime not finding the true earliest event 2021-01-04 15:16:01 +09:00
GameplayMenuOverlay.cs
HotkeyExitOverlay.cs
HotkeyRetryOverlay.cs
HUDOverlay.cs Add leaderboard display to realtime player 2020-12-22 19:10:08 +09:00
ISamplePlaybackDisabler.cs
KeyCounter.cs
KeyCounterAction.cs
KeyCounterDisplay.cs
KeyCounterKeyboard.cs
KeyCounterMouse.cs
KeyCounterState.cs
PauseOverlay.cs
Player.cs Remove all references to "score submission" from Player 2021-03-23 18:20:55 +09:00
PlayerConfiguration.cs Disallow skipping in multiplayer for now 2020-12-24 16:29:51 +09:00
PlayerLoader.cs Send a warning notification if device is unplugged and low battery 2021-04-07 15:56:50 -04:00
ReplayPlayer.cs Move player constructor configuration to dedicated class; add AllowRestart parameter 2020-12-23 17:47:46 +09:00
ReplayPlayerLoader.cs
ResumeOverlay.cs
RoomSubmittingPlayer.cs Change RoomSubmittingPlayer's request implementation to return null on RoomID missing, rather than silently succeeding 2021-03-24 13:23:23 +09:00
ScreenSuspensionHandler.cs Apply changes to AllowScreenSuspension bindable 2021-04-07 21:20:44 +09:00
ScreenWithBeatmapBackground.cs Ensure that all changes to screen backgrounds are on the correct thread 2021-01-05 15:22:50 +09:00
SkipOverlay.cs Initial sample + samplechannel rework 2021-01-19 17:11:40 +09:00
SoloPlayer.cs Reorder overrides in SoloPlayer to better follow chronological request order 2021-03-24 13:12:51 +09:00
SoloSpectator.cs Schedule spectator callbacks 2021-04-02 21:27:20 +09:00
SongProgress.cs
SongProgressBar.cs
SongProgressGraph.cs
SongProgressInfo.cs
SpectatorPlayer.cs
SpectatorPlayerLoader.cs
SpectatorResultsScreen.cs
SquareGraph.cs
SubmittingPlayer.cs Extract majority of token retrieval code out of LoadComponentAsync for legibility 2021-03-25 13:48:41 +09:00