com.pax.dal

Interface ICustomerDisplay



  • public interface ICustomerDisplay
    顾客显示屏操作模块。注:仅部分机型支持,新机型将适配原生的Presentation功能。
    Customer display operation module.Note: Only some models are supported. New models will be compatible with the native Presentation function.
    Since:
    V3.25.00
    • Method Detail

      • setBrightness

        void setBrightness(int level)
                    throws CustomerDisplayDevException
        设置顾客显示屏亮度。
        Set customer display brightness.
        Parameters:
        level -
        亮度。范围 0~10,0表示屏幕全黑。默认值6。
        Brightness. The range is 0 ~ 10, 0 means the screen is completely black. The default value is 6.
        Throws:
        CustomerDisplayDevException - CustomerDisplayDevException
        Since:
        V3.25.00
      • setBackgroundImage

        @Deprecated
        void setBackgroundImage(int x,
                                             int y,
                                             android.graphics.Bitmap background)
                                      throws CustomerDisplayDevException
        Deprecated. 
        设置顾客显示屏的背景图片。
        Set the background image of the customer display.
        Parameters:
        x -
        x坐标。
        X coordinates.
        y -
        y坐标。
        Y coordinates.
        background -
        背景图像。如果图片像素超过屏幕,将按原图片比例进行缩放。只支持png格式。
        Background image. If the picture pixels exceed the screen, it will be scaled to the original picture scale. Only PNG format is supported.
        Throws:
        CustomerDisplayDevException - CustomerDisplayDevException
        Since:
        V3.25.00
      • setBackgroundSolid

        @Deprecated
        void setBackgroundSolid(int color)
                                      throws CustomerDisplayDevException
        Deprecated. 
        设置顾客显示屏的纯色背景。
        Set the solid background of the customer display.
        Parameters:
        color -
        • 0: 红色。
        • 1: 绿色。
        • 2: 蓝色。
        • 3: 黑色。
        • 4: 白色。
        • 5: 黄色。
        • 6: 灰色。
        • 0: RED.
        • 1: GREEN.
        • 2: BLUE.
        • 3: BLACK.
        • 4: WHITE.
        • 5: YELLOW.
        • 6: GRAY.
        Throws:
        CustomerDisplayDevException - CustomerDisplayDevException
        Since:
        V3.25.00
      • setText

        @Deprecated
        void setText(int x,
                                  int y,
                                  java.lang.String text,
                                  java.lang.String charset)
                           throws CustomerDisplayDevException
        Deprecated. 
        设置顾客显示屏文字。
        Set the customer display text.
        Parameters:
        x -
        x坐标。
        X coordinates.
        y -
        y坐标。
        Y coordinates.
        text -
        要显示的文字。
        The text to display.
        charset -
        文字的编码格式。为NULL表示UTF-8。
        The encoding format of the text. Null means UTF-8.
        Throws:
        CustomerDisplayDevException - CustomerDisplayDevException
        Since:
        V3.25.00
      • clear

        @Deprecated
        void clear(int x,
                                int y,
                                int width,
                                int height)
                         throws CustomerDisplayDevException
        Deprecated. 
        清除客显屏指定区域。
        Clear the designated area of the Customer screen.
        Parameters:
        x -
        x坐标。
        X coordinates.
        y -
        y坐标。
        Y coordinates.
        width -
        清除宽度。
        Clearance width.
        height -
        清除高度。
        Clearance height.
        Throws:
        CustomerDisplayDevException - CustomerDisplayDevException
        Since:
        V3.25.00
      • setFont

        @Deprecated
        void setFont(int style,
                                  int height)
                           throws CustomerDisplayDevException
        Deprecated. 
        设置顾客显示屏的字体。
        Set the font of the customer display.
        Parameters:
        style -
        • 0: 正常。
        • 1: 加粗。
        • 2: 斜体。
        • 3: 斜体加粗。
        • 0: normal.
        • 1: bold.
        • 2: italic.
        • 3: bold italic.
        height -
        字体高度。单位: 像素。
        Font height. Unit: pixel.
        Throws:
        CustomerDisplayDevException - CustomerDisplayDevException
        Since:
        V3.25.00
      • startSignBoard

        @Deprecated
        void startSignBoard(int timeout)
                                  throws CustomerDisplayDevException
        Deprecated. 
        启动顾客显示屏的签名板。
        Start the signature board on the customer display.
        Parameters:
        timeout -
        超时时间。单位: 毫秒。
        Timeout. unit: millisecond.
        Throws:
        CustomerDisplayDevException - CustomerDisplayDevException
        Since:
        V3.25.00
      • setDefaultBackgroundImage

        void setDefaultBackgroundImage(int op,
                                       android.graphics.Bitmap bitmap)
                                throws CustomerDisplayDevException
        设置客显屏默认显示内容。
        Set the default content displayed on the guest screen.
        Parameters:
        op -
        • 0: 删除客制化bitmap,系统将显示自带的bitmap, 此时bitmap可为null。
        • 1: 添加客制化bitmap作为默认显示内容。
        • 0: If you delete a customized bitmap, the system displays its own bitmap. In this case, the bitmap can be null
        • 1: Add customized bitmap as the default display content
        bitmap -
        作为默认显示内容的客制化bitmap
        Customized bitmap as the default display content
        Throws:
        WLCustomerDisplayDevException
        CustomerDisplayDevException
        Since:
        V4.10.00