Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
FlutterDisplayLinkManager Class Reference

A manager type that queries display characteristics, such as high refresh rate capabilities. More...

#include <FlutterVSyncClient.h>

Inheritance diagram for FlutterDisplayLinkManager:

Class Methods

(double) + displayRefreshRate
 

Properties

BOOL maxRefreshRateEnabledOnIPhone
 Whether the max refresh rate on iPhone ProMotion devices are enabled. This reflects the value of CADisableMinimumFrameDurationOnPhone in the info.plist file. On iPads that support ProMotion, the max refresh rate is always enabled.
 
double displayRefreshRate
 The maximum display refresh rate used for reporting purposes. This is intended to return either the hardware maximum refresh rate or the maximum configured by the user (e.g. via an Info.plist setting or custom configuration). The engine does not care about this for frame scheduling. It is only used by tools for instrumentation. The engine uses the duration field of the link per frame for frame scheduling.
 

Detailed Description

A manager type that queries display characteristics, such as high refresh rate capabilities.

Provides static properties to check whether dynamic refresh rates are supported on the device and to get the display's maximum refresh rate (either the hardware maximum or the maximum configured by the user).

Definition at line 17 of file FlutterMetalLayer.mm.

Method Documentation

◆ displayRefreshRate

+ (double) displayRefreshRate

Property Documentation

◆ displayRefreshRate

- (double) displayRefreshRate
readnonatomicassign

The maximum display refresh rate used for reporting purposes. This is intended to return either the hardware maximum refresh rate or the maximum configured by the user (e.g. via an Info.plist setting or custom configuration). The engine does not care about this for frame scheduling. It is only used by tools for instrumentation. The engine uses the duration field of the link per frame for frame scheduling.

Attention
Do not use this call in frame scheduling. It is only meant for reporting.
Returns
The maximum refresh rate in frames per second.

Definition at line 52 of file FlutterVSyncClient.h.

Referenced by displayRefreshRate, and flutter::VsyncWaiterIOS::VsyncWaiterIOS().

◆ maxRefreshRateEnabledOnIPhone

- (BOOL) maxRefreshRateEnabledOnIPhone
readnonatomicassign

Whether the max refresh rate on iPhone ProMotion devices are enabled. This reflects the value of CADisableMinimumFrameDurationOnPhone in the info.plist file. On iPads that support ProMotion, the max refresh rate is always enabled.

Returns
YES if the max refresh rate on ProMotion devices is enabled.

Definition at line 18 of file FlutterMetalLayer.mm.

Referenced by displayRefreshRate, and flutter::VsyncWaiterIOS::VsyncWaiterIOS().


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