2021-04-08 19:34:35 -04:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
namespace osu.Game.Utils
|
|
|
|
{
|
2021-04-09 17:55:41 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Provides access to the system's power status.
|
|
|
|
/// </summary>
|
2021-04-12 10:52:12 -04:00
|
|
|
public abstract class BatteryInfo
|
2021-04-08 19:34:35 -04:00
|
|
|
{
|
2021-04-09 17:55:41 -04:00
|
|
|
/// <summary>
|
|
|
|
/// The charge level of the battery, from 0 to 1.
|
|
|
|
/// </summary>
|
2021-04-11 09:11:28 +03:00
|
|
|
public abstract double ChargeLevel { get; }
|
2021-04-08 19:34:35 -04:00
|
|
|
|
2021-04-11 09:11:28 +03:00
|
|
|
public abstract bool IsCharging { get; }
|
2021-04-08 19:34:35 -04:00
|
|
|
}
|
|
|
|
}
|