1.0.11 • Published 2 years ago
@uni/system-info v1.0.11
systemInfo
Gets system information.
Supported
Install
$ npm install @uni/system-info --save
or
$ npm install @uni/apis --save
Usage
import { getInfo, getInfoSync } from '@uni/system-info';
getInfo().then(res => console.log(res));
let res = getInfoSync();
You can also import from the big package:
import { systemInfo } from '@uni/apis';
systemInfo.getInfo().then(res => console.log(res));
let res = systemInfo.getInfoSync();
Return
Property | Type | Description |
---|---|---|
pixelRatio | number | Device's pixel ratio |
screenWidth | number | Screen width in px |
screenHeight | number | Screen height in px |
windowWidth | number | Available window width in px |
windowHeight | number | Available window height in px |
language | string | Language,zh_CN 简体中文,zh_TW 繁体中文,en 英文 |
version | string | version |
platform | string | Client platform |
1.0.10-alpha.0
2 years ago
1.0.11-alpha.1
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.10-beta.0
3 years ago
1.0.9
3 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.4-beta
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
1.0.0-beta1
4 years ago
1.0.0-beta
4 years ago