lightbulb_outline Please take our October 2018 developer survey. Start survey
added in API level 24

AccessibilityService.SoftKeyboardController.OnShowModeChangedListener

public static interface AccessibilityService.SoftKeyboardController.OnShowModeChangedListener

android.accessibilityservice.AccessibilityService.SoftKeyboardController.OnShowModeChangedListener


Listener for changes in the soft keyboard show mode.

Summary

Public methods

abstract void onShowModeChanged(AccessibilityService.SoftKeyboardController controller, int showMode)

Called when the soft keyboard behavior changes.

Public methods

onShowModeChanged

added in API level 24
public abstract void onShowModeChanged (AccessibilityService.SoftKeyboardController controller, 
                int showMode)

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 must never be null.

showMode int: the current soft keyboard show mode

Value is SHOW_MODE_AUTO or SHOW_MODE_HIDDEN.