ui.inkAwayIntegrationAPI
Find out whether Ink Away is ready for this reader.
Read this field to get the initialized Ink Away instance.
| Type | Value |
|---|---|
Ink Away object or nil | Ready instance after initialization; nil before readiness or after reader closure. |
local ink = self.ui.inkAwayIntegrationAPI
if ink then
self:configureInkAway(ink)
endIt is a small table with only the public members: the two version numbers,
ui (the reader it belongs to), and the methods listed under Public API.
Ink Away sets and clears this field. Do not assign it yourself. There is no separate loaded boolean to maintain.
When the book closes, the field becomes nil and the old table refuses new
installations.
When it is nil during reader setup, use
inkAwayPendingIntegrations. When your reader is
closing, clean up instead of adding another request.
ui["ink-away"] may not exist yet while Ink Away initializes. The ready field
and the instance passed to configureInkAway avoid that loading-order problem.
Readiness does not guarantee an API version: check the version fields you use.