Flutter iOS Embedder
FlutterViewControllerTest Class Reference
Inheritance diagram for FlutterViewControllerTest:

Instance Methods

(void) - sendMessage:reply:
 

Properties

id mockEngine
 
id mockTextInputPlugin
 
id messageSent
 

Detailed Description

Definition at line 171 of file FlutterViewControllerTest.mm.

Method Documentation

◆ sendMessage:reply:

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

Definition at line 1718 of file FlutterViewControllerTest.mm.

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

Property Documentation

◆ messageSent

- (id) messageSent
readwritenonatomicstrong

Definition at line 174 of file FlutterViewControllerTest.mm.

◆ mockEngine

- (id) mockEngine
readwritenonatomicstrong

Definition at line 172 of file FlutterViewControllerTest.mm.

◆ mockTextInputPlugin

- (id) mockTextInputPlugin
readwritenonatomicstrong

Definition at line 173 of file FlutterViewControllerTest.mm.


The documentation for this class was generated from the following file:
FlutterReply
NS_ASSUME_NONNULL_BEGIN typedef void(^ FlutterReply)(id _Nullable reply)