Skip to content

运行时模块 ​

点我查看API

集成和使用ESRuntimeDeviceModule模块。

  • RuntimeDeviceManager是对ESRuntimeDeviceModule进一步封装。
  • 开发者可以直接使用ESRuntimeDeviceModule。建议直接使用RuntimeDeviceManager。

集成 ​

package.json引入库

点击查看源码
js
"@extscreen/es-runtime": "^x.x.x"

获取设备类型 ​

示例代码

点击查看源码
js
let deviceType = RuntimeDeviceManager.getDeviceType();

获取设备ID ​

示例代码

点击查看源码
js
let deviceId = RuntimeDeviceManager.getDeviceId();