Skip to content

PictureSelector 3.0 如何自定义权限申请 ?

Luck edited this page Jan 23, 2022 · 2 revisions
.setPermissionsInterceptListener(new OnPermissionsInterceptListener() {
     @Override
     public void requestPermission(Fragment fragment, String[] permissionArray, , OnRequestPermissionListener call) {
     	// 1、发起权限申请
     	// 2、call.onCall();返回申请状态	                                    
     }

     @Override
     public boolean hasPermissions(Fragment fragment, String[] permissionArray) {
     	// 验证权限是否申请成功
        return false;
     }
  });