wx.getSystemInfo
wx.getSystemInfoAsync
Get the system information, the returned host In the information appid It's a multi-application. Appid, not a Mini Program appid
Object object
| attribute | type | Default value | Required | Introductions |
| success | function | | no | Interface calls a successful callback function |
| fail | function | | no | Interface to call a failed callback function |
| complete | function | | no | The callback function at the end of the interface call (the call is executed on success or failure) |
object.success Callback function parameter
| parameter | type | Introductions |
| brand | string | Equipment brand |
| model | string | Type of equipment |
| pixelRatio | number | Device pixel ratio |
| screenWidth | number | Screen width in px |
| screenHeight | number | Screen height in px |
| windowWidth | number | Available window width in px |
| windowHeight | number | Window height available in px |
| statusBarHeight | number | Height of the screen, in px |
| system | string | Operating system and version |
| platform | string | android Express Android AppIOS said that iOS, App |
| SDKVersion | string | Base Library Version |
| benchmarkLevel | string | Equipment Performance Class |
| safeArea | Object | The safe area in the positive direction of the vertical screen |
| locationReducedAccuracy | boolean | true Represents a fuzzy positioning,false Indicates a precise positioning, only iOS Support |
| theme | string | The current topic of the system, with a value oflightordark, Global Configuration"darkmode":trueCan be obtained, otherwise undefined (No support for small games) |
| host | Object | The host environment in which the current application is running |
| enableDebug | boolean | Is debugging turned on |
| deviceOrientation | string | Direction of equipment |
| errMsg | string | Error message, new return |
| abi | string | Added Back, Android Device's CPU type |
host
| parameter | type | Introductions |
| env | string | The running environment, with a value of "SAAASDK" |
| appId | string | Multiterminal application id |
| version | string | SDK Version string |
| packageName | string | Corresponding Android Package name for the app, Android Return to the system. |
| bundleIdentifier | string | Corresponding iOS of Bundle ID ,iOS Return to the system. |
| appVersion | string | App Application version |
| sdkVersion | string | SDK version |
wx.getSystemInfoSync
Return the same content wx.getSystemInfoAsync of [object.success The callback function parameter of the](#Object.success- Callback Function)
iOS Applied wx.getSystemInfo return Language The mapping relationship used to update the explaination
| Original value | Actual return value |
| zh-Hans | zh_CN |
| zh-CN | zh_CN |
| zh-Hant | zh_TW |
| zh-TW | zh_TW |
| zh-HK | zh_HK |
- Other Missing Language Unity returns the true set of the system Wolves, for example: el - CN return el