IOS presentViewController response

plugins
ios

#1

Hello,

I am trying to build a custom plugin using this library: https://github.com/hackiftekhar/IQMediaPickerController

My code like this:

let controller = IQMediaPickerController.alloc().init();
controller.allowsPickingMultipleItems = true;
let app = utils.ios.getter(UIApplication, UIApplication.sharedApplication);
app.keyWindow.rootViewController.presentViewControllerAnimatedCompletion(controller, true, null)

It’s opening the activity but how can I get the result if user choose one file?

I tried like this:

controller.didFinishMediaWithInfo = function(res){
   console.dir(res);
}

But no luck :frowning: . Anyone can help me please :slight_smile: . Thanks in advance.