fetchLocatorFromPageIndex

abstract fun fetchLocatorFromPageIndex(pageIndex: Int, onSuccess: (SimpleLocatorData) -> Unit, onError: (ColibrioException) -> Unit)

Fetch a locator from a zero-based pageIndex. The passed pageIndex will be clamped between the timeline start and end.

If a locator could be fetched, onSuccess will be called. Otherwise onError is called.


Fetch a locator from a zero-based pageIndex. The passed pageIndex will be clamped between the timeline start and end.

Return

Either ColibrioResult.Success with the result if a locator could be fetched, or ColibrioResult.Error containing the error.