Instance Methods | |
(nonnull instancetype) | - initWithCallback: |
(void) | - pendTo:withId: |
(void) | - resolveTo: |
Properties | |
BOOL | handled |
BOOL | sentAnyEvents |
NSString * | debugHandleSource |
Guards a |FlutterAsyncKeyCallback| to make sure it's handled exactly once throughout |FlutterEmbedderKeyResponder.handleEvent|.
A callback can either be handled with |pendTo:withId:|, or with |resolveTo:|. Either way, the callback cannot be handled again, or an assertion will be thrown.
Definition at line 267 of file FlutterEmbedderKeyResponder.mm.
- (nonnull instancetype) initWithCallback: | (FlutterAsyncKeyCallback) | callback |
Definition at line 297 of file FlutterEmbedderKeyResponder.mm.
- (void) pendTo: | (nonnull NSMutableDictionary<NSNumber*, FlutterAsyncKeyCallback>*) | pendingResponses | |
withId: | (uint64_t) | responseId | |
Handle the callback by storing it to pending responses.
Definition at line 307 of file FlutterEmbedderKeyResponder.mm.
- (void) resolveTo: | (BOOL) | handled |
Handle the callback by calling it with a result.
Definition at line 320 of file FlutterEmbedderKeyResponder.mm.
|
readwritenonatomiccopy |
A string indicating how the callback is handled.
Only set in debug mode. Nil in release mode, or if the callback has not been handled.
Definition at line 289 of file FlutterEmbedderKeyResponder.mm.
|
readwritenonatomicassign |
Definition at line 281 of file FlutterEmbedderKeyResponder.mm.
|
readwritenonatomicassign |
Definition at line 282 of file FlutterEmbedderKeyResponder.mm.