runIfCurrentlyVisible

inline fun View.runIfCurrentlyVisible(crossinline block: () -> Unit): Boolean

Runs block immediately if the View is currently visible on screen. Returns true if executed, false otherwise.