Added in API level 24

OnShowModeChangedListener

interface OnShowModeChangedListener
android.accessibilityservice.AccessibilityService.SoftKeyboardController.OnShowModeChangedListener

Listener for changes in the soft keyboard show mode.

Summary

Public methods
abstract Unit

Called when the soft keyboard behavior changes.

Public methods

onShowModeChanged

Added in API level 24
abstract fun onShowModeChanged(
    controller: AccessibilityService.SoftKeyboardController,
    showMode: Int
): Unit

Called when the soft keyboard behavior changes. The default show mode is SHOW_MODE_AUTO, where the soft keyboard is shown when a text input field is focused. An AccessibilityService can also request the show mode SHOW_MODE_HIDDEN, where the soft keyboard is never shown.

Parameters
controller AccessibilityService.SoftKeyboardController: the soft keyboard controller This value cannot be null.
showMode Int: the current soft keyboard show mode Value is android.accessibilityservice.AccessibilityService#SHOW_MODE_AUTO, android.accessibilityservice.AccessibilityService#SHOW_MODE_HIDDEN, or android.accessibilityservice.AccessibilityService#SHOW_MODE_IGNORE_HARD_KEYBOARD