my.getDeviceBaseInfo
Obtain basic information about the device.
Supported SDK versions: 2.76.0 and the above versions
Supported types of mini programs: DSL
Sample code
See the following JavaScript sample code:
copy
const deviceBaseInfo = my.getDeviceBaseInfo();
console.log(deviceBaseInfo);Return value
Property | Data type | Description |
brand | String | Device brand |
model | String | Device model |
system | String | Operating system version |
platform | String | Name of the operating system Valid values:
|
abi | String | Application binary interface type (Supported on Android only) |
performance | String | Device performance level (Supported on Android only) Possible values:
|