CameraAnimationsLifecycleListener

Interface responsible to notify about any CameraAnimator lifecycle events registered in CameraAnimationsPlugin. Those events are:

  • animator is about to start

  • animator is about to cancel already running animator of same type

  • animator is about to end

  • animator is about to cancel

Functions

Link copied to clipboard
abstract fun onAnimatorCancelling(type: CameraAnimatorType, animator: ValueAnimator, owner: String?)

Called when ValueAnimator is about to cancel.

Link copied to clipboard
abstract fun onAnimatorEnding(type: CameraAnimatorType, animator: ValueAnimator, owner: String?)

Called when animator is about to end.

Link copied to clipboard
abstract fun onAnimatorInterrupting(type: CameraAnimatorType, runningAnimator: ValueAnimator, runningAnimatorOwner: String?, newAnimator: ValueAnimator, newAnimatorOwner: String?)

Called when animator is about to cancel already running animator of same CameraAnimatorType.

Link copied to clipboard
abstract fun onAnimatorStarting(type: CameraAnimatorType, animator: ValueAnimator, owner: String?)

Called when animator is about to start.