#import <FlutterEmbedderKeyResponder.h>
Instance Methods | |
(nonnull instancetype) | - initWithSendEvent: |
(void) | - syncModifiersIfNeeded:timestamp: |
(nonnull NSDictionary *) | - getPressedState |
Instance Methods inherited from <FlutterKeyPrimaryResponder> | |
(void) | - handleEvent:callback: |
Additional Inherited Members | |
Properties inherited from <FlutterKeyPrimaryResponder> | |
NSMutableDictionary< NSNumber *, NSNumber * > * | layoutMap |
A primary responder of |FlutterKeyboardManager| that handles events by sending the converted events through the embedder API.
This class communicates with the HardwareKeyboard API in the framework.
Definition at line 23 of file FlutterEmbedderKeyResponder.h.
- (nonnull NSDictionary *) getPressedState |
Returns the keyboard pressed state.
Returns the keyboard pressed state. The dictionary contains one entry per pressed keys, mapping from the logical key to the physical key.
Definition at line 797 of file FlutterEmbedderKeyResponder.mm.
Referenced by FlutterKeyboardManager::getPressedState.
- (nonnull instancetype) initWithSendEvent: | (_Nonnull FlutterSendEmbedderKeyEvent) | sendEvent |
Create an instance by specifying the function to send converted events to.
The |sendEvent| is typically |FlutterEngine|'s |sendKeyEvent|.
- (void) syncModifiersIfNeeded: | (NSEventModifierFlags) | modifierFlags | |
timestamp: | (NSTimeInterval) | timestamp | |
Synthesize modifier keys events.
If needed, synthesize modifier keys up and down events by comparing their current pressing states with the given modifier flags.
Reimplemented from <FlutterKeyPrimaryResponder>.
Definition at line 784 of file FlutterEmbedderKeyResponder.mm.