Class: GestureRecognizer

GestureRecognizer()

new GestureRecognizer()

Members

(static) STATE

Properties:
Name Type Description
NONE number
POSSIBLE number
SATISIFIED number
CANCELLED number

Methods

(static) accumulateRecognizer(minX, maxX, minY, maxY, callback) → {GestureRecognizer}

Parameters:
Name Type Description
minX number
maxX number
minY number
maxY number
callback function
Returns:
Type
GestureRecognizer

(static) basicRecognizer(mode, callback) → {GestureRecognizer~callback}

Parameters:
Name Type Description
mode "absolute" | "relative"
callback BasicRecognizerCallback
Returns:
Type
GestureRecognizer~callback

(static) longTapRecognizer(duration, maxMove, callback) → {GestureRecognizer}

Parameters:
Name Type Description
duration number
maxMove number
callback function
Returns:
Type
GestureRecognizer

cancel(e)

For override
Parameters:
Name Type Description
e Event

end(e)

For override
Parameters:
Name Type Description
e Event

failed()

move(e)

For override
Parameters:
Name Type Description
e Event

satisified()

shouldBeCancelled(otherRecognizer) → {boolean}

Parameters:
Name Type Description
otherRecognizer GestureRecognizer
Returns:
Type
boolean

shouldCancelOtherRecognizer(otherRecognizer) → {boolean}

Parameters:
Name Type Description
otherRecognizer GestureRecognizer
Returns:
Type
boolean

start(e)

For override
Parameters:
Name Type Description
e Event

Type Definitions

callback(state, x, y)

Parameters:
Name Type Description
state string "start" or "move" or "end"
x number
y number