checkPermissions

external fun <T> checkPermissions(plugin: String): Promise<T>(source)

Get permission state for a plugin.

This should be used by plugin authors to wrap their actual implementation, it calls the plugin:<name>|check_permissions command implemented by the mobile plugin and returns its permission status object without prompting the user.

Since

2.0.0

Parameters

plugin

The plugin name, as used in the plugin:<name>|<command> IPC command format.