Click or drag to resize

OSGetPowerSecondsLeft Method

Returns an estimate of the time left in seconds before the device runs out of battery. Returns -1 if power state is unknown.

Note: This method is implemented on Linux, macOS and Windows.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static int GetPowerSecondsLeft()

Return Value

Type: Int32

[Missing <returns> documentation for "M:Godot.OS.GetPowerSecondsLeft"]

See Also