This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dnf install kernel-devel kernel-headers gcc make dkms acpid libglvnd-glx libglvnd-opengl libglvnd-devel pkgconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BatteryMonitoring { | |
public static let BatteryDidChangeNotification = Notification.Name(rawValue: "BatteryStateNotifier.BatteryDidChangeNotification") | |
public static let shared = BatteryMonitoring() | |
private init() {} | |
public private(set) var state : WKInterfaceDeviceBatteryState = .unknown | |
// State will be an int between 0 and 100 if state is not .unknown, else -1 | |
public private(set) var level : Int = -1 |