applyTransform

abstract fun applyTransform(transformData: TransformData?, animationOptions: TransformAnimationOptions? = TransformAnimationOptions(), onSuccess: () -> Unit = {}, onError: (ColibrioException) -> Unit = {})

Applies the given transform to the ReaderView. Passing null will remove the ReaderView's active transform.

onError is called if canTransform is false


abstract suspend fun applyTransform(transformData: TransformData?, animationOptions: TransformAnimationOptions? = TransformAnimationOptions()): ColibrioResult<Unit>

Applies the given transform to the ReaderView. Passing null will remove the ReaderView's active transform.

Return

Either ColibrioResult.Success when successful, or ColibrioResult.Error if canTransform is false.