Safari Developer Library

Developer

TouchList Class Reference

Options
Deployment Target:

On This Page

TouchList

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Not Applicable Not Applicable

Availability


Available in iOS 2.0 and later.

The TouchList class is used to represent a collection of Touch objects. For example, the changedTouches method in TouchEvent returns a TouchList object.

  • length Property

    The number of Touch objects in this TouchList object.

    Declaration

    JavaScript

    readonly attribute unsigned long length

    Availability

    Available in iOS 2.0 and later.

  • Returns the Touch object at the given index.

    Declaration

    JavaScript

    Touch item (in unsigned long index);

    Parameters

    index

    The index of the item to return.

    Availability

    Available in iOS 2.0 and later.