Skip to main content

addViewShot

static Printer.addViewShot​

Prints image captured from React Native View

Parameters​

printerInstance​

  • Printer

Printer instance defined by calling new Printer(...).

params​

Returns​

Promise<void>

Errors​

Error statusDescription
ERR_PARAMAn invalid parameter was passed.
ERR_TIMEOUTFailed to communicate with the devices within the specified time.
ERR_MEMORYNecessary memory could not be allocated.
CODE_ERR_AUTORECOVERAutomatic recovery error occurred.
CODE_ERR_COVER_OPENCover open error occurred.
CODE_ERR_CUTTERAuto cutter error occurred.
CODE_ERR_MECHANICALMechanical error occurred.
CODE_ERR_EMPTYNo paper is left in the roll paper end detector.
CODE_ERR_PARAMAn invalid parameter was passed.
CODE_ERR_MEMORYMemory necessary for processing could not be allocated.
CODE_ERR_TIMEOUTPrint timeout occurred.
CODE_ERR_PROCESSINGCould not run the process.
CODE_ERR_ILLEGALThis API was called while no communication had been started.
CODE_ERR_FAILUREError exists in the requested document syntax.

Supplementary explanation​