removeActiveTransform

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

Removes the ReaderView's current active transform.

onSuccess is called when the active transform has been removed. onSuccess is called immediately if the transform change is not animated.

onError is called if:

  • canTransform is false.

  • the operation was aborted while animating.

  • The coordinates or scale contained invalid values.

Parameters

animationOptions

Specifies how the transform should be animated


abstract suspend fun removeActiveTransform(animationOptions: TransformAnimationOptions? = TransformAnimationOptions()): ColibrioResult<Unit>

Removes the ReaderView's current active transform.

Returns success result when the active transform has been removed. Returns immediately if the transform change is not animated.

Returns error result if:

  • canTransform is false.

  • the operation was aborted while animating.

  • The coordinates or scale contained invalid values.

Parameters

animationOptions

Specifies how the transform should be animated