# wx.getSystemInfo(Object object)

Acquire system information

# Parameter

# Object object
property type default value optional description version
success function no 接口调用成功的回调函数
fail function no 接口调用失败的回调函数
complete function no 接口调用结束的回调函数(调用成功、失败都会执行)
# object.Success Callback

Parameter

Object res

property type description version
brand string Phone brand 1.5.0
model string Phone model
pixelRatio number Device pixel ratio
screenWidth number Screen width 1.1.0
screenHeight number Screen height 1.1.0
windowWidth number Usable window width
windowHeight number Usable window height
statusBarHeight number Status bar height 1.9.0
language string WeChat settings language
version string WeChat version number
system string OS version
platform string Client platform
fontSizeSetting number User font size setting. Subject to settings under 'Me > Settings > General > Text Size' (in px). 1.5.0
SDKVersion string Client base library version 1.1.0
benchmarkLevel number (Android only) Performance level. -2 or 0: This device cannot run the Mini Game; -1: Unknown performance; >=1: The higher is the value, the better is the device performance (Currently, the highest value is 50) 1.8.0
点击咨询小助手