Skip to content

权限说明 bug #2969

@lishangwl

Description

@lishangwl

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())// 权限说明  
没有显示权限说明

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions