OSGetPowerPercentLeft Method |
Returns the amount of battery left in the device as a percentage. Returns -1 if power state is unknown.
Note: This method is implemented on Linux, macOS and Windows.
Namespace: Godot
public static int GetPowerPercentLeft()
[Missing <returns> documentation for "M:Godot.OS.GetPowerPercentLeft"]