fetch Locator As Range
Fetches a locator as a range that most closely matches the given start and end timeline positions.
The returned locator will contain the content up-to but not including the end timeline position. For example, if the timeline has WORDS as unit of measurement, calling fetchLocatorAsRange(0, 20)
will fetch a locator starting at the beginning of word 0 up to the end of word 19.
Parameters
An integer value that will be clamped between 0 and the timeline length.
An integer value that will be clamped between start
and timeline length.
Called with the locator that most closely matches the given start and end timeline positions.
Called if an error occurs when the operation is performed.
Fetches a locator as a range that most closely matches the given start and end timeline positions.
The returned locator will contain the content up-to but not including the end timeline position. For example, if the timeline has WORDS as unit of measurement, calling fetchLocatorAsRange(0, 20)
will fetch a locator starting at the beginning of word 0 up to the end of word 19.
Return
Either ColibrioResult.Success containing the locator that most closely matches the given start and end timeline positions, or ColibrioResult.Error containing the error.
Parameters
An integer value that will be clamped between 0 and the timeline length.
An integer value that will be clamped between start
and timeline length.