MythiCode / zebra_utlity

MIT License
6 stars 26 forks source link

Would it be possible to receive a response from the printer? #19

Open aprizzo opened 9 months ago

aprizzo commented 9 months ago

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