intersectsLocator

abstract fun intersectsLocator(locator: SimpleLocatorData, onSuccess: (Boolean) -> Unit, onError: (ColibrioException) -> Unit)

Checks if the specified locator intersects with this timeline.

Parameters

locator

The locator to check.

onSuccess

Called with true if the locator intersects with the timeline, false otherwise.

onError

Called if an error occurs when the operation is performed.


Checks if the specified locator intersects with this timeline.

Return

Either ColibrioResult.Success containing true if the locator intersects with the timeline and false otherwise, or ColibrioResult.Error containing the error.

Parameters

locator

The locator to check.


abstract fun intersectsLocator(navigationItem: ReaderPublicationNavigationItem, onSuccess: (Boolean) -> Unit, onError: (ColibrioException) -> Unit)

Checks if the specified navigationItem intersects with this timeline.

Parameters

navigationItem

The navigationItem to check.

onSuccess

Called with true if the navigationItem intersects with the timeline, false otherwise.

onError

Called if an error occurs when the operation is performed.


Checks if the specified navigationItem intersects with this timeline.

Return

Either ColibrioResult.Success containing true if the navigationItem intersects with the timeline and false otherwise, or ColibrioResult.Error containing the error.

Parameters

navigationItem

The navigationItem to check.