android-multipicker-library icon indicating copy to clipboard operation
android-multipicker-library copied to clipboard

is Max limit possible for pick file ?

Open vishrut2207 opened this issue 7 years ago • 3 comments

I want to set max limit for image picker. is this a possible ?

vishrut2207 avatar Jan 17 '18 06:01 vishrut2207

@vishrut2207

You can do this to the CameraVideoPicker instance:

        CameraVideoPicker cameraVideoPicker = new CameraVideoPicker(this);
        ...
        Bundle bundle = new Bundle();
        bundle.putInt(MediaStore.EXTRA_DURATION_LIMIT, 300);
        cameraVideoPicker.setExtras(bundle);
        cameraVideoPicker.pickVideo();

You can see, any extra you set will be added to the intent used to launch a picker. https://github.com/coomar2841/android-multipicker-library/blob/0023fb894e15e441e07764680f286caa99744450/multipicker/src/main/java/com/kbeanie/multipicker/core/VideoPickerImpl.java#L106-L108

liuzhen2008 avatar Jan 17 '18 19:01 liuzhen2008

It's not possible to specify the size of the files.

coomar2841 avatar Jan 18 '18 00:01 coomar2841

Is it possible to set the maximum number of images or files to pick?

skined90 avatar Jan 17 '19 09:01 skined90