setUserInputEnabled

open fun setUserInputEnabled(enabled: Boolean)(source)

Enable or disable user initiated scrolling. This includes touch input (scroll and fling gestures) and accessibility input. Disabling keyboard input is not yet supported. When user initiated scrolling is disabled, programmatic scrolls through setCurrentItem still work. By default, user initiated scrolling is enabled.

Parameters

enabled

true to allow user initiated scrolling, false to block user initiated scrolling

See also