| Flutter macOS Embedder |

Instance Methods | Properties | List of all members
FlutterKeyboardManager() Category Reference

## Instance Methods
(void) | - addPrimaryResponder:
(void) | - processNextEvent
(void) | - performProcessEvent:onFinish:
(void) | - dispatchTextEvent:
(void) | - buildLayout

## Properties
id< FlutterKeyboardViewDelegate > | viewDelegate
NSMutableArray< id< FlutterKeyPrimaryResponder > > * | primaryResponders
NSMutableArray< NSEvent * > * | pendingEvents
BOOL | processingEvent
NSMutableDictionary< NSNumber *, NSNumber * > * | layoutMap
NSEvent * | eventBeingDispatched

## Detailed Description

Definition at line 55 of file FlutterKeyboardManager.mm.

## Method Documentation

## ◆ addPrimaryResponder:

- (void) addPrimaryResponder: |  | (nonnull id< FlutterKeyPrimaryResponder >) | responder |

Add a primary responder, which asynchronously decides whether to handle an event.

## ◆ buildLayout

- (void) buildLayout |  |  |

Clears the current layout and build a new one based on the current layout.

## ◆ dispatchTextEvent:

- (void) dispatchTextEvent: |  | (nonnull NSEvent *) | pendingEvent |

Dispatch an event that's not hadled by the responders to text input plugin, and potentially to the next responder.

## ◆ performProcessEvent:onFinish:

- (void) performProcessEvent: |  | (NSEvent *) | event
onFinish: |  | (nonnull VoidBlock) | onFinish

Implement how to process an event.

The `onFinish` must be called eventually, either during this function or asynchronously later, otherwise the event queue will be stuck.

This function is called by processNextEvent.

## ◆ processNextEvent

- (void) processNextEvent |  |  |

Start processing the next event if not started already.

This function might initiate an async process, whose callback calls this function again.

## Property Documentation

## ◆ eventBeingDispatched

- (NSEvent*) eventBeingDispatched
| read write nonatomic assign

Definition at line 73 of file FlutterKeyboardManager.mm.

## ◆ layoutMap

- (NSMutableDictionary<NSNumber*, NSNumber*>*) layoutMap
| read write nonatomic assign

Definition at line 71 of file FlutterKeyboardManager.mm.

## ◆ pendingEvents

- (NSMutableArray<NSEvent*>*) pendingEvents
| read write nonatomic assign

Definition at line 67 of file FlutterKeyboardManager.mm.

## ◆ primaryResponders

- (NSMutableArray<id<FlutterKeyPrimaryResponder> >*) primaryResponders
| read write nonatomic assign

The primary responders added by addPrimaryResponder.

Definition at line 65 of file FlutterKeyboardManager.mm.

## ◆ processingEvent

- (BOOL) processingEvent
| read write nonatomic assign

Definition at line 69 of file FlutterKeyboardManager.mm.

## ◆ viewDelegate

- (id<FlutterKeyboardViewDelegate>) viewDelegate
| read write nonatomic weak

The text input plugin set by initialization.

Definition at line 60 of file FlutterKeyboardManager.mm.

The documentation for this category was generated from the following file:

- shell/platform/darwin/macos/framework/Source/FlutterKeyboardManager.mm