Skip to content

Get Device List ​

Get list of all devices and their detailed information.

Interface Description ​

Interface Type ​

getDevices

Return Value ​

Returns an object with device ID as key and device details as value:

javascript
{
    "P72578581E07": {
        "info": {
            "deviceId": 'P72578581E07',
            "deviceName": "Device Name",
            "deviceIdentifier": "Device Identifier",
            "deviceChip": "USB Chip ID",
            "screenWidth": 750,
            "screenHeight": 1334,
            "orientation": 0,
            "screenScale": 2,
            "deviceVersion": "iOS Version",
            "deviceRounded": false
        },
        "plugged": true  // Whether USB is plugged in,
        "online": true   // Online
    },
    //...
}

Return Field Description ​

info Object Fields ​

Field NameTypeDescriptionExample Value
deviceNamestringDevice name (customizable)"My iPhone"
deviceIdentifierstringDevice unique identifier"P72578581E07"
deviceChipstringUSB chip IDXXXXXXXXXXX
screenWidthnumberScreen width (pixels)1179
screenHeightnumberScreen height (pixels)2556
orientationnumberScreen orientation1 (portrait) / 2 (landscape)
screenScalenumberScreen scale ratio3.0
deviceVersionstringiOS system version"17.0"
deviceRoundedbooleanWhether rounded screentrue / false

Cooperation: try.catch@foxmail.com