rememberKiteDocViewState
Remembers a KiteDocViewState for document. Hoist it to drive a KiteDocView from anywhere: navigation buttons in your top bar, a zoom slider, a HUD overlay. The state object is the single point of control.
Takes any KiteDocument, so a io.github.yuroyami.kitepdf.PdfDocument and an io.github.yuroyami.kitepdf.epub.EpubDocument both go here; one viewer path serves both formats.
Remembers a KiteDocViewState opened at bookmark, a position saved from an earlier reading session.
This is the fast way into a big reflowable book: only the bookmark's chapter is laid out before the page appears, and the rest follows in the background. Take the bookmark back with KiteDocViewState.currentBookmark.
val state = rememberKiteDocViewState(book, savedBookmark)
KiteDocView(state, Modifier.fillMaxSize())Remembers a state reopened at a page and continuous scroll offset.