Package io.flutter.embedding.android

# Interface KeyboardManager.ViewDelegate

All Known Implementing Classes:
  `FlutterView`

Enclosing class:
  KeyboardManager

public static interface KeyboardManager.ViewDelegate
A set of interfaces that the `KeyboardManager` needs to interact with other components and the platform, and is typically implements by `FlutterView`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `BinaryMessenger`
  `getBinaryMessenger()`
  Returns a `BinaryMessenger` to send platform messages with.
  `boolean`
  `onTextInputKeyEvent(KeyEvent keyEvent)`
  Send a `KeyEvent` that is not handled by the keyboard responders to the text input system.
  `void`
  `redispatch(KeyEvent keyEvent)`
  Send a `KeyEvent` that is not handled by Flutter back to the platform.

- ## Method Details

  - ### getBinaryMessenger

    BinaryMessenger getBinaryMessenger()
    Returns a `BinaryMessenger` to send platform messages with.

  - ### onTextInputKeyEvent

    boolean onTextInputKeyEvent(@NonNull KeyEvent keyEvent)
    Send a `KeyEvent` that is not handled by the keyboard responders to the text input system.
    Parameters:
      `keyEvent` - the `KeyEvent` that should be processed by the text input system. It must not be null.
    Returns:
      Whether the text input handles the key event.

  - ### redispatch

    void redispatch(@NonNull KeyEvent keyEvent)
    Send a `KeyEvent` that is not handled by Flutter back to the platform.