isRunning

abstract fun isRunning(): Boolean(source)

Method which returns whether there are any item animations currently running. This method can be used to determine whether to delay other actions until animations end.

Return

true if there are any item animations currently running, false otherwise.


Like isRunning, this method returns whether there are any item animations currently running. Additionally, the listener passed in will be called when there are no item animations running, either immediately (before the method returns) if no animations are currently running, or when the currently running animations are finished.

Note that the listener is transient - it is either called immediately and not stored at all, or stored only until it is called when running animations are finished sometime later.

Return

true if there are any item animations currently running, false otherwise.

Parameters

listener

A listener to be called immediately if no animations are running or later when currently-running animations have finished. A null listener is equivalent to calling isRunning.