fetch Locator
Fetches a locator that most closely matches the specified timelinePosition
.
By passing 0, you fetch the locator matching the start of the timeline. By passing the value returned by ContentPositionTimeline.length
, you fetch the locator matching the end of the timeline.
For example, if the timeline has WORDS as unit of measurement, calling fetchLocator(20)
will fetch the locator pointing to the start of the 21st word in the publication.
Parameters
An integer value that will be clamped between 0 and the timeline length.
Called with the locator that most closely matches the specified timelinePosition
Called if an error occurs when the operation is performed.
Fetches a locator that most closely matches the specified timelinePosition
.
By passing 0, you fetch the locator matching the start of the timeline. By passing the value returned by ContentPositionTimeline.length
, you fetch the locator matching the end of the timeline.
For example, if the timeline has WORDS as unit of measurement, calling fetchLocator(20)
will fetch the locator pointing to the start of the 21st word in the publication.
Return
Either ColibrioResult.Success containing the locator that most closely matches the specified timelinePosition
, or ColibrioResult.Error containing the error.
Parameters
An integer value that will be clamped between 0 and the timeline length.