| Flutter macOS Embedder |

Instance Methods | Properties | List of all members
FlutterKeyboardManager() Category Reference
Inheritance diagram for FlutterKeyboardManager():

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

## Properties
id< FlutterKeyboardManagerDelegate > | delegate
NSMutableArray< id< FlutterKeyPrimaryResponder > > * | primaryResponders
NSMutableArray< FlutterEventWithContext * > * | pendingEvents
BOOL | processingEvent
NSMutableDictionary< NSNumber *, NSNumber * > * | layoutMap
NSEvent * | eventBeingDispatched

## Detailed Description

Definition at line 74 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:withContext:

- (void) dispatchTextEvent: |  | (nonnull NSEvent *) | pendingEvent
withContext: |  | (nonnull id< FlutterKeyboardManagerEventContext >) | context

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

## ◆ performProcessEvent:withContext:onFinish:

- (void) performProcessEvent: |  | (NSEvent *) | event
withContext: |  | (nonnull id< FlutterKeyboardManagerEventContext >) | context
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

## ◆ delegate

- (id<FlutterKeyboardManagerDelegate>) delegate
| read write nonatomic weak

The text input plugin set by initialization.

Definition at line 79 of file FlutterKeyboardManager.mm.

## ◆ eventBeingDispatched

- (NSEvent*) eventBeingDispatched
| read write nonatomic assign

Definition at line 92 of file FlutterKeyboardManager.mm.

## ◆ layoutMap

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

Definition at line 90 of file FlutterKeyboardManager.mm.

## ◆ pendingEvents

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

Definition at line 86 of file FlutterKeyboardManager.mm.

## ◆ primaryResponders

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

The primary responders added by addPrimaryResponder.

Definition at line 84 of file FlutterKeyboardManager.mm.

## ◆ processingEvent

- (BOOL) processingEvent
| read write nonatomic assign

Definition at line 88 of file FlutterKeyboardManager.mm.

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

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