Hello Sid,
For the moment, there are no APIs that let you know anything else than the solved result.
We designed the Offscreen APIs so it was completely up to the integrator to manage its ink, and Offscreen would simply add context (recognition) to it.
That being said, the use-case for solving looks quite valid to us and we will investigate if we can add in the JIIX export of the solver the strokes related to the computed result, so that you would be able to draw it yourself, at the best size and position possible (like in our classic editor).
For the moment, you would need to display the result by getting the position of the `=` sign and display the result as typeset text.
To get the state of our current solver export, you can use the following snippet (for example in the `IOffscreenEditorListener::contentChanged` callback):
blockIds.forEach { blockId -> val mathSolver = offscreenEditor?.mathSolverController ?: return@forEach if (itemIdHelper?.getBlockType(blockId) == "Math") { if (mathSolver.getAvailableActions(blockId).contains("numerical-computation")) { val solverJIIX = mathSolver.getActionOutput(blockId, "numerical-computation", MimeType.JIIX) Log.d(TAG, "Solver JIIX: $solverJIIX") } } }
Let us know if you need further assistance,
Yann from MyScript
Sid20245666