Flutter iOS Embedder
FlutterPlatformViewsTestMockFlutterViewController Class Reference
Inheritance diagram for FlutterPlatformViewsTestMockFlutterViewController:
FlutterViewController <FlutterTextureRegistry> <FlutterPluginRegistry>

Instance Methods

(UIScreen *) - flutterScreenIfViewLoaded
 
- Instance Methods inherited from FlutterViewController
(instancetype) - initWithEngine:nibName:bundle:
 
(instancetype) - initWithProject:nibName:bundle:
 
(instancetype) - initWithProject:initialRoute:nibName:bundle:
 
(instancetype) - initWithCoder:
 
(void) - setFlutterViewDidRenderCallback:
 
(NSString *) - lookupKeyForAsset:
 
(NSString *) - lookupKeyForAsset:fromPackage:
 
(void) - setInitialRoute:
 
(void) - popRoute
 
(void) - pushRoute:
 
(id< FlutterPluginRegistry >) - pluginRegistry
 
(BOOL) - loadDefaultSplashScreenView
 
- Instance Methods inherited from <FlutterTextureRegistry>
(int64_t) - registerTexture:
 
(void) - textureFrameAvailable:
 
(void) - unregisterTexture:
 
- Instance Methods inherited from <FlutterPluginRegistry>
(nullable NSObject< FlutterPluginRegistrar > *) - registrarForPlugin:
 
(BOOL) - hasPlugin:
 
(nullable NSObject *) - valuePublishedByPlugin:
 

Additional Inherited Members

- Class Methods inherited from FlutterViewController
(BOOL) + isUIAccessibilityIsVoiceOverRunning
 
- Properties inherited from FlutterViewController
BOOL displayingFlutterUI
 
UIView * splashScreenView
 
BOOL viewOpaque
 
FlutterEngineengine
 
NSObject< FlutterBinaryMessenger > * binaryMessenger
 
BOOL engineAllowHeadlessExecution
 

Detailed Description

Definition at line 237 of file FlutterPlatformViewsTest.mm.

Method Documentation

◆ flutterScreenIfViewLoaded

- (UIScreen *) flutterScreenIfViewLoaded

Definition at line 245 of file FlutterPlatformViewsTest.mm.

245  {
246  UIScreen* mockScreen = OCMClassMock([UIScreen class]);
247  CGFloat screenScale = 3;
248  OCMStub([mockScreen scale]).andReturn(screenScale);
249 
250  return mockScreen;
251 }

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