| 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 170 of file FlutterViewControllerTest.mm.

## Method Documentation

## ◆ sendMessage:reply:

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

Definition at line 179 of file FlutterViewControllerTest.mm.

1769 :(id _Nullable)message reply:(FlutterReply _Nullable)callback {
1770 NSMutableDictionary* replyMessage = [@{
1771 @"handled" : @YES,
1772 } mutableCopy];
1773 // Response is async, so we have to post it to the run loop instead of calling
1774 // it directly.
1775 self.messageSent = message;
1776 CFRunLoopPerformBlock(CFRunLoopGetCurrent(), fml::MessageLoopDarwin::kMessageLoopCFRunLoopMode,
1777 ^() {
1778 callback(replyMessage);
1779 });
1780 }
FlutterReply
NS_ASSUME_NONNULL_BEGIN typedef void(^ FlutterReply)(id _Nullable reply)

## Property Documentation

## ◆ messageSent

- (id) messageSent
| readwritenonatomicstrong

Definition at line 173 of file FlutterViewControllerTest.mm.

## ◆ mockEngine

- (id) mockEngine
| readwritenonatomicstrong

Definition at line 171 of file FlutterViewControllerTest.mm.

## ◆ mockTextInputPlugin

- (id) mockTextInputPlugin
| readwritenonatomicstrong

Definition at line 172 of file FlutterViewControllerTest.mm.

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

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