BookPageLayoutService
interface BookPageLayoutService
Domain service that calculates initial book page items, spread combinations, and split layouts.
Functions
Link copied to clipboard
abstract fun createInitialPages(totalPageCount: Int, pageFormat: BookSettings.PageFormat, isCompactWindow: Boolean): List<BookPage>
Creates the initial list of book pages based on the display format and total page count.
Link copied to clipboard
abstract fun resolvePage(currentList: List<PageItem>, unratedPage: UnratedPage, isPortrait: Boolean): List<PageItem>
Resolves an unrated page once its aspect ratio is determined and returns the updated page list.