Would it be possible to receive a status/error response when calling a method? For example, if I call the print(String data) method it would be nice to have a response from the printer, which may include something like Unable to print, change label roll or Print sent successfully etc.
I though about adding a setMethodCallHandler inside the MainActivity.kt, but the MethodChannel is set to be different each time, so that's impossible to achieve. Moreover, if it was a direct return object from the methods, it would be extremely useful.
Thanks
Would it be possible to receive a status/error response when calling a method? For example, if I call the
print(String data)
method it would be nice to have a response from the printer, which may include something likeUnable to print, change label roll
orPrint sent successfully
etc. I though about adding asetMethodCallHandler
inside theMainActivity.kt
, but theMethodChannel
is set to be different each time, so that's impossible to achieve. Moreover, if it was a direct return object from the methods, it would be extremely useful. Thanks