|
@@ -747,14 +747,19 @@
|
|
<return type="bool" />
|
|
<return type="bool" />
|
|
<param index="0" name="name" type="String" />
|
|
<param index="0" name="name" type="String" />
|
|
<description>
|
|
<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>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="request_permissions">
|
|
<method name="request_permissions">
|
|
<return type="bool" />
|
|
<return type="bool" />
|
|
<description>
|
|
<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.
|
|
[b]Note:[/b] This method is only implemented on Android. Normal permissions are automatically granted at install time in Android applications.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|