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

Method Documentation

◆ sendMessage:reply:

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

Definition at line 191 of file FlutterViewControllerTest.mm.

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

Property Documentation

◆ messageSent

- (id) messageSent
readwritenonatomicstrong

Definition at line 185 of file FlutterViewControllerTest.mm.

◆ mockEngine

- (id) mockEngine
readwritenonatomicstrong

Definition at line 183 of file FlutterViewControllerTest.mm.

◆ mockTextInputPlugin

- (id) mockTextInputPlugin
readwritenonatomicstrong

Definition at line 184 of file FlutterViewControllerTest.mm.


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