How to properly get results from mlkit?
I'm working on my first android app and I'm trying to do some OCR using mlkit. I've written a class that receives several images, analyses them and save results in a room database, and this part works. However I can't get the return on the code that uses the class (I'm assuming because it's async - correct me if I'm wrong). Here's the code where I call my class:
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)...