chrome.enterprise.hardwarePlatform

说明

使用 chrome.enterprise.hardwarePlatform API 获取浏览器运行的硬件平台的制造商和型号。注意:此 API 仅适用于由企业政策安装的扩展程序。

权限

enterprise.hardwarePlatform

可用性

Chrome 71 及更高版本 需要政策

类型

HardwarePlatformInfo

属性

  • 制造商

    字符串

  • 模型

    字符串

方法

getHardwarePlatformInfo()

chrome.enterprise.hardwarePlatform.getHardwarePlatformInfo(): Promise<HardwarePlatformInfo>

获取硬件平台的制造商和型号,并在扩展程序获得授权后通过 callback 返回。

返回