Skip to content

Std permissions requestpermissions

std:std.permissions.RequestPermissions

Function RequestPermissions:Void( permissions:String[],finished:Void(ResultType[]) )#

Request android permissions.

This function is only available on android.

Attempts to grant the given permissions to the app.

Depending on the permissions, this may cause a modal dialog to be presented to the user.

The permission strings should be in android manifest form, eg: "android.permission.READ_EXTERNAL_STORAGE".

See this page for more permissions:

https://developer.android.com/reference/android/Manifest.permission

If the result is an empty array, the operation was cancelled.