public PermissionRequestObject ask(int reqCode){
  mRequestCode=reqCode;
  int length=mPermissionNames.length;
  mPermissionsWeDontHave=new ArrayList<>(length);
  for (  String mPermissionName : mPermissionNames) {
    mPermissionsWeDontHave.add(new SinglePermission(mPermissionName));
  }
  if (needToAsk()) {
    Log.i(TAG,"Asking for permission");
    if (mActivity != null) {
      ActivityCompat.requestPermissions(mActivity,mPermissionNames,reqCode);
    }
 else {
      mFragment.requestPermissions(mPermissionNames,reqCode);
    }
  }
 else {
    Log.i(TAG,"No need to ask for permission");
    if (mGrantFunc != null) {
      mGrantFunc.call();
    }
  }
  return this;
}

public PermissionRequestObject ask ( int reqCode ) { mRequestCode = reqCode ; int length = mPermissionNames . length ; mPermissionsWeDontHave = new ArrayList < > ( length ) ; for ( String mPermissionName : mPermissionNames ) { mPermissionsWeDontHave . add ( new SinglePermission ( mPermissionName ) ) ; } if ( needToAsk ( ) ) { Log . i ( TAG , "Asking for permission" ) ; if ( mActivity != null ) { ActivityCompat . requestPermissions ( mActivity , mPermissionNames , reqCode ) ; } else { mFragment . requestPermissions ( mPermissionNames , reqCode ) ; } } else { Log . i ( TAG , "No need to ask for permission" ) ; if ( mGrantFunc != null ) { mGrantFunc . call ( ) ; } } return this ; }
execute the permission request with the given request code
