private boolean verifyPermissions(@NonNull int[] grantResults) {
        if (grantResults.length < 1) {
            return false;
        }
        for (int result : grantResults) {
            if (result != PackageManager.PERMISSION_GRANTED) {
                return false;
            }
        }
        return true;
    }
private boolean verifyPermissions ( @ NonNull int [ ] grantResults ) { if ( grantResults . length < 1 ) { return false ; } for ( int result : grantResults ) { if ( result != PackageManager . PERMISSION_GRANTED ) { return false ; } } return true ; }
internal usage.