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 suspend fun fetchResourceData(resourceUrl: String): ColibrioResult<ByteArray>
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 units of measure that can be used when creating ContentPositionTimeline objects using this publication.

Link copied to clipboard

The sync media formats available in this publication.

Link copied to clipboard

The base URL used when creating Locators pointing to content in this publication.

Link copied to clipboard

Additional information about the source publication such as preferred way to render its content, its metadata, etc.

Link copied to clipboard
abstract val spine: List<ReaderDocument>

The ordered list of ReaderDocument instances in this publication.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard