Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

权限说明 bug #2969

Open
lishangwl opened this issue Jan 6, 2025 · 0 comments
Open

权限说明 bug #2969

lishangwl opened this issue Jan 6, 2025 · 0 comments

Comments

@lishangwl
Copy link

Current use version?

What version is currently in use?

v3.11.2

Will this problem occur in demo?

Can the Demo reproduce this problem?

able

Describe the problem or provide an error log?

Describe the problem or provide an error log?

    public static void camera(Activity activity, boolean isCrop, UCrop.Options options, OnResultCallbackListener<LocalMedia> callbackListener) {
        ImageCropEngine imageCropEngine = new ImageCropEngine() {
            @Override
            public UCrop.Options getOptions() {
                if (options == null) {
                    return super.getOptions();
                } else {
                    return options;
                }
            }
        };

        // Take photos alone
        PictureSelectionCameraModel cameraModel = PictureSelector.create(activity)
                .openCamera(SelectMimeType.ofImage())//Select type
                .setCameraInterceptListener(null)//Custom camera event
                .setCropEngine(isCrop ? imageCropEngine : null)// Cropping engine
                //.setRecordAudioInterceptListener(new MeOnRecordAudioInterceptListener())//Recording callback event
                //.setCropEngine(getCropFileEngine())
                .setCompressEngine(new ImageFileCompressEngine())//Compression engine
                //.setAddBitmapWatermarkListener(getAddBitmapWatermarkListener())//Add watermark to the picture
                //.setVideoThumbnailListener(getVideoThumbnailEventListener())//Processing video thumbnails
                //.setLanguage(language)
                //.setSandboxFileEngine(new MeSandboxFileEngine())//Customized sandbox file processing
                .isOriginalControl(true)// Whether to enable the original image function
                .setPermissionDescriptionListener(getPermissionDescriptionListener())//Permission description
                //.setOutputAudioDir(getSandboxAudioOutputPath())//Create a custom audio output directory
                //.setSelectedData(mAdapter.getData())//Set selected data
                ;
        cameraModel.forResultActivity(callbackListener);
    }  
单独拍照设置.setPermissionDescriptionListener(getPermissionDescriptionListener())// 权限说明  
没有显示权限说明
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant