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

Method Documentation

◆ sendMessage:reply:

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

Definition at line 275 of file FlutterViewControllerTest.mm.

1993  :(id _Nullable)message reply:(FlutterReply _Nullable)callback {
1994  NSMutableDictionary* replyMessage = [@{
1995  @"handled" : @YES,
1996  } mutableCopy];
1997  // Response is async, so we have to post it to the run loop instead of calling
1998  // it directly.
1999  self.messageSent = message;
2000  CFRunLoopPerformBlock(CFRunLoopGetCurrent(), fml::MessageLoopDarwin::kMessageLoopCFRunLoopMode,
2001  ^() {
2002  callback(replyMessage);
2003  });
2004 }
NS_ASSUME_NONNULL_BEGIN typedef void(^ FlutterReply)(id _Nullable reply)

Property Documentation

◆ messageSent

- (id) messageSent
readwritenonatomicstrong

Definition at line 269 of file FlutterViewControllerTest.mm.

◆ mockEngine

- (id) mockEngine
readwritenonatomicstrong

Definition at line 267 of file FlutterViewControllerTest.mm.

◆ mockTextInputPlugin

- (id) mockTextInputPlugin
readwritenonatomicstrong

Definition at line 268 of file FlutterViewControllerTest.mm.


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