new PressRecognizer()
Press
Recognized when the pointer is down for x ms without any movement.
Extends
Namespaces
Members
-
abstractdefaultsObject
-
Methods
-
inherited canEmit(){boolean}
-
can we emit?
-
inherited canRecognizeWith(otherRecognizer){Boolean}
-
if the recognizer can recognize simultaneous with an other recognizer
Name Type Description otherRecognizer
Recognizer -
inherited dropRecognizeWith(otherRecognizer){Recognizer}
-
drop the simultaneous link. it doesnt remove the link on the other recognizer.
Name Type Description otherRecognizer
Recognizer -
inherited dropRequireFailure(otherRecognizer){Recognizer}
-
drop the requireFailure link. it does not remove the link on the other recognizer.
Name Type Description otherRecognizer
Recognizer -
inherited emit(input)
-
You should use
tryEmit
instead ofemit
directly to check
that all the needed recognizers has failed before emitting.Name Type Description input
Object -
inherited abstractgetTouchAction(){Array}
-
return the preferred touch-action
-
inherited hasRequireFailures(){boolean}
-
has require failures boolean
-
inherited abstractprocess(inputData){Const}
-
return the state of the recognizer
the actual recognizing happens in this methodName Type Description inputData
Object -
inherited recognize(inputData)
-
update the recognizer
Name Type Description inputData
Object -
inherited recognizeWith(otherRecognizer){Recognizer}
-
recognize simultaneous with an other recognizer.
Name Type Description otherRecognizer
Recognizer -
inherited requireFailure(otherRecognizer){Recognizer}
-
recognizer can only run when an other is failing
Name Type Description otherRecognizer
Recognizer -
inherited abstractreset()
-
called when the gesture isn't allowed to recognize
like when another is being recognized or it is disabled -
inherited set(options){Recognizer}
-
set options
Name Type Description options
Object -
inherited tryEmit(input)
-
Check that all the require failure recognizers has failed,
if true, it emits a gesture event,
otherwise, setup the state to FAILED.Name Type Description input
Object