// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. namespace osu.Game.Utils { /// /// Provides access to the system's power status. /// public abstract class BatteryInfo { /// /// The charge level of the battery, from 0 to 1, or null if a battery isn't present. /// public abstract double? ChargeLevel { get; } /// /// Whether the current power source is the battery. /// /// /// This is false when the device is charging or doesn't have a battery. /// public abstract bool OnBattery { get; } } }