Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
fl_view_monitor.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_VIEW_MONITOR_H_
6#define FLUTTER_SHELL_PLATFORM_LINUX_FL_VIEW_MONITOR_H_
7
9
10G_BEGIN_DECLS
11
12G_DECLARE_FINAL_TYPE(FlViewMonitor, fl_view_monitor, FL, VIEW_MONITOR, GObject);
13
14/**
15 * fl_view_monitor_new:
16 * @view: the view being monitored.
17 * @on_first_frame: the function to call when the first frame is rendered.
18 *
19 * Helper class to allow the Flutter engine to monitor a FlView using FFI.
20 * Callbacks are called in the isolate this class was created with.
21 *
22 * Returns: a new #FlViewMonitor.
23 */
24FlViewMonitor* fl_view_monitor_new(FlView* view, void (*on_first_frame)(void));
25
26G_END_DECLS
27
28#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_VIEW_MONITOR_H_
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlViewMonitor, fl_view_monitor, FL, VIEW_MONITOR, GObject)
FlViewMonitor * fl_view_monitor_new(FlView *view, void(*on_first_frame)(void))