cordova-plugin-mediaPicker
cordova-plugin-mediaPicker copied to clipboard
Will it support to ionic 3 ?
It seems , i am not able to import this plugin inside ts, How would be the import statement if it supports ionic ?
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)
});