跳转到内容

Device

此内容尚不支持你的语言。

const Device: object

Defined in: device/index.ts:15

Requests requiring a player gesture must be called from the host event itself.

capabilities: () => DeviceCapabilities

DeviceCapabilities

dispose: () => void

void

fullscreen: (enabled, target?) => Promise<DeviceResult>

boolean

unknown

Promise<DeviceResult>

keepScreenOn: (enabled) => Promise<DeviceResult>

boolean

Promise<DeviceResult>

motion: object

onChange: (handler) => () => void

(sample) => void

() => void

start: (options?) => Promise<DeviceResult>

MotionOptions

Promise<DeviceResult>

stop: () => Promise<DeviceResult>

Promise<DeviceResult>

onChange: (handler) => () => void

(state) => void

() => void

pointerLock: (enabled, target?) => Promise<DeviceResult>

boolean

unknown

Promise<DeviceResult>

state: () => DeviceState

DeviceState

vibrate: (options?) => Promise<DeviceResult>

VibrationOptions

Promise<DeviceResult>