Click or drag to resize

OSGetPowerState Method

Returns the current state of the device regarding battery and power. See OSPowerState constants.

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 OSPowerState GetPowerState()

Return Value

Type: OSPowerState

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

See Also