react-native-printer-imin 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -623,6 +623,19 @@ public class PrinterIminModule extends ReactContextBaseJavaModule {
|
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
|
|
626
|
+
@ReactMethod
|
|
627
|
+
public void openCashBox(final Promise promise) {
|
|
628
|
+
try {
|
|
629
|
+
if (iminPrintUtils != null) {
|
|
630
|
+
iminPrintUtils.openCashBox();
|
|
631
|
+
}
|
|
632
|
+
promise.resolve(null);
|
|
633
|
+
} catch (Exception e) {
|
|
634
|
+
promise.reject("openCashBox_failed", e.getMessage());
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
}
|
|
638
|
+
|
|
626
639
|
@ReactMethod
|
|
627
640
|
public void setInitIminPrinter(boolean isDefault, final Promise promise) {
|
|
628
641
|
try {
|