Class TouchList
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The TouchList interface represents a list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries.
[Value("TouchList")]
public class TouchList
- Inheritance
-
TouchList
- Inherited Members
Remarks
This interface was an attempt to create an unmodifiable list and only continues to be supported to not break code that's already using it. Modern APIs represent list structures using types based on JavaScript arrays, thus making many array methods available, and at the same time imposing additional semantics on their usage (such as making their items read-only).
These historical reasons do not mean that you as a developer should avoid TouchList. You don't create TouchList objects yourself, but you get them from APIs such as TargetTouches, and these APIs are not deprecated. However, be careful of the semantic differences from a real array.
-Touch events
-Document.CreateTouchList
Constructors
TouchList()
public TouchList()
Properties
Length
The length read-only property indicates the number of
items (touch points) in a given TouchList.
[Value("length")]
public ulong Length { get; }
Property Value
- ulong
The number of touch points in
touchList.