iink SDK on Device

Answered

aiEditor.waitForIdle(); 是否有超时或者强制退出机制?多久超时?

    private String getRecognitionText(Editor aiEditor) {

//是否有超时或者停止机制?如果有,多久超时

        aiEditor.waitForIdle();  

        String recognitionText = null;

        try {  

             recognitionText = aiEditor.export_((ContentBlock) null, MimeType.JIIX, aiEditor.getConfiguration());

              } catch (IOException e) {  

            

        }

        return recogResult;  

    }


Best Answer

Dear Deny,


thank you for contacting us.


To answer your question, there is no delay/expiration mechanism for the waitForIdle ; If you process a very huge file, you may have to wait for a long time (e.g. 30 minutes, or more).


Also, please note there is not API function to stop the recognition process.


Best regards,


Olivier


1 person has this question

Page error, unable to open

Dear Sir,


currently, it seems you are posting in the wrong place.

Are you using our iink SDK, or our Nebo application? if Nebo, please submit any question you may have in the "My tickets" part of our application support site: https://app-support.myscript.com/support/home


Best regards,


Olivier

Answer

Dear Deny,


thank you for contacting us.


To answer your question, there is no delay/expiration mechanism for the waitForIdle ; If you process a very huge file, you may have to wait for a long time (e.g. 30 minutes, or more).


Also, please note there is not API function to stop the recognition process.


Best regards,


Olivier

Login or Signup to post a comment