iink SDK on Device

Answered

How can i get the gesture type?

 https://developer.myscript.com/refguides/interactive-ink/android/1.4/


 

com.myscript.iink Class Editor

void pointerEvents(PointerEvent[] events, boolean processGestures)

Registers a list of pointer events.

How can i can take "processGestures" for this problem?


Best Answer

Dear User,


in batch mode, it is not possible to detect gestures. This is only possible in incremental mode.


Also, please note in incremental mode we do not have a "gesture listener", that would return the detected gesture.


Best regards,


Olivier


Answer

Dear User,


in batch mode, it is not possible to detect gestures. This is only possible in incremental mode.


Also, please note in incremental mode we do not have a "gesture listener", that would return the detected gesture.


Best regards,


Olivier


1 person likes this

Dear User,


thank you for contacting us.


Currently, in which context are you using the "pointerEvents" function? Are you using the iink SDK in batch mode (non-interactive offscreen mode)? https://developer.myscript.com/docs/interactive-ink/1.4/android/fundamentals/editing/#series-of-events


In that case, our recommendation is that you set the processGestures to false, as gesture detection shall not be activated when adding the strokes as series of events.


You can also refer to the corresponding API function: https://developer.myscript.com/refguides/interactive-ink/android/1.4/com/myscript/iink/Editor.html#pointerEvents-com.myscript.iink.PointerEvent:A-boolean-


Best regards,


Olivier

Dear Olivier:

Thank you for help.

>Currently, in which context are you using the "pointerEvents" function? Are you using the iink SDK in batch mode (non-interactive offscreen mode)? https://developer.myscript.com/docs/interactive->ink/1.4/android/fundamentals/editing/#series-of-events

I want to use iink SDK in batch mode, and need the batch mode can recognize the gesture, and give me the gesture type, how can i do?

Brs