CreatorCreator
Home
Getting Started
  • 中文简体
  • English
Home
Getting Started
  • 中文简体
  • English
  • Creator

    • Getting Started
  • Stream Dock

    • Plugin SDK
    • Icon Pack

      • Overview
      • Terminology
      • Creating an Icon Pack
      • Icon Specifications
    • Scene Configuration

      • What is a Scenario Configuration?
      • Exporting
      • Use Cases
  • mPanel

    • Plugin SDK
  • Linux StreamDock SDK

    • Cpp SDK

      • Overview
      • Dependency
      • Device Manager
      • StreamDock Base Class
      • StreamDock293
      • Communication transmission
      • Example
      • Source code
    • Python SDK

      • Overview
      • Dependency
      • DeviceManager
      • StreamDock Base Class
      • StreamDock293
      • Example
      • Source Code
  • Windows StreamDock SDK

    • WebSocket SDK

      • Overview
      • Getting Started
      • Events to Send
      • Received Events
    • Cpp SDK

      • Overview
      • Dependency
      • Device manager
      • StreamDock Base Class
      • StreamDock293
      • Transport
      • Example
      • Source Code
  • Support

    • Help and Bug Reporting

StreamDock Base Class

The control class of all specific models needs to inherit the StreamDock base class. The StreamDock base class provides the following methods:

Get the firmware version of the device

unsigned char *streamDock::getFirmVersion(int lenth)

Open the device

int streamDock::open()

Close device

int streamDock::disconnected()

Set the brightness of the device screen

int streamDock::setBrightness(int percent)

Set background picture of the device screen

 int streamDock::setBackgroundImg(std::string path)

Set the background image of the device screen through a vector container that stores RGB data

int streamDock::setBackgroundImgData(std::vector<unsigned char>buffer, int width, int height)

Information sent by the device

unsigned char * streamDock::read()

Set the icon of the device button

int streamDock::setKeyImg(std::string path,int key)

Set the icon of the device button

int setKeyImgData(unsigned char* imagedata, int width, int height, int key);

Clear a key icon

int streamDock::cleaerIcon(int index)

All key icons are cleared

int streamDock::clearAllIcon()

Wake up the screen

int streamDock::wakeScreen()

Refresh the display after the transmission data is completed

int streamDock::refresh()
Last Updated:
Contributors: Heart
Prev
Device manager
Next
StreamDock293