public static final class

MotionEvent.PointerProperties

extends Object
java.lang.Object
   ↳ android.view.MotionEvent.PointerProperties

Class Overview

Transfer object for pointer properties. Objects of this type can be used to specify the pointer id and tool type when creating new MotionEvent objects and to query pointer properties in bulk.

Summary

Fields
public int id The pointer id.
public int toolType The pointer tool type.
Public Constructors
MotionEvent.PointerProperties()
Creates a pointer properties object with an invalid pointer id.
MotionEvent.PointerProperties(MotionEvent.PointerProperties other)
Creates a pointer properties object as a copy of the contents of another pointer properties object.
Public Methods
void clear()
Resets the pointer properties to their initial values.
void copyFrom(MotionEvent.PointerProperties other)
Copies the contents of another pointer properties object.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public int id

Since: API Level 14

The pointer id. Initially set to INVALID_POINTER_ID (-1).

public int toolType

Since: API Level 14

The pointer tool type. Initially set to 0.

See Also

Public Constructors

public MotionEvent.PointerProperties ()

Since: API Level 14

Creates a pointer properties object with an invalid pointer id.

public MotionEvent.PointerProperties (MotionEvent.PointerProperties other)

Since: API Level 14

Creates a pointer properties object as a copy of the contents of another pointer properties object.

Public Methods

public void clear ()

Since: API Level 14

Resets the pointer properties to their initial values.

public void copyFrom (MotionEvent.PointerProperties other)

Since: API Level 14

Copies the contents of another pointer properties object.

Parameters
other The pointer properties object to copy.