Flutter Engine
 
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 179 of file FlutterViewControllerTest.mm.

Method Documentation

◆ sendMessage:reply:

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

Definition at line 188 of file FlutterViewControllerTest.mm.

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

Property Documentation

◆ flutterViewController

- (FlutterViewController*) flutterViewController
readwritenonatomicstrong

Definition at line 13 of file FlutterViewControllerTest.m.

◆ messageSent

- (id) messageSent
readwritenonatomicstrong

Definition at line 182 of file FlutterViewControllerTest.mm.

◆ mockEngine

- (id) mockEngine
readwritenonatomicstrong

Definition at line 180 of file FlutterViewControllerTest.mm.

◆ mockTextInputPlugin

- (id) mockTextInputPlugin
readwritenonatomicstrong

Definition at line 181 of file FlutterViewControllerTest.mm.


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