Ime Nested Scroll Connection
class ImeNestedScrollConnection(view: View, scrollImeOffScreenWhenVisible: Boolean, scrollImeOnScreenWhenNotVisible: Boolean) : NestedScrollConnection
Content copied to clipboard
A NestedScrollConnection which scrolls the Android on-screen keyboard on/off screen as appropriate, when the user scrolls content. This class may be made an internal library class in the future.
You probably do not wish to use this directly, and should use rememberImeNestedScrollConnection instead.
Parameters
view
The host Compose View. Usually this comes from LocalView.
scrollImeOffScreenWhenVisible
Set to true to allow scrolling the IME off screen (from being visible), by an downwards scroll. Defaults to true.
scrollImeOnScreenWhenNotVisible
Set to true to allow scrolling the IME on screen (from not being visible), by an upwards scroll. Defaults to true.
Constructors
ImeNestedScrollConnection
Link copied to clipboard
fun ImeNestedScrollConnection(view: View, scrollImeOffScreenWhenVisible: Boolean, scrollImeOnScreenWhenNotVisible: Boolean)
Content copied to clipboard
The host Compose View.
Functions
onPostFling
Link copied to clipboard
open suspend override fun onPostFling(consumed: Velocity, available: Velocity): Velocity
Content copied to clipboard
onPostScroll
Link copied to clipboard
open override fun onPostScroll(consumed: Offset, available: Offset, source: NestedScrollSource): Offset
Content copied to clipboard
onPreFling
Link copied to clipboard
onPreScroll
Link copied to clipboard
open override fun onPreScroll(available: Offset, source: NestedScrollSource): Offset
Content copied to clipboard