W3cubDocs

/DOM

InputDeviceCapabilities.constructor

The InputDeviceCapabilities() constructor creates a new InputDeviceCapabilities object provides information about the physical device responsible for generating a touch event.

Syntax

var inputDeviceCapabilities = new InputDeviceCapabilities([InputDeviceCapabilitiesInit])

Returns

An instance of the InputDeviceCapabilities interface.

Parameters

InputDeviceCapabilitiesInit Optional
A dictionary object containing a set of device capabilities. It contains the following property.
  • fireTouchEvents: A Boolean that indicates whether the device dispatches touch events.

Specifications

Specification Status Comment
InputDeviceCapabilities Draft Initial definition.

Browser compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 47 ? ? ? ? ?
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support 47 47 ? ? ? ? ?

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/InputDeviceCapabilities/InputDeviceCapabilities