tr3v3r / react-native-esc-pos-printer

An unofficial React Native library for printing on an EPSON TM printer with the Epson ePOS SDK for iOS and Epson ePOS SDK for Android
MIT License
164 stars 71 forks source link

Determine if cut label is still in the printer? #105

Open nullfox opened 1 year ago

nullfox commented 1 year ago

It seems like the Android SDK has a property called removalWaiting that if I'm understanding correctly, correlates to a print that has been sent and cut but hasn't been pulled away from the printer. Am I understanding the purpose of removalWaiting?

It doesn't look like that removalWaiting has been implemented in this library and I'm curious about the amount of effort required to expose this?

It looks like it's been partially implemented here: https://github.com/tr3v3r/react-native-esc-pos-printer/blob/18c976f549658a5c232b389cb0eac563e903f2cf/android/src/main/java/com/reactnativeescposprinter/EposStringHelper.java#L229-L240 but is using variables prefixed with EVENT_ which the other switch blocks aren't.

It also doesn't look like paperWait is coming back in the status monitor or the result of the print send() command?