goToStart

abstract fun goToStart(onSuccess: () -> Unit = {}, onError: (ColibrioException) -> Unit = {})

Go to the start of the first ReaderDocument in this ReaderView.

Calls onSuccess when the active renderer has navigated to the new location. Calls onError with errorType set to "ABORTED" if goTo() or goToStart() is called again before this call to goToStart() had completed successfully.


abstract suspend fun goToStart(): ColibrioResult<Unit>

Go to the start of the first ReaderDocument in this ReaderView.

Return

Either ColibrioResult.Success when the active renderer has navigated to the new location, or ColibrioResult.Error with errorType set to "ABORTED" if goTo() or goToStart() is called again before this call to goToStart() had completed successfully.