Skip to content

getCurrentWindowId 获取窗口ID Async

获取当前激活窗口的ID

接口实例:XbaseKit.windowApi

使用

ts
XbaseKit.windowApi.getCurrentWindowId()

示例

ts
XbaseKit.windowApi.getCurrentWindowId().then((res) => {
  console.log(res)
})

Released under the MIT License.