onUnfocusedVisible

fun Style.onUnfocusedVisible(visibleWidthRatio: Float = 0.0f, visibleHeightRatio: Float = 0.0f, callback: (UnfocusedVisibleEvent) -> Unit): Style

Registers a callback to be called when the Component is no longer focused, i.e. it is not fully visible and does not occupy at least half the viewport.

Parameters

visibleWidthRatio

Ratio of the Component width for the unfocused callback to be dispatched. Default is 0f.

visibleHeightRatio

Ratio of the Component height for the unfocused callback to be dispatched. Default is 0f.

callback

Callback to be invoked when the component becomes unfocused.