simkis
07/17/2017, 12:42 PMpublic interface Listener{
void success(Model model);
void error();
}
to make it useable from kotlin without annonymous inner class? Do I need to declare interface with only one method? Or there is some other workaround?
I want to use it like this
modelManager.identifyModelWithCameraUrl(cameraUrl) { cameraModel ->
}
minus
07/17/2017, 1:00 PMmakeListener(success = { model -> TODO() }, error = { TODO() })
. if that's nicer than just passing an anonymous class or not is another question. the same approach would work in java 8 too