#import <FlutterDisplayLink.h>
Instance Methods | |
(void) | - invalidate |
Invalidates the display link. More... | |
Class Methods | |
(instancetype) | + displayLinkWithView: |
Properties | |
id< FlutterDisplayLinkDelegate > | delegate |
BOOL | paused |
Pauses and resumes the display link. More... | |
CFTimeInterval | nominalOutputRefreshPeriod |
Provides notifications of display refresh.
Internally FlutterDisplayLink will use at most one CVDisplayLink per screen shared for all views belonging to that screen. This is necessary because each CVDisplayLink comes with its own thread.
All methods must be called on main thread.
Definition at line 21 of file FlutterDisplayLink.h.
+ (instancetype) displayLinkWithView: | (NSView*) | view |
Creates new instance tied to provided NSView. FlutterDisplayLink will track view display changes transparently to synchronize update with display refresh.
Definition at line 53 of file FlutterDisplayLink.mm.
Referenced by TEST_F().
- (void) invalidate |
Invalidates the display link.
Definition at line 53 of file FlutterDisplayLink.mm.
Referenced by TEST_F().
|
readwritenonatomicweak |
Delegate must be set on main thread. Delegate method will be also called on main thread.
Definition at line 30 of file FlutterDisplayLink.h.
Referenced by TEST_F().
|
readatomicassign |
Returns the nominal refresh period of the display to which the view currently belongs (in seconds). If view does not belong to any display, returns 0.
Definition at line 38 of file FlutterDisplayLink.h.
|
readwriteatomicassign |
Pauses and resumes the display link.
Definition at line 33 of file FlutterDisplayLink.h.
Referenced by TEST_F().