dlt.getSystemInfo
Introduction
The dlt.getSystemInfo
function is used to retrieve information about the user's mobile device and system.
Parameters
Object object
Property | Type | Default Value | Required | Description |
---|---|---|---|---|
success | function | No | Callback function for a successful API call. | |
fail | function | No | Callback function for a failed API call. | |
complete | function | No | Callback function that is called when the API call is complete (whether successful or not). |
object.success Callback Function
Parameters
Object res
Property | Type | Description |
---|---|---|
success | string | true - Successful retrieval. |
model | string | The model of the mobile device. |
pixelRatio | number | The device's pixel ratio, which is the ratio of physical pixels to logical pixels. |
windowWidth | number | The width of the window. |
windowHeight | number | The height of the window. |
language | string | The language setting on the device, following the ISO 639 specification. |
frameworkversion | string | The version of the framework package used. |
storage | string | The storage capacity of the device. |
currentBattery | string | The current battery level as a percentage. |
system | string | The operating system version. |
platform | string | The name of the operating system: "Android" or "iOS". |
screenWidth | number | The screen width in pixels. |
screenHeight | number | The screen height in pixels. |
brand | string | The brand of the mobile device. |
packageName | string | The package name of the host app. |
gaid | string | The device id of the host app. |
country | string | Country. |
mcc | string | Country code. |
capsuleHeight | number | Capsule height in px. |
capsuleWidth | number | Capsule width in px. |
capsuleTranslationY | number | Capsule vertical offset in px. |
capsuleTranslationX | number | Capsule horizontal offset in px. |
statusBarHeight | number | Status bar height in px. |
Example Code
dlt.getSystemInfo({
success(res) {
console.log('success: ', res);
},
});