UnityNativeGallery icon indicating copy to clipboard operation
UnityNativeGallery copied to clipboard

Can we restrict number of images to be picked

Open laxayyy opened this issue 3 years ago • 7 comments

Does the plugin support to restrict the number of images to be picked when using GetImagesFromGallery.

For example - in android/iOS file selector, restrict the input images to 10

laxayyy avatar Apr 16 '22 13:04 laxayyy

It's possible only on iOS by changing the last parameter to 10: https://github.com/yasirkula/UnityNativeGallery/blob/62de2dc50ab85e57fafa105909247470155a4ad7/Plugins/NativeGallery/NativeGallery.cs#L625

yasirkula avatar Apr 16 '22 14:04 yasirkula

Is there any way we can restrict them in Android also?

yashs-devstree avatar Jun 28 '22 06:06 yashs-devstree

Unfortunately not, not with NativeGallery.

yasirkula avatar Jun 28 '22 06:06 yasirkula

Is there a solution now for Android?

itkwtl1487 avatar Apr 17 '24 07:04 itkwtl1487

NativeGallery still doesn't support it.

yasirkula avatar Apr 17 '24 09:04 yasirkula

Can you provide the android code project? please

itkwtl1487 avatar Apr 17 '24 09:04 itkwtl1487

Of course: https://github.com/yasirkula/UnityNativeGallery/tree/master/.github/AAR%20Source%20(Android)

yasirkula avatar Apr 17 '24 13:04 yasirkula