Class KeyEmbedderResponder

    • Constructor Detail

      • KeyEmbedderResponder

        public KeyEmbedderResponder​(BinaryMessenger messenger)
    • Method Detail

      • handleEvent

        public void handleEvent​(@NonNull
                                KeyEvent event,
                                KeyboardManager.Responder.OnKeyEventHandledCallback onKeyEventHandledCallback)
        Parses an Android key event, performs synchronization, and dispatches Flutter events through the messenger to the framework with the given callback.

        At least one event will be dispatched. If there are no others, an empty event with 0 physical key and 0 logical key will be synthesized.

        Specified by:
        handleEvent in interface KeyboardManager.Responder
        event - The Android key event to be handled.
        onKeyEventHandledCallback - the method to call when the framework has decided whether to handle this event. This callback will always be called once and only once. If there are no non-synthesized out of this event, this callback will be called during this method with true.
      • getPressedState

        public Map<Long,​Long> getPressedState()
        Returns an unmodifiable view of the pressed state.
        A map whose keys are physical keyboard key IDs and values are the corresponding logical keyboard key IDs.