| Flutter macOS Embedder |

Instance Methods | Class Methods | Properties | List of all members
FlutterDisplayLink Class Reference

`#import <FlutterDisplayLink.h>`

Inheritance diagram for FlutterDisplayLink:

## 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

## Detailed Description

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 18 of file FlutterDisplayLink.h.

## Method Documentation

## ◆ displayLinkWithView:

+ (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 50 of file FlutterDisplayLink.mm.

289 :(NSView*)view {
290 return [[_FlutterDisplayLink alloc] initWithView:view];
291 }
_FlutterDisplayLink
Definition: FlutterDisplayLink.mm:14

Referenced by TEST_F().

## ◆ invalidate

- (void) invalidate |  |  |

Invalidates the display link.

Definition at line 50 of file FlutterDisplayLink.mm.

293 {
294 [self doesNotRecognizeSelector:_cmd];
295 }

Referenced by TEST_F().

## Property Documentation

## ◆ delegate

- (id<FlutterDisplayLinkDelegate>) delegate
| read write nonatomic weak

Delegate must be set on main thread. Delegate method will be also called on main thread.

Definition at line 27 of file FlutterDisplayLink.h.

Referenced by TEST_F().

## ◆ nominalOutputRefreshPeriod

- (CFTimeInterval) nominalOutputRefreshPeriod
| read atomic assign

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 35 of file FlutterDisplayLink.h.

## ◆ paused

- (BOOL) paused
| read write atomic assign

Pauses and resumes the display link.

Definition at line 30 of file FlutterDisplayLink.h.

Referenced by TEST_F().

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

- shell/platform/darwin/macos/framework/Source/FlutterDisplayLink.h
- shell/platform/darwin/macos/framework/Source/FlutterDisplayLink.mm