fetch Locator From Position
abstract fun fetchLocatorFromPosition(position: PageProgressionTimelinePositionData, onSuccess: (SimpleLocatorData) -> Unit, onError: (ColibrioException) -> Unit)
Fetch a locator from a timeline position. The passed position will be clamped between the timeline start and end position.
If a locator could be fetched, onSuccess will be called. Otherwise onError is called.
abstract suspend fun fetchLocatorFromPosition(position: PageProgressionTimelinePositionData): ColibrioResult<SimpleLocatorData>
Fetch a locator from a timeline position. The passed position will be clamped between the timeline start and end position.
Return
Either ColibrioResult.Success with the result if a locator could be fetched, or ColibrioResult.Error containing the error.