docs: public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
      switch (requestCode) {
        case REQUEST_PERMISSIONS_CODE:
          if (listener != null) {
            boolean granted = grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED;
            listener.onPermissionResult(granted);
          }
          break;
        default:
          // Ignored
      }
    }