跳到主要内容

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

NameTypeDescription
brandstringEquipment brand
modelstringDevice model. New models will show unknown for a while, WeChat will adapt as soon as possible.
systemstringOperating System and Version
platformstringClient platform