mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
classref: Sync with current master branch (e37c626)
This commit is contained in:
@@ -54,6 +54,8 @@ Methods
|
||||
.. table::
|
||||
:widths: auto
|
||||
|
||||
+---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| |void| | :ref:`add_logger<class_OS_method_add_logger>`\ (\ logger\: :ref:`Logger<class_Logger>`\ ) |
|
||||
+---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| |void| | :ref:`alert<class_OS_method_alert>`\ (\ text\: :ref:`String<class_String>`, title\: :ref:`String<class_String>` = "Alert!"\ ) |
|
||||
+---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
@@ -183,6 +185,8 @@ Methods
|
||||
+---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`String<class_String>` | :ref:`read_string_from_stdin<class_OS_method_read_string_from_stdin>`\ (\ buffer_size\: :ref:`int<class_int>` = 1024\ ) |
|
||||
+---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| |void| | :ref:`remove_logger<class_OS_method_remove_logger>`\ (\ logger\: :ref:`Logger<class_Logger>`\ ) |
|
||||
+---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`request_permission<class_OS_method_request_permission>`\ (\ name\: :ref:`String<class_String>`\ ) |
|
||||
+---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`request_permissions<class_OS_method_request_permissions>`\ (\ ) |
|
||||
@@ -446,6 +450,18 @@ The amount of sleeping between frames when the low-processor usage mode is enabl
|
||||
Method Descriptions
|
||||
-------------------
|
||||
|
||||
.. _class_OS_method_add_logger:
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **add_logger**\ (\ logger\: :ref:`Logger<class_Logger>`\ ) :ref:`🔗<class_OS_method_add_logger>`
|
||||
|
||||
Add a custom logger to intercept the internal message stream.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _class_OS_method_alert:
|
||||
|
||||
.. rst-class:: classref-method
|
||||
@@ -919,7 +935,7 @@ Returns the file path to the current engine executable.
|
||||
|
||||
On Android devices: Returns the list of dangerous permissions that have been granted.
|
||||
|
||||
On macOS: Returns the list of user selected folders accessible to the application (sandboxed applications only). Use the native file dialog to request folder access permission.
|
||||
On macOS: Returns the list of granted permissions and user selected folders accessible to the application (sandboxed applications only). Use the native file dialog to request folder access permission.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -1719,6 +1735,18 @@ Reads a user input as a UTF-8 encoded string from the standard input. This opera
|
||||
|
||||
----
|
||||
|
||||
.. _class_OS_method_remove_logger:
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **remove_logger**\ (\ logger\: :ref:`Logger<class_Logger>`\ ) :ref:`🔗<class_OS_method_remove_logger>`
|
||||
|
||||
Remove a custom logger added by :ref:`add_logger()<class_OS_method_add_logger>`.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _class_OS_method_request_permission:
|
||||
|
||||
.. rst-class:: classref-method
|
||||
@@ -1733,9 +1761,11 @@ The ``name`` must be the full permission name. For example:
|
||||
|
||||
- ``OS.request_permission("android.permission.POST_NOTIFICATIONS")``\
|
||||
|
||||
\ **Note:** Permission must be checked during export.
|
||||
- ``OS.request_permission("macos.permission.RECORD_SCREEN")``\
|
||||
|
||||
\ **Note:** This method is only implemented on Android.
|
||||
\ **Note:** On Android, permission must be checked during export.
|
||||
|
||||
\ **Note:** This method is implemented on Android and macOS.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
|
||||
Reference in New Issue
Block a user