setFramePacer method
- FramePacerHandle? pacer,
Sets the frame pacer that demands the session's frames.
At the first display refresh after the session has something new to draw,
pacer demands a frame without flags and with token 0. One pacer can
serve many sessions. A null pacer stops pacing the session. You can call
it once the attach call returns.
See mln_render_session_set_frame_pacer in the
C API reference.
Errors:
Status.targetLostorStatus.nativeError, asRenderSessionSnapshot.failureStatusreports, when the session has failed.Status.invalidStatewhen you attached the session with a redraw wake, or detached, abandoned, released, or disposed it.
Implementation
void setFramePacer({FramePacerHandle? pacer}) => _check(
raw.mln_render_session_set_frame_pacer(
_handle.raw,
(pacer?._handle.raw ?? 0),
nativeDiagnostic,
),
);