getSystemInfoSync
同步获取系统信息
const result = system.getSystemInfoSync();
result示例:
{
"screenWidth": 1280,
"screenHeight": 800,
"pixelRatio": 1.25,
"platform": "Android",
"system": "6.1.8-D-20201202.2128",
"version": "1.1.195",
"versionCode": 195,
"app": "com.alibaba.genie.waft",
"sdkVersion": "0.3",
"sdkVersionCode": 3,
"model": "AILABS_S3",
"brand": "alps"
}
getSystemInfo
异步获取系统信息
system.getSystemInfo(function(info){
});
result示例:
{
"screenWidth": 1280,
"screenHeight": 800,
"pixelRatio": 1.25,
"platform": "Android",
"system": "6.1.8-D-20201202.2128",
"version": "1.1.195",
"versionCode": 195,
"app": "com.alibaba.genie.waft",
"sdkVersion": "0.3",
"sdkVersionCode": 3,
"model": "AILABS_S3",
"brand": "alps"
}
getCurrentTimeMillisSync
同步获取系统时间
const result = system.getCurrentTimeMillisSync();