New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

luck-pc-client-app

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

luck-pc-client-app

PC客户端基础功能插件包。

latest
npmnpm
Version
1.5.13
Version published
Maintainers
1
Created
Source

简介

PC客户端基础功能插件包。

app相关的api统一声明在windows.app对象下。

例如,可在嵌入页面中通过js访问应用的根目录:

windows.app.getAppPath();

Api

getAppPath():string

获取应用路径

getAppDataPath():string

获取应用数据存储路径

setTitle(string title)

应用图标闪动

flashFrame

应用图标闪动

setBadge

应用图标和托盘数字

notifi(string title, string message)

发送通知

setProgress(float progress)

应用图标进度设置。

  • progress:0到1之间的浮点数

playSound(string soundPath)

播放声音,只支持标准wav格式.

  • soundPath:音频文件绝对路径

createWindow(string url, json config)

创建新窗口。

  • url:打开的url地址
  • config:窗口配置,参考:BrowserWindow

closeWindow()

关闭当前窗口。

showWindow()

显示当前窗口.

hideWindow()

隐藏当前窗口.

maximizeWindow()

最大化当前窗口。

unmaximizeWindow()

取消最大化当前窗口。

minimizeWindow()

最小化当前窗口。

restoreWindow()

从最小化等状态恢复当前窗口。

fullScreenWindow()

全屏当前窗口。

getWindowStatus()

获取当前窗口状态。

FAQs

Package last updated on 23 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts