Function printHTMLInPOSPrinter

  • We render the HTML in a WebKit out of window browser and do the bitmap splitting and send it to the printer. Please note that we can't guarantee the device has enough memory to execute this.

    Since

    0.1.7

    Parameters

    • htmlContent: String

      The HTML content you want us to render and print.

    • dialogMessage: null | String = null

      Default UI dialog main message.

    • dialogTitle: null | String = null

      Default UI dialog title.

    • useDefaultUI: Boolean = true

      Wheter to use Stone's default progress dialog or not.

    • progressCallbackEventName: ProgressEventName = 'PRINT_RECEIPT_IN_POS_PRINTER_PROGRESS'

      The native event name to map with the useNativeEventListener hook.

    Returns Promise<boolean>