LongPressGestureDetector Class Reference

Long press detector. More...

Inheritance diagram for LongPressGestureDetector:
GestureDetector

List of all members.

Public Member Functions

 LongPressGestureDetector ()
 Constructor.

Protected Member Functions

internal override
GestureDetectorResponse 
OnTouchEvent (TouchEventCollection touchEvents)
 Distributes a touch event.
internal override void OnResetState ()
 Resets the state of gesture analysis.

Properties

float MaxDistance [get, set]
 Obtains and sets the maximum allowable distance from the first down position.
float MinPressDuration [get, set]
 Obtains and sets the minimum time until a long press is detected.

Events

EventHandler< LongPressEventArgsLongPressDetected
 Long press event handler.

Detailed Description

Long press detector.


Member Function Documentation

internal override GestureDetectorResponse OnTouchEvent ( TouchEventCollection  touchEvents) [protected, virtual]

Distributes a touch event.

Parameters:
touchEventsTouch event
Returns:
Response to touch event distribution

Implements GestureDetector.


Property Documentation

float MinPressDuration [get, set]

Obtains and sets the minimum time until a long press is detected.

(ms)