override fun onActivityResult(requestCode: Int, p1: Int, data: Intent?): Boolean { Doesnt reach here - Actually it should reach here as i have registered on the constructor of this plugin
}
constructor(registrar: Registrar) {
this.registrar = registrar
registrar.addActivityResultListener(this)
}
companion object {
@JvmStatic
fun registerWith(registrar: Registrar) {
val channel = MethodChannel(registrar.messenger(), "my_plugin")
val plugin = MyPlugin(registrar)
channel.setMethodCallHandler(plugin)
}
}
}