获取系统信息


接口说明

获取系统信息:包含设备OS类型、设备版本、设备名称。

HWH5.getDeviceInfo

请求参数

无。

返回结果

参数 说明
deviceName 设备名称
osType 设备平台类型,可选值:iOS、android
osVersion 系统版本
deviceID 设备ID

请求示例

  • ES6示例
    HWH5.getDeviceInfo().then(data => {   
      console.log(data); 
    }).catch(error => {   
      console.log('获取设备信息异常', error); 
    });
    
  • ES5示例
    HWH5.getDeviceInfo().then(function (data) {   
      console.log(data); 
    }).catch(function (error) {   
      console.log('获取设备信息异常', error); 
    });
    

result. ""

    Not Found. ""