bn.getDeviceInfo
▸ getDeviceInfo(): DeviceInfo
description
The api to get system window info
remark
supported jssdk >= 4.0.0
example
const deviceInfo = bn.getDeviceInfo()
console.log(deviceInfo.abi)
console.log(deviceInfo.benchmarkLevel)
console.log(deviceInfo.brand)
console.log(deviceInfo.model)
console.log(deviceInfo.platform)
console.log(deviceInfo.system)
Returns
DeviceInfo
DeviceInfo
DeviceInfo
Ƭ DeviceInfo: Object
Type declaration
Name | Type | Description |
---|---|---|
brand | string | Equipment brand |
model | string | Device model. New models will show unknown for a while, WeChat will adapt as soon as possible. |
system | string | Operating System and Version |
platform | string | Client platform |