chrome.enterprise.hardwarePlatform

說明

針對執行瀏覽器的硬體平台,您可以使用 chrome.enterprise.hardwarePlatform API 取得該硬體平台的製造商和型號。注意:這個 API 僅適用於由企業政策安裝的擴充功能。

權限

enterprise.hardwarePlatform

適用國家/地區

Chrome 71 以上版本 需要政策

類型

HardwarePlatformInfo

屬性

  • 製造商

    字串

  • model

    字串

方法

getHardwarePlatformInfo()

Promise
chrome.enterprise.hardwarePlatform.getHardwarePlatformInfo(
  callback?: function,
)

取得硬體平台的製造商和型號;如果擴充功能經過授權,則會透過 callback 傳回。

參數

傳回

  • Chrome 96 以上版本

    Promise 適用於 Manifest V3 及以上版本,但為了回溯相容性,提供回呼。您無法在同一函式呼叫中同時使用兩者。保證會以傳遞至回呼的類型來解析。