std.permissions.RequestPermissions - nitrologic/monkey2 GitHub Wiki

std::std.permissions.RequestPermissions

Function RequestPermissions:Void( permissions:monkey:monkey.types.String[],finished:Void(std:std.permissions.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".

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