coomar2841 / android-multipicker-library

Android Multipicker Library
Apache License 2.0
439 stars 107 forks source link

is Max limit possible for pick file ? #124

Open vishrut2207 opened 6 years ago

vishrut2207 commented 6 years ago

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

liuzhen2008 commented 6 years ago

@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

coomar2841 commented 6 years ago

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

skined90 commented 5 years ago

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