Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will it support to ionic 3 ? #105

Open
tamsel12 opened this issue Feb 10, 2020 · 1 comment
Open

Will it support to ionic 3 ? #105

tamsel12 opened this issue Feb 10, 2020 · 1 comment

Comments

@tamsel12
Copy link

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

@secretmoo35
Copy link

secretmoo35 commented Apr 10, 2020

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)
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants