Integration APIReference
onInkAwayAnnotate
Open annotation using Ink Away’s existing action.
Call this from your own annotation button or menu action after connecting. Ink Away opens on the topmost connected viewer that is shown; otherwise on KOReader's own page.
if self.ink and self.ui.inkAwayIntegrationAPI == self.ink then
self.ink:onInkAwayAnnotate()
endArguments
None.
Returns
true: the action was handled. This does not confirm that the editor opened.
Use onAnnotationOpened or a scoped on_open
callback when you need confirmation.
Things to know
- No open book means no editor, even though the return value is
true. - Requesting an already-shown editor does not open a second one.
- Read-only annotation data or initialization failures can prevent opening.