From 3dea5fd631c9513ed09b876f25e8bf6deff49683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 14 Feb 2020 13:43:28 +0100 Subject: Remove incomplete battery status/power API It was initially implemented in #5871 for Godot 3.0, but never really completed or thoroughly tested for most platforms. It then stayed in limbo and nobody seems really keen to finish it, so it's better to remove it in 4.0, and re-add eventually (possibly with a different API) if there's demand and an implementation confirmed working on all platforms. Closes #8770. --- doc/classes/OS.xml | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index b3b77b0b26..d361ea83e6 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -280,30 +280,6 @@ Returns the name of the host OS. Possible values are: [code]"Android"[/code], [code]"Haiku"[/code], [code]"iOS"[/code], [code]"HTML5"[/code], [code]"OSX"[/code], [code]"Server"[/code], [code]"Windows"[/code], [code]"UWP"[/code], [code]"X11"[/code]. - - - - - Returns the amount of battery left in the device as a percentage. Returns [code]-1[/code] if power state is unknown. - [b]Note:[/b] This method is implemented on Linux, macOS and Windows. - - - - - - - Returns an estimate of the time left in seconds before the device runs out of battery. Returns [code]-1[/code] if power state is unknown. - [b]Note:[/b] This method is implemented on Linux, macOS and Windows. - - - - - - - Returns the current state of the device regarding battery and power. See [enum PowerState] constants. - [b]Note:[/b] This method is implemented on Linux, macOS and Windows. - - @@ -1081,20 +1057,5 @@ Ringtones directory path. - - Unknown powerstate. - - - Unplugged, running on battery. - - - Plugged in, no battery available. - - - Plugged in, battery charging. - - - Plugged in, battery fully charged. - -- cgit v1.2.3