Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Instance Methods | Properties | List of all members
TestView Class Reference
Inheritance diagram for TestView:
<FlutterSurfaceManagerDelegate>

Instance Methods

(nonnull instancetype) - init
 
(void) - onPresent:withBlock: [implementation]
 

Properties

CGSize presentedFrameSize
 

Detailed Description

Definition at line 14 of file FlutterSurfaceManagerTest.mm.

Method Documentation

◆ init

- (instancetype) init

Definition at line 16 of file FlutterSurfaceManagerTest.mm.

23 {
24 self = [super initWithFrame:NSZeroRect];
25 if (self) {
26 [self setWantsLayer:YES];
27 self.layer.contentsScale = 2.0;
28 }
29 return self;
30}

◆ onPresent:withBlock:

- (void) onPresent: (CGSize)  frameSize
withBlock: (nonnull dispatch_block_t)  block 
implementation

Reimplemented from <FlutterSurfaceManagerDelegate>.

Definition at line 16 of file FlutterSurfaceManagerTest.mm.

32 :(CGSize)frameSize withBlock:(nonnull dispatch_block_t)block {
33 self.presentedFrameSize = frameSize;
34 block();
35}

Property Documentation

◆ presentedFrameSize

- (CGSize) presentedFrameSize
readwritenonatomicassign

Definition at line 16 of file FlutterSurfaceManagerTest.mm.


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