Definition at line 16 of file VsyncWaiter.java.
◆ DisplayListener()
io.flutter.view.VsyncWaiter.DisplayListener.DisplayListener |
( |
DisplayManager |
displayManager | ) |
|
|
inlinepackage |
Definition at line 17 of file VsyncWaiter.java.
17 {
18 this.displayManager = displayManager;
19 }
◆ onDisplayAdded()
void io.flutter.view.VsyncWaiter.DisplayListener.onDisplayAdded |
( |
int |
displayId | ) |
|
|
inline |
◆ onDisplayChanged()
void io.flutter.view.VsyncWaiter.DisplayListener.onDisplayChanged |
( |
int |
displayId | ) |
|
|
inline |
Definition at line 34 of file VsyncWaiter.java.
34 {
35 if (displayId == Display.DEFAULT_DISPLAY) {
36 final Display primaryDisplay = displayManager.getDisplay(Display.DEFAULT_DISPLAY);
37 float fps = primaryDisplay.getRefreshRate();
38 VsyncWaiter.this.refreshPeriodNanos = (long) (1000000000.0 / fps);
39 VsyncWaiter.this.flutterJNI.setRefreshRateFPS(fps);
40 }
41 }
◆ onDisplayRemoved()
void io.flutter.view.VsyncWaiter.DisplayListener.onDisplayRemoved |
( |
int |
displayId | ) |
|
|
inline |
◆ register()
void io.flutter.view.VsyncWaiter.DisplayListener.register |
( |
| ) |
|
|
inlinepackage |
Definition at line 23 of file VsyncWaiter.java.
23 {
24 displayManager.registerDisplayListener(this, null);
25 }
The documentation for this class was generated from the following file: