mirror of https://github.com/godotengine/godot
Update OS.request_permission(...) description
This commit is contained in:
parent
0f95e9f8e6
commit
b50d9b7d8c
|
|
@ -747,14 +747,19 @@
|
|||
<return type="bool" />
|
||||
<param index="0" name="name" type="String" />
|
||||
<description>
|
||||
Requests permission from the OS for the given [param name]. Returns [code]true[/code] if the permission has been successfully granted.
|
||||
[b]Note:[/b] This method is currently only implemented on Android, to specifically request permission for [code]"RECORD_AUDIO"[/code] by [code]AudioDriverOpenSL[/code].
|
||||
Requests permission from the OS for the given [param name]. Returns [code]true[/code] if the permission has already been granted. See also [signal MainLoop.on_request_permissions_result].
|
||||
The [param name] must be the full permission name. For example:
|
||||
- [code]OS.request_permission("android.permission.READ_EXTERNAL_STORAGE")[/code]
|
||||
- [code]OS.request_permission("android.permission.POST_NOTIFICATIONS")[/code]
|
||||
[b]Note:[/b] Permission must be checked during export.
|
||||
[b]Note:[/b] This method is only implemented on Android.
|
||||
</description>
|
||||
</method>
|
||||
<method name="request_permissions">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Requests [i]dangerous[/i] permissions from the OS. Returns [code]true[/code] if permissions have been successfully granted.
|
||||
Requests [i]dangerous[/i] permissions from the OS. Returns [code]true[/code] if permissions have already been granted. See also [signal MainLoop.on_request_permissions_result].
|
||||
[b]Note:[/b] Permissions must be checked during export.
|
||||
[b]Note:[/b] This method is only implemented on Android. Normal permissions are automatically granted at install time in Android applications.
|
||||
</description>
|
||||
</method>
|
||||
|
|
|
|||
Loading…
Reference in New Issue