◆ init
Definition at line 21 of file FlutterChannelKeyResponderTest.mm.
29 {
30 self = [super init];
31 if (self != nil) {
32 _messages = [[NSMutableArray<id> alloc] init];
33 }
34 return self;
35}
References self.
◆ sendMessage:
| - (void) sendMessage: |
|
(id _Nullable) |
message |
|
Sends the specified message to the Flutter side, ignoring any reply.
- Parameters
-
| message | The message. Must be supported by the codec of this channel. |
Reimplemented from FlutterBasicMessageChannel.
Definition at line 21 of file FlutterChannelKeyResponderTest.mm.
38 [self sendMessage:message reply:nil];
39}
G_BEGIN_DECLS GBytes * message
◆ sendMessage:reply:
Sends the specified message to the Flutter side, expecting an asynchronous reply.
- Parameters
-
| message | The message. Must be supported by the codec of this channel. |
| callback | A callback to be invoked with the message reply from Flutter. |
Reimplemented from FlutterBasicMessageChannel.
Definition at line 21 of file FlutterChannelKeyResponderTest.mm.
45 }
46}
NS_ASSUME_NONNULL_BEGIN typedef void(^ FlutterReply)(id _Nullable reply)
FlutterDesktopBinaryReply callback
◆ messages
| - (NSMutableArray<id>*) messages |
|
readnonatomicassign |
◆ nextResponse
| - (NSDictionary*) nextResponse |
|
readwritenonatomicassign |
The documentation for this class was generated from the following file: