Reader Publication
interface ReaderPublication
A publication that has been processed for use by the Reading System.
Functions
Link copied to clipboard
abstract suspend fun createTtsSyncMediaTimeline(readerDocuments: List<ReaderDocument>, config: TtsSyncMediaTimelineConfiguration, progressCallback: (Double) -> Unit = {}): ColibrioResult<SyncMediaTimeline>
abstract fun createTtsSyncMediaTimeline(readerDocuments: List<ReaderDocument>, config: TtsSyncMediaTimelineConfiguration, onSuccess: (SyncMediaTimeline) -> Unit, onError: (ColibrioException) -> Unit, progressCallback: (Double) -> Unit = {})
Creates a new TTS SyncMediaTimeline from the specified list of ReaderDocuments. The resulting SyncMediaTimeline can be played using a SyncMediaPlayer.
Link copied to clipboard
abstract fun fetchPublicationNavigation(onSuccess: (ReaderPublicationNavigationData) -> Unit, onError: (ColibrioException) -> Unit)
Fetches the ReaderPublicationNavigationData of this publication.
Link copied to clipboard
abstract fun fetchResourceData(resourceUrl: String, onSuccess: (ByteArray) -> Unit, onError: (ColibrioException) -> Unit)
Fetches a resource from the source publication by URL.
Link copied to clipboard
Get a ContentLocation from a locator. Used for extracting location specific information from the publication.
Properties
Link copied to clipboard
The ordered list of ReaderDocument instances in this publication.