Class TouchList


  • @JsType(isNative=true,
            namespace="<global>")
    public final class TouchList
    extends Object
    Represents a list of contact points on a touch surface.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • length

        @JsProperty(name="length")
        public int length()
        Returns the number of touch objects in the touch list.
        Returns:
        the number of touch objects in the touch list
      • item

        @JsMethod
        public BaseTouch item​(int index)
        Returns the touch object at the specified index in the list.
        Parameters:
        index - the index to get the touch object
        Returns:
        the touch object at the specified index