| Flutter iOS Embedder |

Instance Methods | Properties | List of all members
FlutterViewControllerTest Class Reference
Inheritance diagram for FlutterViewControllerTest:

## Instance Methods
(void) | - sendMessage:reply:

## Properties
id | mockEngine
id | mockTextInputPlugin
id | messageSent

## Detailed Description

Definition at line 169 of file FlutterViewControllerTest.mm.

## Method Documentation

## ◆ sendMessage:reply:

- (void) sendMessage: |  | (id _Nullable) | message
reply: |  | (FlutterReply _Nullable) | callback

Definition at line 1717 of file FlutterViewControllerTest.mm.

1717 :(id _Nullable)message reply:(FlutterReply _Nullable)callback {
1718 NSMutableDictionary* replyMessage = [@{
1719 @"handled" : @YES,
1720 } mutableCopy];
1721 // Response is async, so we have to post it to the run loop instead of calling
1722 // it directly.
1723 self.messageSent = message;
1724 CFRunLoopPerformBlock(CFRunLoopGetCurrent(), fml::MessageLoopDarwin::kMessageLoopCFRunLoopMode,
1725 ^() {
1726 callback(replyMessage);
1727 });
1728 }

## Property Documentation

## ◆ messageSent

- (id) messageSent
| read write nonatomic strong

Definition at line 172 of file FlutterViewControllerTest.mm.

## ◆ mockEngine

- (id) mockEngine
| read write nonatomic strong

Definition at line 170 of file FlutterViewControllerTest.mm.

## ◆ mockTextInputPlugin

- (id) mockTextInputPlugin
| read write nonatomic strong

Definition at line 171 of file FlutterViewControllerTest.mm.

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

- shell/platform/darwin/ios/framework/Source/FlutterViewControllerTest.mm

FlutterReply
NS_ASSUME_NONNULL_BEGIN typedef void(^ FlutterReply)(id _Nullable reply)