chrome.enterprise.hardwarePlatform Stay organized with collections Save and categorize content based on your preferences.
EnterpriseHardwarePlatformAPIEnabled
key must also be set.Description
Use thechrome.enterprise.hardwarePlatform
API to get the manufacturer and model of the hardware platform where the browser runs. Note: This API is only available to extensions installed by enterprise policy.
Permissions
enterprise.hardwarePlatform
Availability
Types
HardwarePlatformInfo
Properties
- manufacturer
string
- model
string
Methods
getHardwarePlatformInfo()
chrome.enterprise.hardwarePlatform.getHardwarePlatformInfo(
callback?: function,
)
Obtains the manufacturer and model for the hardware platform and, if the extension is authorized, returns it viacallback
.
Parameters
- callback
function optional
The
callback
parameter looks like:(info: HardwarePlatformInfo) => void
Returns
Promise<HardwarePlatformInfo>
Chrome 96+Promises are supported in Manifest V3 and later, but callbacks are provided for backward compatibility. You cannot use both on the same function call. The promise resolves with the same type that is passed to the callback.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-19 UTC.