cordova-plugin-mediaPicker icon indicating copy to clipboard operation
cordova-plugin-mediaPicker copied to clipboard

Will it support to ionic 3 ?

Open tamsel12 opened this issue 5 years ago • 1 comments

It seems , i am not able to import this plugin inside ts, How would be the import statement if it supports ionic ?

tamsel12 avatar Feb 10 '20 05:02 tamsel12

You can use on ionic 3

ionic cordova plugin add https://github.com/DmcSDK/cordova-plugin-mediaPicker.git --variable IOS_PHOTO_LIBRARY_USAGE_DESCRIPTION="your usage message"

let args = {
        "selectMode": 100, //101=picker image and video , 100=image , 102=video
        "maxSelectCount": 5,
        "maxSelectSize": 21000000 // 20mb
};

(window as any).MediaPicker.getMedias(args, (medias: any[]) => {
        console.log(medias);
}, (err: any) => {
        console.log(err)
});

secretmoo35 avatar Apr 10 '20 08:04 secretmoo35