Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
FlutterViewControllerTest Class Reference
Inheritance diagram for FlutterViewControllerTest:

Instance Methods

(void) - sendMessage:reply:
 

Properties

id mockEngine
 
id mockTextInputPlugin
 
id messageSent
 
FlutterViewControllerflutterViewController
 

Detailed Description

Definition at line 363 of file FlutterViewControllerTest.mm.

Method Documentation

◆ sendMessage:reply:

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

Definition at line 372 of file FlutterViewControllerTest.mm.

2116 :(id _Nullable)message reply:(FlutterReply _Nullable)callback {
2117 NSMutableDictionary* replyMessage = [@{
2118 @"handled" : @YES,
2119 } mutableCopy];
2120 // Response is async, so we have to post it to the run loop instead of calling
2121 // it directly.
2122 self.messageSent = message;
2123 CFRunLoopPerformBlock(CFRunLoopGetCurrent(), fml::MessageLoopDarwin::kMessageLoopCFRunLoopMode,
2124 ^() {
2125 callback(replyMessage);
2126 });
2127}
NS_ASSUME_NONNULL_BEGIN typedef void(^ FlutterReply)(id _Nullable reply)
static CFStringRef kMessageLoopCFRunLoopMode
const char * message
FlutterDesktopBinaryReply callback

Property Documentation

◆ flutterViewController

- (FlutterViewController*) flutterViewController
readwritenonatomicstrong

Definition at line 13 of file FlutterViewControllerTest.m.

◆ messageSent

- (id) messageSent
readwritenonatomicstrong

Definition at line 366 of file FlutterViewControllerTest.mm.

◆ mockEngine

- (id) mockEngine
readwritenonatomicstrong

Definition at line 364 of file FlutterViewControllerTest.mm.

◆ mockTextInputPlugin

- (id) mockTextInputPlugin
readwritenonatomicstrong

Definition at line 365 of file FlutterViewControllerTest.mm.


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