Instance Methods | |
(nonnull instancetype) | - initWithCallback: |
(void) | - pendTo:withId: |
(void) | - resolveTo: |
Properties | |
BOOL | handled |
NSString * | debugHandleSource |
Guards a |FlutterAsyncKeyCallback| to make sure it's handled exactly once throughout the process of handling an event in |FlutterEmbedderKeyResponder|.
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 287 of file FlutterEmbedderKeyResponder.mm.
- (nonnull instancetype) initWithCallback: | (FlutterAsyncKeyCallback) | callback |
Definition at line 316 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 325 of file FlutterEmbedderKeyResponder.mm.
- (void) resolveTo: | (BOOL) | handled |
Handle the callback by calling it with a result.
Definition at line 338 of file FlutterEmbedderKeyResponder.mm.
|
readatomiccopy |
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 308 of file FlutterEmbedderKeyResponder.mm.
|
readwritenonatomicassign |
Definition at line 301 of file FlutterEmbedderKeyResponder.mm.