InputDeviceCapabilities: InputDeviceCapabilities() constructor
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The InputDeviceCapabilities() constructor creates a new
InputDeviceCapabilities object provides information about the physical
device responsible for generating a touch event.
Syntax
js
new InputDeviceCapabilities()
new InputDeviceCapabilities(InputDeviceCapabilitiesInit)
Parameters
InputDeviceCapabilitiesInitOptional-
A dictionary object containing a set of device capabilities. It contains the following property.
fireTouchEvents: A boolean value that indicates whether the device dispatches touch events.
Return value
An instance of the InputDeviceCapabilities interface.
Specifications
| Specification |
|---|
| Input Device Capabilities # dom-inputdevicecapabilities-constructor |
Browser compatibility
| desktop | mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
InputDeviceCapabilities() constructor
|
|
|
|
|
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.