Skip to content

Commit 4474290

Browse files
committedSep 13, 2015
Restricted selection just for images
1 parent ae7b36c commit 4474290

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-obimagepicker",
3-
"version": "2.0.7",
3+
"version": "2.0.8",
44
"description": "Cordova file picker",
55
"main": "index.js",
66
"scripts": {

‎plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
id="ro.qualitance.obimagepicker"
5-
version="2.0.7">
5+
version="2.0.8">
66

77
<name>ObImagePicker</name>
88

‎src/ios/SOSPicker.m

+5-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ - (void) getPictures:(CDVInvokedUrlCommand *)command {
3030
imagePickerController.allowsMultipleSelection = YES;
3131
imagePickerController.showsNumberOfSelectedAssets = YES;
3232
imagePickerController.maximumNumberOfSelection = maximumImagesCount;
33-
33+
imagePickerController.assetCollectionSubtypes = @[
34+
@(PHAssetCollectionSubtypeSmartAlbumUserLibrary), // Camera Roll
35+
@(PHAssetCollectionSubtypeAlbumMyPhotoStream), // My Photo Stream
36+
@(PHAssetCollectionSubtypeSmartAlbumPanoramas), // Panoramas
37+
];
3438
self.callbackId = command.callbackId;
3539

3640
[self.viewController presentViewController:imagePickerController animated:YES completion:NULL];

0 commit comments

Comments
 (0)
Failed to load comments.