onVisibilityChanged

inline fun Style.onVisibilityChanged(noinline onVisibilityChanged: (VisibilityChangedEvent) -> Unit): Style

Registers a callback to be called when the visible rect of a Component changes.