Skip to content

Added getAppIcon method

Compare
Choose a tag to compare
@Toxblh Toxblh released this 19 Feb 12:32
· 232 commits to master since this release

Thank you @dylancom

Two new methods for get app icon

+ getAppIcon(iconPath: string, done?: (err: Error | {code: string} | null, res: WSData | string | null) => void): void;
+ getAppIconPromise(iconPath: string): Promise<WSData | null>;

Example

    // Get app icon by iconPath which you can get from getAppsFromTV
    control.getAppIcon(
      `/opt/share/webappservice/apps_icon/FirstScreen/${APPS.YouTube}/250x250.png`,
      (err, res) => {
        if (!err) {
          console.log('# Response getAppIcon', res)
        }
      }
    )