FlutterDesktopEngineProcessMessages method

  1. @Deprecated('This is no longer necessary to call, Flutter will take care of' 'processing engine messages transparently through DispatchMessage.')
int FlutterDesktopEngineProcessMessages(
  1. Pointer<FlutterDesktopEngine> engine
)

Processes any pending events in the Flutter engine, and returns the number of nanoseconds until the next scheduled event (or max, if none).

This should be called on every run of the application-level runloop, and a wait for native events in the runloop should never be longer than the last return value from this function.

Implementation

@Deprecated('This is no longer necessary to call, Flutter will take care of'
    'processing engine messages transparently through DispatchMessage.')
int FlutterDesktopEngineProcessMessages(
  Pointer<FlutterDesktopEngine> engine,
) =>
    _FlutterDesktopEngineProcessMessages(
      engine,
    );