目录

How do I obtain the SDK version, product version, device type (tablet or mobile phone), and build version of a device?

Use the deviceInfo module of @kit.BasicServicesKit to obtain the information about the device where the application is located.

For details, see @ohos.deviceInfo (Device Information).