Flutter Engine
The Flutter Engine
|
Instance Methods | |
(nonnull instancetype) | - initWithCallback: |
(void) | - pendTo:withId: |
(void) | - resolveTo: |
(nonnull instancetype) | - initWithCallback: |
(void) | - pendTo:withId: |
(void) | - resolveTo: |
Properties | |
BOOL | handled |
NSString * | debugHandleSource |
BOOL | sentAnyEvents |
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.
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 287 of file FlutterEmbedderKeyResponder.mm.
- (nonnull instancetype) initWithCallback: | (FlutterAsyncKeyCallback) | callback |
Definition at line 308 of file FlutterEmbedderKeyResponder.mm.
- (nonnull instancetype) initWithCallback: | (FlutterAsyncKeyCallback) | callback |
- (void) pendTo: | (nonnull NSMutableDictionary<NSNumber*, FlutterAsyncKeyCallback>*) | pendingResponses | |
withId: | (uint64_t) | responseId | |
Handle the callback by storing it to pending responses.
Definition at line 308 of file FlutterEmbedderKeyResponder.mm.
- (void) pendTo: | (nonnull NSMutableDictionary< NSNumber *, FlutterAsyncKeyCallback > *) | pendingResponses | |
withId: | (uint64_t) | responseId | |
Handle the callback by storing it to pending responses.
- (void) resolveTo: | (BOOL) | handled |
Handle the callback by calling it with a result.
Definition at line 308 of file FlutterEmbedderKeyResponder.mm.
- (void) resolveTo: | (BOOL) | handled |
Handle the callback by calling it with a result.
|
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 308 of file FlutterEmbedderKeyResponder.mm.
|
readwritenonatomicassign |
Definition at line 301 of file FlutterEmbedderKeyResponder.mm.
|
readwritenonatomicassign |
Definition at line 282 of file FlutterEmbedderKeyResponder.mm.