{
  "api": {
    "name": "SunmiPrinterPlugin",
    "slug": "sunmiprinterplugin",
    "docs": "",
    "tags": [],
    "methods": [
      {
        "name": "bindService",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [],
        "docs": "bind print service",
        "complexTypes": [],
        "slug": "bindservice"
      },
      {
        "name": "unBindService",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [],
        "docs": "unbind print service",
        "complexTypes": [],
        "slug": "unbindservice"
      },
      {
        "name": "getServiceStatus",
        "signature": "() => Promise<{ status: ServiceStatusEnum; }>",
        "parameters": [],
        "returns": "Promise<{ status: ServiceStatusEnum; }>",
        "tags": [],
        "docs": "Get the print service current status",
        "complexTypes": [
          "ServiceStatusEnum"
        ],
        "slug": "getservicestatus"
      },
      {
        "name": "printerInit",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.1 Printer initialization and setting"
          }
        ],
        "docs": "Printer initialization\n\nNote: reset the printer's logical program, such as typography, bold, etc., without emptying the cached data, then the unfinished print tasks will continue after resetting.",
        "complexTypes": [],
        "slug": "printerinit"
      },
      {
        "name": "printerSelfChecking",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.1 Printer initialization and setting"
          }
        ],
        "docs": "Printer self-checking",
        "complexTypes": [],
        "slug": "printerselfchecking"
      },
      {
        "name": "getPrinterSerialNo",
        "signature": "() => Promise<{ serial_number: string; }>",
        "parameters": [],
        "returns": "Promise<{ serial_number: string; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.1 Printer initialization and setting"
          }
        ],
        "docs": "Get the printer’s serial no.",
        "complexTypes": [],
        "slug": "getprinterserialno"
      },
      {
        "name": "getPrinterModel",
        "signature": "() => Promise<{ model: string; }>",
        "parameters": [],
        "returns": "Promise<{ model: string; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.2 Get device and printer information"
          }
        ],
        "docs": "Get the interface of printer model",
        "complexTypes": [],
        "slug": "getprintermodel"
      },
      {
        "name": "getPrinterVersion",
        "signature": "() => Promise<{ version: string; }>",
        "parameters": [],
        "returns": "Promise<{ version: string; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.2 Get device and printer information"
          }
        ],
        "docs": "Get the printer’s firmware version no.",
        "complexTypes": [],
        "slug": "getprinterversion"
      },
      {
        "name": "getDeviceName",
        "signature": "() => Promise<{ name: string; }>",
        "parameters": [],
        "returns": "Promise<{ name: string; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.2 Get device and printer information"
          }
        ],
        "docs": "Device name",
        "complexTypes": [],
        "slug": "getdevicename"
      },
      {
        "name": "updatePrinterState",
        "signature": "() => Promise<{ status: PrinterStatusEnum; code: number; }>",
        "parameters": [],
        "returns": "Promise<{ status: PrinterStatusEnum; code: number; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.2 Get device and printer information"
          }
        ],
        "docs": "Get the printer’s latest status\n\n1 → Printer is under normal operation\n2 → Printer is under preparation\n3 → Communication is abnormal\n4 → Out of paper\n5 → Overheated\n6 → Cover is open\n7 → Cutter error\n8 → Cutter recovered\n9 → Black mark not detected\n505 → Printer not detected\n507 → Printer firmware update failed\n\nNote 1: these return values are applicable to all SUNMI devices, but some status can’t be obtained due to hardware configuration. For example, cover open detection is not applicable to handheld devices.\n\nNote 2: V1 devices currently can’t support this interface; you can also get it asynchronously by registering broadcast apart from getting status proactively",
        "complexTypes": [
          "PrinterStatusEnum"
        ],
        "slug": "updateprinterstate"
      },
      {
        "name": "getServiceVersion",
        "signature": "() => Promise<{ version: string; }>",
        "parameters": [],
        "returns": "Promise<{ version: string; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.2 Get device and printer information"
          }
        ],
        "docs": "Get the printing service version no.",
        "complexTypes": [],
        "slug": "getserviceversion"
      },
      {
        "name": "getPrintedLength",
        "signature": "() => Promise<{ length: number; }>",
        "parameters": [],
        "returns": "Promise<{ length: number; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.2 Get device and printer information"
          }
        ],
        "docs": "Get the print length of the printhead\n\nNote: currently you can get the printed length since powering on the device.\n\nDue to the hardware differences between desktop devices and handheld devices, the returns of printing results may vary. In other words, you can get the printed length through ICallback callback interface for handheld devices, and get the printed length directly through the return values for desktop devices.",
        "complexTypes": [],
        "slug": "getprintedlength"
      },
      {
        "name": "getPrinterPaper",
        "signature": "() => Promise<{ paper: number; }>",
        "parameters": [],
        "returns": "Promise<{ paper: number; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.2 Get device and printer information"
          }
        ],
        "docs": "Get the printer’s current paper specification\n\nNote 1: by default, 58mm paper specification is adopted for handheld printers, and 80mm paper specification for desktop printers but you can add a fixator and set the printer to use a 58mm paper roll by configuration, and the interface will return the current paper specification set for the printer.\n\nNote 2: currently, desktop device T1 model with versions above v2.4.0 supports this interface; T2 and S2 models with versions above v1.0.5 support this interface; for other device models with versions above v4.1.2, they all support this interface for getting paper specification.",
        "complexTypes": [],
        "slug": "getprinterpaper"
      },
      {
        "name": "sendRAWData",
        "signature": "(options: { data: string; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ data: string; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.3 ESC/POS commands"
          }
        ],
        "docs": "Commands of printing ESC/POS format",
        "complexTypes": [],
        "slug": "sendrawdata"
      },
      {
        "name": "sendRAWBase64Data",
        "signature": "(options: { data: string; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ data: string; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.3 ESC/POS commands"
          }
        ],
        "docs": "Commands of printing ESC/POS format encoded in Base64",
        "complexTypes": [],
        "slug": "sendrawbase64data"
      },
      {
        "name": "setPrinterStyle",
        "signature": "(options: { key: PrinterStyleKeysEnum; value: number | PrinterStyleValuesEnum; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ key: PrinterStyleKeysEnum; value: number | PrinterStyleValuesEnum; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.4 Instruction for printer style setting interface"
          }
        ],
        "docs": "Set printer style\n\nParameter: set the const class by referring to WoyouConsts.java printer style.\n\nkey → set different attributes according to the definition in the const class interface, usually being ENABLE_XXX and SET_XXX.\n\nvalue → set status or size corresponding to the attributes\nSelect ENABLE or DISABLE for ENABLE XXX attribute.\nSet the detailed size for SET_XXX attribute.\n\nNote: this interface is available for the printing service with versions above v4.2.22.",
        "complexTypes": [
          "PrinterStyleKeysEnum",
          "PrinterStyleValuesEnum"
        ],
        "slug": "setprinterstyle"
      },
      {
        "name": "setDoubleWidthPrintStyle",
        "signature": "(options: { enable: boolean; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ enable: boolean; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets double-width print style",
        "complexTypes": [],
        "slug": "setdoublewidthprintstyle"
      },
      {
        "name": "setDoubleHeightPrintStyle",
        "signature": "(options: { enable: boolean; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ enable: boolean; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets double-height print style",
        "complexTypes": [],
        "slug": "setdoubleheightprintstyle"
      },
      {
        "name": "setBoldPrintStyle",
        "signature": "(options: { enable: boolean; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ enable: boolean; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets bold print style",
        "complexTypes": [],
        "slug": "setboldprintstyle"
      },
      {
        "name": "setUnderlinePrintStyle",
        "signature": "(options: { enable: boolean; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ enable: boolean; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets underline print style",
        "complexTypes": [],
        "slug": "setunderlineprintstyle"
      },
      {
        "name": "setAntiWhitePrintStyle",
        "signature": "(options: { enable: boolean; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ enable: boolean; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets anti-white print style",
        "complexTypes": [],
        "slug": "setantiwhiteprintstyle"
      },
      {
        "name": "setStrikethroughPrintStyle",
        "signature": "(options: { enable: boolean; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ enable: boolean; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets strikethrough print style",
        "complexTypes": [],
        "slug": "setstrikethroughprintstyle"
      },
      {
        "name": "setItalicPrintStyle",
        "signature": "(options: { enable: boolean; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ enable: boolean; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets italic print style",
        "complexTypes": [],
        "slug": "setitalicprintstyle"
      },
      {
        "name": "setInvertPrintStyle",
        "signature": "(options: { enable: boolean; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ enable: boolean; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets inverted print style",
        "complexTypes": [],
        "slug": "setinvertprintstyle"
      },
      {
        "name": "setTextRightSpacingPrintStyle",
        "signature": "(options: { value: number; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ value: number; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets text right spacing print style",
        "complexTypes": [],
        "slug": "settextrightspacingprintstyle"
      },
      {
        "name": "setRelativePositionPrintStyle",
        "signature": "(options: { value: number; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ value: number; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets relative position print style",
        "complexTypes": [],
        "slug": "setrelativepositionprintstyle"
      },
      {
        "name": "setAbsolutePositionPrintStyle",
        "signature": "(options: { value: number; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ value: number; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets absolute position print style",
        "complexTypes": [],
        "slug": "setabsolutepositionprintstyle"
      },
      {
        "name": "setLineSpacingPrintStyle",
        "signature": "(options: { value: number; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ value: number; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets line spacing print style",
        "complexTypes": [],
        "slug": "setlinespacingprintstyle"
      },
      {
        "name": "setLeftSpacingPrintStyle",
        "signature": "(options: { value: number; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ value: number; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets left spacing print style",
        "complexTypes": [],
        "slug": "setleftspacingprintstyle"
      },
      {
        "name": "setStrikethroughStylePrintStyle",
        "signature": "(options: { value: number; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ value: number; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "setPrinterStyle"
          }
        ],
        "docs": "Sets strikethrough style print style",
        "complexTypes": [],
        "slug": "setstrikethroughstyleprintstyle"
      },
      {
        "name": "SetLeftMargin",
        "signature": "(options: { width: number; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ width: number; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [],
        "docs": "Sets the left margin",
        "complexTypes": [],
        "slug": "setleftmargin"
      },
      {
        "name": "SetPrintingAreaWidth",
        "signature": "(options: { width: number; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ width: number; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [],
        "docs": "Set printing area width",
        "complexTypes": [],
        "slug": "setprintingareawidth"
      },
      {
        "name": "getPrinterMode",
        "signature": "() => Promise<{ mode: PrinterModeEnum; code: number; }>",
        "parameters": [],
        "returns": "Promise<{ mode: PrinterModeEnum; code: number; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.5 Change print mode"
          }
        ],
        "docs": "Get printer mode\n\nReturn value:\n\n0 → General mode\n1 → Black mark mode\n2 → Label mode\n\nNote: black mark mode currently is available for SUNMI T1, T2 desktop terminals; Label mode currently is available for SUNMI V2, V2 Pro handheld terminals.",
        "complexTypes": [
          "PrinterModeEnum"
        ],
        "slug": "getprintermode"
      },
      {
        "name": "isLabelMode",
        "signature": "() => Promise<{ label_mode: boolean; }>",
        "parameters": [],
        "returns": "Promise<{ label_mode: boolean; }>",
        "tags": [
          {
            "name": "see",
            "text": "getPrinterMode"
          }
        ],
        "docs": "Checks whether the printer is in label mode",
        "complexTypes": [],
        "slug": "islabelmode"
      },
      {
        "name": "getPrinterBBMDistance",
        "signature": "() => Promise<{ distance: number; }>",
        "parameters": [],
        "returns": "Promise<{ distance: number; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.5 Change print mode"
          }
        ],
        "docs": "Get paper moving distance set under black mark mode\n\nReturn value: paper moving distance (number of pixels)\n\nNote: only available for T1, T2 devices.",
        "complexTypes": [],
        "slug": "getprinterbbmdistance"
      },
      {
        "name": "setAlignment",
        "signature": "(options: { alignment: AlignmentModeEnum; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ alignment: AlignmentModeEnum; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.6 Text printing"
          }
        ],
        "docs": "Set alignment mode.\n\nNote: global method may influence the subsequent print implementation, and you can cancel the related settings when initializing the printer.",
        "complexTypes": [
          "AlignmentModeEnum"
        ],
        "slug": "setalignment"
      },
      {
        "name": "setFontName",
        "signature": "(options: { typeface: string; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ typeface: string; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.6 Text printing"
          },
          {
            "name": "TODO",
            "text": "Probably not working"
          }
        ],
        "docs": "Set custom print font.\n\ntypeface → specify the custom font name you’re about to use. Currently only vector font supported, and the font needs to be preset in the app assets directory.\n\nNote 1: this interface can expand the default font type in the printer for you to use a custom font. However, you have to adjust the line spacing and line width due to the inconsistent inner width of each font.\n\nNote 2: this interface is available for the printing service with versions above v4.14.0.",
        "complexTypes": [],
        "slug": "setfontname"
      },
      {
        "name": "setFontSize",
        "signature": "(options: { size: number; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ size: number; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.6 Text printing"
          }
        ],
        "docs": "Set font size.\n\nNote: global method may influence the subsequent printing, and you can cancel this setting using printer initialization. The font size adopts the printing method exceeding the standard international commands, and the adjustment of font size may affect the character width, which leads to the change to the number of each line’s characters. So typography of monospaced fonts can be confusing some time.",
        "complexTypes": [],
        "slug": "setfontsize"
      },
      {
        "name": "setBold",
        "signature": "(options: { enable: boolean; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ enable: boolean; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.6 Text printing"
          }
        ],
        "docs": "Set bold",
        "complexTypes": [],
        "slug": "setbold"
      },
      {
        "name": "printText",
        "signature": "(options: { text: string; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ text: string; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.6 Text printing"
          }
        ],
        "docs": "Print text.\n\ntext → text to be printed; automatic linefeed will be implemented when the text width exceeds one line, and the forced newline character \"\\n\" shall be added at the end of one line when the text width is less than one line or exceeds one line but not meeting one line before being printed, or it will be cached.\n\nNote: if you need to change the style of print text, such as alignment mode, font size, bold, etc., please set it before calling printText method.",
        "complexTypes": [],
        "slug": "printtext"
      },
      {
        "name": "printTextWithFont",
        "signature": "(options: { text: string; typeface: string; size: number; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ text: string; typeface: string; size: number; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.6 Text printing"
          }
        ],
        "docs": "Print text with designated font and size.\n\ntext → text to be printed; automatic linefeed will be implemented when the text width exceeds one line, and the forced newline character \"\\n\" shall be added at the end of one line when the text width is less than one line or exceeds one line but not meeting one line before being printed, or it will be cached.\nTypeface → the custom font name. Currently only vector fonts are supported, and the font needs to be preset in the app assets directory.\nfontSize → font size; only available for this method.\n\nNote: the font setting of this interface is available for the printing service with versions above v4.14.0.",
        "complexTypes": [],
        "slug": "printtextwithfont"
      },
      {
        "name": "printOriginalText",
        "signature": "(options: { text: string; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ text: string; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.6 Text printing"
          }
        ],
        "docs": "Print vector font.\n\ntext → text to be printed; automatic linefeed will be implemented when the text width exceeds one line, and the forced newline character \"\\n\" shall be added at the end of one line when the text width is less than one line or exceeds one line but not meeting one line before being printed, or it will be cached.\n\nNote: the text is printed according to the vector text width, which means that each character is not monospaced.",
        "complexTypes": [],
        "slug": "printoriginaltext"
      },
      {
        "name": "printColumnsText",
        "signature": "(options: { lines: { text: string; width: number; align: AlignmentModeEnum; }[]; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ lines: { text: string; width: number; align: AlignmentModeEnum; }[]; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.7 Print a table"
          }
        ],
        "docs": "Print a column of a table (Arabic characters are not supported)\n\ncolsTextArr → Array of column text strings.\ncolsWidthArr → Array of each column width, calculated in English characters, and each Chinese character is equal to two English characters, with each width > 0.\ncolsAlign → Alignment mode of each column: 0: left; 1: center; 2: right.\n\nNote: the array length of the above three parameters should be consistent. If the width of colsText[i] is larger than that of colsWidth[i], the text will be changed to another line, and Arabic characters are not supported.",
        "complexTypes": [
          "AlignmentModeEnum"
        ],
        "slug": "printcolumnstext"
      },
      {
        "name": "printColumnsString",
        "signature": "(options: { lines: { text: string; proportion: number; align: AlignmentModeEnum; }[]; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ lines: { text: string; proportion: number; align: AlignmentModeEnum; }[]; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.7 Print a table"
          }
        ],
        "docs": "Print a column of a table, and you can specify the column width and alignment mode.\n\nolsTextArr → Array of column text strings.\ncolsWidthArr → The width weight of each column is the proportion of each column.\ncolsAlign → Alignment mode of each column: 0: left; 1: center; 2: right.\n\nNote: the array length of the above three parameters should be consistent. If the width of colsText[i] is larger than that of colsWidth[i], the text will be changed to another line.",
        "complexTypes": [
          "AlignmentModeEnum"
        ],
        "slug": "printcolumnsstring"
      },
      {
        "name": "printBitmap",
        "signature": "(options: { bitmap: string; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ bitmap: string; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.8 Print an image"
          }
        ],
        "docs": "Print an image\n\nNote: the maximum pixel size of the image should be less than 2.5 million pixels of width x height, and the width should be set according to the size of paper specification (384 pixels for 58mm paper, and 576 pixels for 80mm paper). If it exceeds the width of the paper, it will not be displayed.",
        "complexTypes": [],
        "slug": "printbitmap"
      },
      {
        "name": "printBitmapCustom",
        "signature": "(options: { bitmap: string; type: BitmapPrintTypeEnum; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ bitmap: string; type: BitmapPrintTypeEnum; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.8 Print an image"
          }
        ],
        "docs": "Print an image (2)\n\nbitmap → image: bitmap object; the biggest width is 384 pixels, and the image can’t be printed when exceeding 1M.\ntype → currently two printing methods are available:\n0 → the same as printBitmap();\n1 → black and white image with a threshold of 200\n2 → grayscale image\n\nNote: the image resolution is less than 2 million pixels, and the width should be set according to the size of paper specification (384 pixels for 58mm paper, and 576 pixels for 80mm paper). If it exceeds the width of the paper, it will not be displayed.\n\nVersions supported: v3.2.0 above for P1; v1.2.0 above for P14g; v3.2.0 above for V1s; v1.0.0 above for V2; v2.4.0 above for T1; v1.0.5 above for T2, S2; v2.4.1 above for T1mini; v1.0.0 above for T2mini.",
        "complexTypes": [
          "BitmapPrintTypeEnum"
        ],
        "slug": "printbitmapcustom"
      },
      {
        "name": "printBarCode",
        "signature": "(options: { content: string; symbology: BarcodeSymbologyEnum; height: number; width: number; text_position: BarcodeTextPositionEnum; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ content: string; symbology: BarcodeSymbologyEnum; height: number; width: number; text_position: BarcodeTextPositionEnum; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.9 Print a 1D/2D barcode"
          }
        ],
        "docs": "Print a 1D barcode.\n\ndata → 1D barcode content\nsymbology → barcode type (0 – 8):\n0 → UPC-A\n1 → UPC-E\n2 → JAN13 (EAN13)\n3 → JAN8 (EAN8)\n4 → CODE39\n5 → ITF\n6 → CODABAR\n7 → CODE 93\n8 → CODE128\nheight → barcode height from 1 – 255, with default value of 162\nwidth → barcode width from 2 – 6, with default value of 2\ntextPosition → text position (0 -3)\n0 → not to print text\n1 → text is above barcode\n2 → text is below barcode\n3 → print text above and below the barcode\n\nNote: different barcode types have the following differences:\n\ncode39\nA maximum of 13 digits can be printed\ncode93\nA maximum of 17 digits can be printed\nean8\n8 digits required, with the last one as a check digit, and the valid length of 8 digits\nean13\nThe valid length consists of 13 digits, the last of which is a check digit\nITF\nRequire to enter number, with valid length less than 14 digits, and must be an even number\nCodebar\nRequire to enter numbers from 0 – 9, with 6 special characters, and a maximum of 18 digits can be printed\nUPC-E\n8 digits required, with the last one as a check digit\nUPC-A\n12 digits required, with the last one as a check digit\ncode128\nThree types for Code128:\n- Type A: including uppercase letters, numbers, and punctuation marks;\n- Type B: uppercase letters, lowercase letters, and numbers;\n- Type C: pure digits, plural characters, and the last digit is ignored if it is a singular digit;\nThe interface adopts type B code by default. To use type A and C codes, you need to add“{A” and “{C” before the content, for example, “{A2344A”，”{C123123”，”{A1A{B13B{C12”.",
        "complexTypes": [
          "BarcodeSymbologyEnum",
          "BarcodeTextPositionEnum"
        ],
        "slug": "printbarcode"
      },
      {
        "name": "printQRCode",
        "signature": "(options: { content: string; size: number; error_correction?: number; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ content: string; size: number; error_correction?: number | undefined; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.9 Print a 1D/2D barcode"
          }
        ],
        "docs": "Print a QR code.\n\ndata → QR barcode content\nmodulesize → the size of QR barcode; unit: pixel; value from 4 to 16;\nerrorlevel → barcode error correction level (0-3):\n0 → error correction level L (7%)\n1 → error correction level M (15%)\n2 → error correction level Q (25%)\n3 → error correction level H (30%)\n\nNote: the printing content will be directly output after calling this method under normal printing status, and each barcode has 4 pixels (if the pixels are less than 4, the barcode scanning may fail). A maximum version19 (93*93) mode is supported.",
        "complexTypes": [],
        "slug": "printqrcode"
      },
      {
        "name": "print2DCode",
        "signature": "(options: { content: string; symbology: Barcode2DSymbologyEnum; size: number; error_correction: number; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ content: string; symbology: Barcode2DSymbologyEnum; size: number; error_correction: number; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.9 Print a 1D/2D barcode"
          }
        ],
        "docs": "Print a 2D barcode.\n\ndata → 2D barcode content\nsymbology → 2D barcode type\n1 Qr (same as printQRCode interface)\n2 PDF417\n3 DataMatrix\nmodulesize → the size of effective 2D barcode; the supported optimum barcode size varies according to different barcode types.\nQr barcode: 4 – 16 (the same as printQRCode interface)\nPDF417: 1 – 4\nDataMatrix: 4 – 16\nerrorlevel → 2D barcode error correction level; the supported level varies according to different barcode types.\nQr barcode: 0 – 3 (same as printQRCode interface)\nPDF417: 0 – 8\nDataMatrix: ECC200 auto error correction is adopted by default, and it cannot be modified.\n\nNote: the printing content will be directly output after calling this method under normal printing status; this interface is available for versions above v4.1.2.",
        "complexTypes": [
          "Barcode2DSymbologyEnum"
        ],
        "slug": "print2dcode"
      },
      {
        "name": "enterPrinterBuffer",
        "signature": "(options?: { clean?: boolean | undefined; } | undefined) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ clean?: boolean | undefined; } | undefined"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.10 Transaction printing"
          }
        ],
        "docs": "Enable transaction printing mode\n\nclear → whether to clear the content in the buffer area\n- true → clear the content unsubmitted in the last transaction printing\n- false → not clear the content unsubmitted in the last transaction printing, which will be included in the next submission\n\nNote:\n1. After enabling transaction printing mode, the printer won’t print the data immediately under this mode, until you submit transaction or disable submitting transaction;\n2. Transaction printing mode is available for all devices except for V1 model.",
        "complexTypes": [],
        "slug": "enterprinterbuffer"
      },
      {
        "name": "exitPrinterBuffer",
        "signature": "(options?: { commit?: boolean | undefined; } | undefined) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ commit?: boolean | undefined; } | undefined"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.10 Transaction printing"
          }
        ],
        "docs": "Disable transaction printing mode\n\ncommit → whether to print the content in the buffer area;\n- true → the printer will print all the contents in the transaction queue;\n- false → the printer will not print all the contents in the transaction queue, which will be saved for the next submission\n\nNote: transaction printing mode is available for all devices except for V1 model.",
        "complexTypes": [],
        "slug": "exitprinterbuffer"
      },
      {
        "name": "exitPrinterBufferWithCallback",
        "signature": "(options?: { commit?: boolean | undefined; } | undefined) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ commit?: boolean | undefined; } | undefined"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.10 Transaction printing"
          }
        ],
        "docs": "Disable transaction printing mode and call back result\n\ncommit → whether to print the content in the buffer area;\n- true → the printer will print all the contents in the transaction queue;\n- false → the printer will not print all the contents in the transaction queue, which will be saved for the next submission\n\nNote: transaction printing mode is available for all devices except for V1 model.",
        "complexTypes": [],
        "slug": "exitprinterbufferwithcallback"
      },
      {
        "name": "commitPrinterBuffer",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.10 Transaction printing"
          }
        ],
        "docs": "Submit transaction printing\n\nNote:\n1. Submit all the contents in the transaction queue and print all. The printer remains in the transaction printing mode;\n2. Transaction printing mode is available for all devices except for V1 model.",
        "complexTypes": [],
        "slug": "commitprinterbuffer"
      },
      {
        "name": "commitPrinterBufferWithCallback",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.10 Transaction printing"
          }
        ],
        "docs": "Submit transaction printing and call back result\n\nNote: transaction printing mode is available for all devices except for V1 model.",
        "complexTypes": [],
        "slug": "commitprinterbufferwithcallback"
      },
      {
        "name": "lineWrap",
        "signature": "(options?: { lines?: number | undefined; } | undefined) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ lines?: number | undefined; } | undefined"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.11 Paper moving related"
          }
        ],
        "docs": "The printer moves the paper for n lines\n\nNote: forced linefeed is adopted, and the printer will move the paper for n lines after completing the previous printing.",
        "complexTypes": [],
        "slug": "linewrap"
      },
      {
        "name": "cutPaper",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.12 Cutter (paper cutting) related"
          }
        ],
        "docs": "Paper cutting\n\nNote: there’s some distance between printhead and cutter, which will be automatically complemented by calling the interface.\n\nNote: Only available for desktop terminals with cutter function.",
        "complexTypes": [],
        "slug": "cutpaper"
      },
      {
        "name": "getCutPaperTimes",
        "signature": "() => Promise<{ times: number; }>",
        "parameters": [],
        "returns": "Promise<{ times: number; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.12 Cutter (paper cutting) related"
          }
        ],
        "docs": "Get the cutter’s cumulative cutting times\n\nNote: Only available for desktop terminals with cutter function.",
        "complexTypes": [],
        "slug": "getcutpapertimes"
      },
      {
        "name": "openDrawer",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.13 Cash drawer related"
          }
        ],
        "docs": "Open the cash drawer\n\nNote: Only available for desktop terminals with cash drawer function.",
        "complexTypes": [],
        "slug": "opendrawer"
      },
      {
        "name": "getOpenDrawerTimes",
        "signature": "() => Promise<{ times: number; }>",
        "parameters": [],
        "returns": "Promise<{ times: number; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.13 Cash drawer related"
          }
        ],
        "docs": "Get the cumulative open times of the cash drawer\n\nNote: Only available for desktop terminals with cash drawer function.",
        "complexTypes": [],
        "slug": "getopendrawertimes"
      },
      {
        "name": "getDrawerStatus",
        "signature": "() => Promise<{ opened: boolean; }>",
        "parameters": [],
        "returns": "Promise<{ opened: boolean; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.13 Cash drawer related"
          }
        ],
        "docs": "Get the current status of the cash drawer\n\nNote 1: you can get the cash drawer status of some models with cash drawer function by calling this interface.\n\nNote 2: this interface is only available for device models of S2, T2, and T2mini with versions above v4.0.0.",
        "complexTypes": [],
        "slug": "getdrawerstatus"
      },
      {
        "name": "getForcedDouble",
        "signature": "() => Promise<{ status: number; }>",
        "parameters": [],
        "returns": "Promise<{ status: number; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.14 Get global attributes"
          }
        ],
        "docs": "Get global font height and width status\n\nNote: currently, these interfaces, except ‘get print density’ interface, are only available for handheld terminals of models V1, V1s, and P1 with versions above v3.2.0, and model P14g with versions above v1.2.0.",
        "complexTypes": [],
        "slug": "getforceddouble"
      },
      {
        "name": "isForcedAntiWhite",
        "signature": "() => Promise<{ status: boolean; }>",
        "parameters": [],
        "returns": "Promise<{ status: boolean; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.14 Get global attributes"
          }
        ],
        "docs": "Get global font anti-white style enabled\n\nNote: currently, these interfaces, except ‘get print density’ interface, are only available for handheld terminals of models V1, V1s, and P1 with versions above v3.2.0, and model P14g with versions above v1.2.0.",
        "complexTypes": [],
        "slug": "isforcedantiwhite"
      },
      {
        "name": "isForcedBold",
        "signature": "() => Promise<{ status: boolean; }>",
        "parameters": [],
        "returns": "Promise<{ status: boolean; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.14 Get global attributes"
          }
        ],
        "docs": "Get global font bold style enabled\n\nNote: currently, these interfaces, except ‘get print density’ interface, are only available for handheld terminals of models V1, V1s, and P1 with versions above v3.2.0, and model P14g with versions above v1.2.0.",
        "complexTypes": [],
        "slug": "isforcedbold"
      },
      {
        "name": "isForcedUnderline",
        "signature": "() => Promise<{ status: boolean; }>",
        "parameters": [],
        "returns": "Promise<{ status: boolean; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.14 Get global attributes"
          }
        ],
        "docs": "Get global font underline style enabled\n\nNote: currently, these interfaces, except ‘get print density’ interface, are only available for handheld terminals of models V1, V1s, and P1 with versions above v3.2.0, and model P14g with versions above v1.2.0.",
        "complexTypes": [],
        "slug": "isforcedunderline"
      },
      {
        "name": "getForcedRowHeight",
        "signature": "() => Promise<{ height: number; }>",
        "parameters": [],
        "returns": "Promise<{ height: number; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.14 Get global attributes"
          }
        ],
        "docs": "Get global line height set value\n\nNote: currently, these interfaces, except ‘get print density’ interface, are only available for handheld terminals of models V1, V1s, and P1 with versions above v3.2.0, and model P14g with versions above v1.2.0.",
        "complexTypes": [],
        "slug": "getforcedrowheight"
      },
      {
        "name": "getFontName",
        "signature": "() => Promise<{ font: number; }>",
        "parameters": [],
        "returns": "Promise<{ font: number; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.14 Get global attributes"
          }
        ],
        "docs": "Get current font used\n\nNote: currently, these interfaces, except ‘get print density’ interface, are only available for handheld terminals of models V1, V1s, and P1 with versions above v3.2.0, and model P14g with versions above v1.2.0.",
        "complexTypes": [],
        "slug": "getfontname"
      },
      {
        "name": "getPrinterDensity",
        "signature": "() => Promise<{ density: number; }>",
        "parameters": [],
        "returns": "Promise<{ density: number; }>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.14 Get global attributes"
          }
        ],
        "docs": "Get print density",
        "complexTypes": [],
        "slug": "getprinterdensity"
      },
      {
        "name": "sendLCDCommand",
        "signature": "(options: { command: LcdCommandEnum; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ command: LcdCommandEnum; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.15 Customer display interface description"
          }
        ],
        "docs": "Send control commands\n\nparameter: flag → 1. Initialization; 2. Wake up LCD; 3. LCD hibernation; 4. Clear screen\n\nNote: only available for desktop terminals of mini series with customer display function.",
        "complexTypes": [
          "LcdCommandEnum"
        ],
        "slug": "sendlcdcommand"
      },
      {
        "name": "sendLCDInitializationCommand",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "sendLCDCommand"
          }
        ],
        "docs": "Send initialization command",
        "complexTypes": [],
        "slug": "sendlcdinitializationcommand"
      },
      {
        "name": "sendLCDWakeUpCommand",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "sendLCDCommand"
          }
        ],
        "docs": "Send wake up command",
        "complexTypes": [],
        "slug": "sendlcdwakeupcommand"
      },
      {
        "name": "sendLCDHibernateCommand",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "sendLCDCommand"
          }
        ],
        "docs": "Send hibernation command",
        "complexTypes": [],
        "slug": "sendlcdhibernatecommand"
      },
      {
        "name": "sendLCDClearCommand",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "sendLCDCommand"
          }
        ],
        "docs": "Send clear command",
        "complexTypes": [],
        "slug": "sendlcdclearcommand"
      },
      {
        "name": "sendLCDString",
        "signature": "(options: { text: string; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ text: string; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.15 Customer display interface description"
          }
        ],
        "docs": "Send single line text\n\nstring → the text to be displayed\n\nNote: only available for desktop terminals of mini series with customer display function, and it won’t be displayed if the text is too long.",
        "complexTypes": [],
        "slug": "sendlcdstring"
      },
      {
        "name": "sendLCDDoubleString",
        "signature": "(options: { top: string; bottom: string; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ top: string; bottom: string; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.15 Customer display interface description"
          }
        ],
        "docs": "Send double lines text\n\ntopText → display the top text\nbottomText → display the bottom text\n\nNote: only available for desktop terminals of mini series with customer display function, and it won’t be displayed if the text is too long.",
        "complexTypes": [],
        "slug": "sendlcddoublestring"
      },
      {
        "name": "sendLCDMultiString",
        "signature": "(options: { lines: { text: string; proportion: number; }[]; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ lines: { text: string; proportion: number; }[]; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.15 Customer display interface description"
          }
        ],
        "docs": "Send multiple lines text, and each line’s content will be automatically sized based on its weight\n\ntext → arrays displaying the text of each line. You need to confirm the line number according to array element. If a line is empty, no text will be displayed\nalign → The weight ratio of the area occupied by each line of text, and the size of array elements must be the same size as the text array\n\nNote: only available for desktop terminals of mini series with customer display function, with versions above v4.0.0. It won’t be displayed if the text is too long.",
        "complexTypes": [],
        "slug": "sendlcdmultistring"
      },
      {
        "name": "sendLCDFillString",
        "signature": "(options: { text: string; size: number; fill: boolean; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ text: string; size: number; fill: boolean; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.15 Customer display interface description"
          }
        ],
        "docs": "Send single line text (font size and filling method can be customized for the text)\n\nstring → text to be displayed\nsize → the font size of the text to be displayed, center by default\nfill → whether to magnify the font to fill the display area\n\nNote: only available for desktop terminals of mini series with customer display function, with versions above v4.0.0. It won’t be displayed if the text is too long.",
        "complexTypes": [],
        "slug": "sendlcdfillstring"
      },
      {
        "name": "sendLCDBase64Bitmap",
        "signature": "(options: { bitmap: string; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ bitmap: string; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.15 Customer display interface description"
          }
        ],
        "docs": "Send bitmap image\n\nbitmap → the image to be displayed\n\nNote: only available for desktop terminals of mini series with customer display function, and the customer display can only display the image with the maximum pixel of 128*40.",
        "complexTypes": [],
        "slug": "sendlcdbase64bitmap"
      },
      {
        "name": "sendLCDAsciiBitmap",
        "signature": "(options: { bitmap: string; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ bitmap: string; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": "sendLCDBase64Bitmap"
          }
        ],
        "docs": "Send ascii bitmap image",
        "complexTypes": [],
        "slug": "sendlcdasciibitmap"
      },
      {
        "name": "sendLCDBarcode",
        "signature": "(options: { content: string; format?: LcdBarcodeFormatEnum; }) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "{ content: string; format?: LcdBarcodeFormatEnum | undefined; }"
          }
        ],
        "returns": "Promise<void>",
        "tags": [],
        "docs": "Prints barcode on the customer display",
        "complexTypes": [
          "LcdBarcodeFormatEnum"
        ],
        "slug": "sendlcdbarcode"
      },
      {
        "name": "labelLocate",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.16 Label printing instructions"
          }
        ],
        "docs": "Locate the next label\n\nYou can only implement the location output operation specific to the label by calling the label interfaces, while the label content needs to be customized by yourself according to your own needs, like the operation of thermal printing.\n\nPlease note that the height of printing content shall be within the label paper, or the printing content may exceed the label paper, which can result in printing to the next label or inaccurate location of the next label.\n\nIf you use a label paper with 30mm height, you can print the content with 240 pixels (30mm x 8 pixels), and the printer defaults to 32 pixels of line spacing, which allows you to print about 8 lines of text or a 384x240 image.\n\nAfter printing the content, you can choose to implement labelLocate and print the content circularly according to your own needs.\n\nIf you don’t need to print any more, you can implement labelOutput(), which can output the label to the paper cutting position, facilitating you to add other APIs according to needs to design your own label content.\n\nNote: You need to locate the label position every time before sending the printing content",
        "complexTypes": [],
        "slug": "labellocate"
      },
      {
        "name": "labelOutput",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "see",
            "text": " 1.2.16 Label printing instructions"
          }
        ],
        "docs": "Output the label to the paper cutting position",
        "complexTypes": [],
        "slug": "labeloutput"
      },
      {
        "name": "addListener",
        "signature": "(eventName: 'onPrinterStatusUpdated', listenerFunc: (event: { status: PrinterStatusEventEnum; broadcast?: string; }) => void) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'onPrinterStatusUpdated'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "(event: { status: PrinterStatusEventEnum; broadcast?: string | undefined; }) => void"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [],
        "docs": "Listens for printer status changed events.",
        "complexTypes": [
          "PluginListenerHandle",
          "PrinterStatusEventEnum"
        ],
        "slug": "addlisteneronprinterstatusupdated-"
      },
      {
        "name": "removeAllListeners",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [],
        "docs": "Removes all listeners",
        "complexTypes": [],
        "slug": "removealllisteners"
      }
    ],
    "properties": []
  },
  "interfaces": [
    {
      "name": "PluginListenerHandle",
      "slug": "pluginlistenerhandle",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "remove",
          "tags": [],
          "docs": "",
          "complexTypes": [],
          "type": "() => Promise<void>"
        }
      ]
    }
  ],
  "enums": [
    {
      "name": "ServiceStatusEnum",
      "slug": "servicestatusenum",
      "members": [
        {
          "name": "NO_PRINTER",
          "value": "\"NoPrinter\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "CHECK_PRINTER",
          "value": "\"CheckPrinter\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "FOUND_PRINTER",
          "value": "\"FoundPrinter\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "LOST_PRINTER",
          "value": "\"LostPrinter\"",
          "tags": [],
          "docs": ""
        }
      ]
    },
    {
      "name": "PrinterStatusEnum",
      "slug": "printerstatusenum",
      "members": [
        {
          "name": "NORMAL_OPERATION",
          "value": "'NormalOperation'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "UNDER_PREPARATION",
          "value": "'UnderPreparation'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ABNORMAL_COMMUNICATION",
          "value": "'AbnormalCommunication'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "OUT_OF_PAPER",
          "value": "'OutOfPaper'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "OVERHEATED",
          "value": "'Overheated'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "COVER_IS_OPEN",
          "value": "'CoverIsOpen'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "CUTTER_ERROR",
          "value": "'CutterError'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "CUTTER_RECOVERED",
          "value": "'CutterRecovered'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "BLACK_MARK_NOT_DETECTED",
          "value": "'BlackMarkNotDetected'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "PRINTER_NOT_DETECTED",
          "value": "'PrinterNotDetected'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "FIRMWARE_UPDATE_FAILED",
          "value": "'FirmwareUpdateFailed'",
          "tags": [],
          "docs": ""
        },
        {
          "name": "UNKNOWN",
          "value": "'Unknown'",
          "tags": [],
          "docs": ""
        }
      ]
    },
    {
      "name": "PrinterStyleKeysEnum",
      "slug": "printerstylekeysenum",
      "members": [
        {
          "name": "ENABLE_DOUBLE_WIDTH",
          "value": "\"EnableDoubleWidth\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ENABLE_DOUBLE_HEIGHT",
          "value": "\"EnableDoubleHeight\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ENABLE_BOLD",
          "value": "\"EnableBold\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ENABLE_UNDERLINE",
          "value": "\"EnableUnderline\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ENABLE_ANTI_WHITE",
          "value": "\"EnableAntiWhite\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ENABLE_STRIKETHROUGH",
          "value": "\"EnableStrikethrough\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ENABLE_ITALIC",
          "value": "\"EnableItalic\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ENABLE_INVERT",
          "value": "\"EnableInvert\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "SET_TEXT_RIGHT_SPACING",
          "value": "\"SetTextRightSpacing\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "SET_RELATIVE_POSITION",
          "value": "\"SetRelativePosition\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "SET_ABSOLUTE_POSITION",
          "value": "\"SetAbsolutePosition\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "SET_LINE_SPACING",
          "value": "\"SetLineSpacing\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "SET_LEFT_SPACING",
          "value": "\"SetLeftSpacing\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "SET_STRIKETHROUGH_STYLE",
          "value": "\"SetStrikethroughStyle\"",
          "tags": [],
          "docs": ""
        }
      ]
    },
    {
      "name": "PrinterStyleValuesEnum",
      "slug": "printerstylevaluesenum",
      "members": [
        {
          "name": "ENABLE",
          "value": "\"Enable\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "DISABLE",
          "value": "\"Disable\"",
          "tags": [],
          "docs": ""
        }
      ]
    },
    {
      "name": "PrinterModeEnum",
      "slug": "printermodeenum",
      "members": [
        {
          "name": "GENERAL",
          "value": "\"General\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "BLACK_MARK",
          "value": "\"BlackMark\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "LABEL",
          "value": "\"Label\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "UNKNOWN",
          "value": "\"Unknown\"",
          "tags": [],
          "docs": ""
        }
      ]
    },
    {
      "name": "AlignmentModeEnum",
      "slug": "alignmentmodeenum",
      "members": [
        {
          "name": "LEFT",
          "value": "\"left\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "CENTER",
          "value": "\"center\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "RIGHT",
          "value": "\"right\"",
          "tags": [],
          "docs": ""
        }
      ]
    },
    {
      "name": "BitmapPrintTypeEnum",
      "slug": "bitmapprinttypeenum",
      "members": [
        {
          "name": "DEFAULT",
          "value": "\"Default\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "BLACK_AND_WHITE",
          "value": "\"blackAndWhite\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "GRAYSCALE",
          "value": "\"Grayscale\"",
          "tags": [],
          "docs": ""
        }
      ]
    },
    {
      "name": "BarcodeSymbologyEnum",
      "slug": "barcodesymbologyenum",
      "members": [
        {
          "name": "UPC_A",
          "value": "\"UPC_A\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "UPC_E",
          "value": "\"UPC_E\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "EAN_13",
          "value": "\"EAN_13\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "EAN_8",
          "value": "\"EAN_8\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "CODE_39",
          "value": "\"CODE_39\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ITF",
          "value": "\"ITF\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "CODABAR",
          "value": "\"CODABAR\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "CODE_93",
          "value": "\"CODE_93\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "CODE_128",
          "value": "\"CODE_128\"",
          "tags": [],
          "docs": ""
        }
      ]
    },
    {
      "name": "BarcodeTextPositionEnum",
      "slug": "barcodetextpositionenum",
      "members": [
        {
          "name": "NO_TEXT",
          "value": "\"NoText\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ABOVE",
          "value": "\"Above\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "BELOW",
          "value": "\"Below\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ABOVE_AND_BELOW",
          "value": "\"AboveAndBelow\"",
          "tags": [],
          "docs": ""
        }
      ]
    },
    {
      "name": "Barcode2DSymbologyEnum",
      "slug": "barcode2dsymbologyenum",
      "members": [
        {
          "name": "QR_CODE",
          "value": "\"QR_CODE\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "PDF417",
          "value": "\"PDF417\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "DataMatrix",
          "value": "\"DATA_MATRIX\"",
          "tags": [],
          "docs": ""
        }
      ]
    },
    {
      "name": "LcdCommandEnum",
      "slug": "lcdcommandenum",
      "members": [
        {
          "name": "INITIALIZATION",
          "value": "\"Initialization\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "WAKE_UP",
          "value": "\"WakeUp\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "HIBERNATE",
          "value": "\"Hibernate\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "CLEAR",
          "value": "\"Clear\"",
          "tags": [],
          "docs": ""
        }
      ]
    },
    {
      "name": "LcdBarcodeFormatEnum",
      "slug": "lcdbarcodeformatenum",
      "members": [
        {
          "name": "UPC_A",
          "value": "\"UPC_A\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "UPC_E",
          "value": "\"UPC_E\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "EAN_13",
          "value": "\"EAN_13\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "EAN_8",
          "value": "\"EAN_8\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "CODE_39",
          "value": "\"CODE_39\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "ITF",
          "value": "\"ITF\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "CODABAR",
          "value": "\"CODABAR\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "CODE_93",
          "value": "\"CODE_93\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "CODE_128",
          "value": "\"CODE_128\"",
          "tags": [],
          "docs": ""
        },
        {
          "name": "QR_CODE",
          "value": "\"QR_CODE\"",
          "tags": [],
          "docs": ""
        }
      ]
    },
    {
      "name": "PrinterStatusEventEnum",
      "slug": "printerstatuseventenum",
      "members": [
        {
          "name": "UNDER_PREPARATION",
          "value": "\"UnderPreparation\"",
          "tags": [],
          "docs": "Printer is under preparation.\n\nsee `woyou.aidlservice.jiuv5.INIT_ACTION` in documentation."
        },
        {
          "name": "NORMAL_OPERATION",
          "value": "\"NormalOperation\"",
          "tags": [],
          "docs": "Printing is ready.\n\nsee `woyou.aidlservice.jiuv5.NORMAL_ACTION` in documentation."
        },
        {
          "name": "PRINTING_ERROR",
          "value": "\"PrintingError\"",
          "tags": [],
          "docs": "Printing error.\n\nsee `woyou.aidlservice.jiuv5.ERROR_ACTION` in documentation."
        },
        {
          "name": "OUT_OF_PAPER",
          "value": "\"OutOfPaper\"",
          "tags": [],
          "docs": "Out of paper.\n\nsee `woyou.aidlservice.jiuv5.OUT_OF_PAPER_ACTION` in documentation."
        },
        {
          "name": "OVERHEATED",
          "value": "\"Overheated\"",
          "tags": [],
          "docs": "Printhead is overheated.\n\nsee `woyou.aidlservice.jiuv5.OVER_HEATING_ACITON` in documentation."
        },
        {
          "name": "NORMAL_HEAT",
          "value": "\"NormalHeat\"",
          "tags": [],
          "docs": "Printhead temperature back to normal.\n\nsee `woyou.aidlservice.jiuv5.NORMAL_HEATING_ACITON` in documentation."
        },
        {
          "name": "COVER_IS_OPEN",
          "value": "\"CoverIsOpen\"",
          "tags": [],
          "docs": "Cover open.\n\nsee `woyou.aidlservice.jiuv5.COVER_OPEN_ACTION` in documentation."
        },
        {
          "name": "COVER_ERROR",
          "value": "\"CoverError\"",
          "tags": [],
          "docs": "Cover closing exception.\n\nsee `woyou.aidlservice.jiuv5.COVER_ERROR_ACTION` in documentation."
        },
        {
          "name": "CUTTER_ERROR",
          "value": "\"CutterError\"",
          "tags": [],
          "docs": "Cutter exception 1 – cutter stuck.\n\nsee `woyou.aidlservice.jiuv5.KNIFE_ERROR_ACTION_1` in documentation."
        },
        {
          "name": "CUTTER_RECOVERED",
          "value": "\"CutterRecovered\"",
          "tags": [],
          "docs": "Cutter exception 2 – cutter back to normal.\n\nsee `woyou.aidlservice.jiuv5.KNIFE_ERROR_ACTION_2` in documentation."
        },
        {
          "name": "FIRMWARE_UPDATING",
          "value": "\"FirmwareUpdating\"",
          "tags": [],
          "docs": "Printer firmware updating.\n\nsee `woyou.aidlservice.jiuv5.FIRMWARE_UPDATING_ACITON` in documentation."
        },
        {
          "name": "FIRMWARE_UPDATE_FAILED",
          "value": "\"FirmwareUpdateFailed\"",
          "tags": [],
          "docs": "Printer firmware updating failed.\n\nsee `woyou.aidlservice.jiuv5.FIRMWARE_FAILURE_ACITON` in documentation."
        },
        {
          "name": "PRINTER_NOT_DETECTED",
          "value": "\"PrinterNotDetected\"",
          "tags": [],
          "docs": "Printer not detected.\n\nsee `woyou.aidlservice.jiuv5.PRINTER_NON_EXISTENT_ACITON` in documentation."
        },
        {
          "name": "BLACK_MARK_NOT_DETECTED",
          "value": "\"BlackMarkNotDetected\"",
          "tags": [],
          "docs": "Black mark not detected.\n\nsee `woyou.aidlservice.jiuv5.BLACKLABEL_NON_EXISTENT_ACITON` in documentation."
        }
      ]
    }
  ],
  "typeAliases": [],
  "pluginConfigs": [
    {
      "name": "SunmiPrinterPlugin",
      "slug": "sunmiprinterplugin",
      "properties": [
        {
          "name": "bindOnLoad",
          "tags": [
            {
              "text": "true",
              "name": "default"
            }
          ],
          "docs": "Auto bind the print service on app load",
          "complexTypes": [],
          "type": "boolean | undefined"
        }
      ],
      "docs": ""
    }
  ]
}