Skip to content

sud.getSystemInfoSync ​

JS
    Object sud.getSystemInfoSync()

Deprecated

This synchronous version of sud.getSystemInfo is no longer maintained. Use sud.getSystemSetting, sud.getAppAuthorizeSetting, sud.getDeviceInfo, or sud.getWindowInfo according to the information you need.

Return Value

  • Object: Returns the system information.

Properties of the system information:

PropertyTypeDescription
brandstringPhone brand
modelstringPhone model
pixelRationumberDevice pixel ratio
screenWidthnumberScreen width
screenHeightnumberScreen height, in px
windowWidthnumberUsable window width, in px
windowHeightnumberUsable window height, in px
statusBarHeightnumberStatus bar height, in px
languagestringSystem language
coreVersionstringClient base library version
systemstringOperating system version
platformstringClient platform
cameraAuthorizedbooleanWhether camera permission is granted
locationAuthorizedbooleanWhether location permission is granted
microphoneAuthorizedbooleanWhether microphone permission is granted
notificationAuthorizedbooleanWhether notification permission is granted
locationEnabledbooleanWhether the system location switch is on
wifiEnabledbooleanWhether the system Wi-Fi switch is on
safeAreaObjectSafe area in the upright portrait orientation, in the window coordinate system

Properties of the safeArea property

PropertyTypeDescription
leftnumberX coordinate of the top-left corner of the safe area, in logical pixels
rightnumberX coordinate of the bottom-right corner of the safe area, in logical pixels
topnumberY coordinate of the top-left corner of the safe area, in logical pixels
bottomnumberY coordinate of the bottom-right corner of the safe area, in logical pixels
widthnumberWidth of the safe area, in logical pixels
heightnumberHeight of the safe area, in logical pixels