Struct KeyboardDismissMode
sealed struct KeyboardDismissMode
Defines the keyboard dismiss mode for the user initiated scroll via touch gesture in PagerView.
This configuration controls the automatic dismissal behavior of virtual keyboards when users
interact with the PagerView through touch/drag. KeyboardDismissMode is not applicable for programmatic
scrolling including key events based navigations.
The keyboard creation and display is entirely controlled by the user’s application logic - typically
through input fields (text boxes, search bars, etc.).
When the keyboard occupies a partial area of a page (e.g., bottom half of screen), all the input events
including touch/scroll/drag in that area are received by the keyboard instead of PagerView, so the
KeyboardDismissMode is not applicable here.
The input events in the area excluding keyboard where the page is visible, are received by the PagerView, so
in this case the KeyboardDismissMode is applicable.
When the keyboard occupies the entire area of the page, as there is no visible area of PagerView to interact,
the KeyboardDismissMode is not at all applicable as all the input events will be received by the Keyboard itself.
Fields
Constants
NONE
The keyboard remains visible during PagerView interactions, unless explicitly dismissed by application logic.KeyboardDismissMode={0}
ON_DRAG
The keyboard is automatically dismissed when the user begins scrolling/dragging the PagerView.KeyboardDismissMode={1}

