Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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

KeyboardDismissMode = {0}
The keyboard remains visible during PagerView interactions, unless explicitly dismissed by application logic.

ON_DRAG

KeyboardDismissMode = {1}
The keyboard is automatically dismissed when the user begins scrolling/dragging the PagerView.
Last modified on October 29, 2026