Class: RotateRecognizer

RotateRecognizer

new RotateRecognizer()

Rotate
Recognized when two or more pointer are moving in a circular motion.

Extends

Namespaces

defaults

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

You should use tryEmit instead of emit 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 method

Name 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

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