pub trait RendererBindingOverridesObject: Sized + 'static {
// Required methods
fn will_draw_frame(self: Handle<Self>, app: &mut App);
fn did_draw_frame(self: Handle<Self>, app: &mut App);
// Provided method
fn did_handle_metrics_changed(self: Handle<Self>, app: &mut App) { ... }
}Expand description
The object side of Flutter’s WidgetsBinding overrides of RendererBinding.drawFrame:
the widget layer builds before the renderer’s frame and finalizes its tree after it.
Implement it on the binding above and register Rc::new(handle) with
RendererBinding::set_overrides; Handle<T> is then RendererBindingOverrides.
Required Methods§
Sourcefn will_draw_frame(self: Handle<Self>, app: &mut App)
fn will_draw_frame(self: Handle<Self>, app: &mut App)
Runs at the start of RendererBinding::draw_frame, before layout.
Sourcefn did_draw_frame(self: Handle<Self>, app: &mut App)
fn did_draw_frame(self: Handle<Self>, app: &mut App)
Runs at the end of RendererBinding::draw_frame, after compositing.
Provided Methods§
Sourcefn did_handle_metrics_changed(self: Handle<Self>, app: &mut App)
fn did_handle_metrics_changed(self: Handle<Self>, app: &mut App)
Runs at the end of RendererBinding::handle_metrics_changed: Flutter’s
WidgetsBinding.handleMetricsChanged override, which tells its observers.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".