Add OS.get_external_data_dir() to get Android external directory

This commit is contained in:
Marcel Admiraal 2021-06-08 17:43:10 +01:00
parent 9539e4e39e
commit b3a962945e
10 changed files with 64 additions and 17 deletions

View file

@ -221,6 +221,13 @@
Returns the path to the current engine executable.
</description>
</method>
<method name="get_external_data_dir" qualifiers="const">
<return type="String">
</return>
<description>
On Android, returns the absolute directory path where user data can be written to external storage if available. On all other platforms, this will return the same location as [method get_user_data_dir].
</description>
</method>
<method name="get_granted_permissions" qualifiers="const">
<return type="PackedStringArray">
</return>