Ejemplo n.º 1
0
 /**
  * Requests a "dangerous" permission for the application at runtime. This is a helper method
  * alternative to cordovaInterface.requestPermission() that does not require the project to be
  * built with cordova-android 5.0.0+
  *
  * @param plugin The plugin the permission is being requested for
  * @param requestCode A requestCode to be passed to the plugin's onRequestPermissionResult() along
  *     with the result of the permission request
  * @param permission The permission to be requested
  */
 public static void requestPermission(CordovaPlugin plugin, int requestCode, String permission) {
   PermissionHelper.requestPermissions(plugin, requestCode, new String[] {permission});
 }