Skip to content

RuntimeDeviceManager ​

getDeviceId() ​

功能描述 ​

获取runtime设备id。

参数 ​

无

返回值 ​

String deviceId

属性类型默认值说明
deviceIdStringnull设备ID

示例代码 ​

点击查看源码
js
import {RuntimeDeviceManager} from "@extscreen/es-runtime";

let deviceId = RuntimeDeviceManager.getDeviceType()

注意 ​

无

getDeviceType() ​

功能描述 ​

获取runtime设备类型。

参数 ​

无

返回值 ​

String deviceType

属性类型默认值说明
deviceTypeStringnull设备类型

示例代码 ​

点击查看源码
js
import {RuntimeDeviceManager} from "@extscreen/es-runtime";

let deviceType = RuntimeDeviceManager.getDeviceType();

注意 ​

无