addPersistentFrameCallback method

  1. @override
void addPersistentFrameCallback(
  1. FrameCallback callback
)
override

Adds a persistent frame callback.

Persistent callbacks are called after transient (non-persistent) frame callbacks.

Does not request a new frame. Conceptually, persistent frame callbacks are observers of "begin frame" events. Since they are executed after the transient frame callbacks they can drive the rendering pipeline.

Persistent frame callbacks cannot be unregistered. Once registered, they are called for every frame for the lifetime of the application.

See also:

  • WidgetsBinding.drawFrame, which explains the phases of each frame for those apps that use Flutter widgets (and where persistent frame callbacks fit into those phases).

Implementation

@override
void addPersistentFrameCallback(callback) {}