Rive View Lifecycle Observer
open class RiveViewLifecycleObserver(dependencies: MutableList<RefCount>) : DefaultLifecycleObserver
The DefaultLifecycleObserver tied to a RiveAnimationView. Created within RiveAnimationView() to make sure things are properly cleaned up when the View is destroyed.
Note: Since the RiveAnimationView can change LifecycleOwner during its lifetime, this is updated within RiveAnimationView.onAttachedToWindow. If there is a new LifecycleOwner, onStart, and onResume will be called again when it is registered.
Functions
Link copied to clipboard
Link copied to clipboard
DefaultLifecycleObserver.onDestroy is called when the LifecycleOwner's ON_DESTROY event is thrown. This typically happens when the Activity or Fragment is in the process of being permanently destroyed.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard