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

## Method Documentation

## ◆ sendMessage:reply:

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

Definition at line 190 of file FlutterViewControllerTest.mm.

1789 :(id _Nullable)message reply:(FlutterReply _Nullable)callback {
1790 NSMutableDictionary* replyMessage = [@{
1791 @"handled" : @YES,
1792 } mutableCopy];
1793 // Response is async, so we have to post it to the run loop instead of calling
1794 // it directly.
1795 self.messageSent = message;
1796 CFRunLoopPerformBlock(CFRunLoopGetCurrent(), fml::MessageLoopDarwin::kMessageLoopCFRunLoopMode,
1797 ^() {
1798 callback(replyMessage);
1799 });
1800 }
FlutterReply
NS_ASSUME_NONNULL_BEGIN typedef void(^ FlutterReply)(id _Nullable reply)

## Property Documentation

## ◆ messageSent

- (id) messageSent
| read write nonatomic strong

Definition at line 184 of file FlutterViewControllerTest.mm.

## ◆ mockEngine

- (id) mockEngine
| read write nonatomic strong

Definition at line 182 of file FlutterViewControllerTest.mm.

## ◆ mockTextInputPlugin

- (id) mockTextInputPlugin
| read write nonatomic strong

Definition at line 183 of file FlutterViewControllerTest.mm.

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

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