Package-level declarations

Types

Link copied to clipboard

The API marked by this annotation should never be used outside of Backpack implementation, because it may be changed at any time in the future without considering this as a breaking change, providing any warnings or migration aids.

Functions

Link copied to clipboard
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.

Link copied to clipboard
inline fun View.runOnFirstVisible(crossinline block: () -> Unit)

Runs block once, the first time this View is both attached and visible on screen. If already visible, executes immediately.