setFrameCompletedCallback

actual fun setFrameCompletedCallback(callback: () -> Unit)

Sets a callback to be invoked when a frame's rendering has completed on the GPU.

The callback is called after the frame has been fully rendered on the GPU. On the default handler, this is guaranteed to be called on the main Filament thread.

Use this callback to be notified when GPU rendering is finished, useful for synchronization or performance monitoring.

Parameters

callback

The callback function to invoke when frame GPU rendering completes. Pass null or a no-op function to unset the callback.

expect fun setFrameCompletedCallback(callback: () -> Unit)

Sets a callback to be invoked when a frame's rendering has completed on the GPU.

The callback is called after the frame has been fully rendered on the GPU. On the default handler, this is guaranteed to be called on the main Filament thread.

Use this callback to be notified when GPU rendering is finished, useful for synchronization or performance monitoring.

Parameters

callback

The callback function to invoke when frame GPU rendering completes. Pass null or a no-op function to unset the callback.

actual fun setFrameCompletedCallback(callback: () -> Unit)

Sets a callback to be invoked when a frame's rendering has completed on the GPU.

The callback is called after the frame has been fully rendered on the GPU. On the default handler, this is guaranteed to be called on the main Filament thread.

Use this callback to be notified when GPU rendering is finished, useful for synchronization or performance monitoring.

Parameters

callback

The callback function to invoke when frame GPU rendering completes. Pass null or a no-op function to unset the callback.

actual fun setFrameCompletedCallback(callback: () -> Unit)

Sets a callback to be invoked when a frame's rendering has completed on the GPU.

The callback is called after the frame has been fully rendered on the GPU. On the default handler, this is guaranteed to be called on the main Filament thread.

Use this callback to be notified when GPU rendering is finished, useful for synchronization or performance monitoring.

Parameters

callback

The callback function to invoke when frame GPU rendering completes. Pass null or a no-op function to unset the callback.

actual fun setFrameCompletedCallback(callback: () -> Unit)

Sets a callback to be invoked when a frame's rendering has completed on the GPU.

The callback is called after the frame has been fully rendered on the GPU. On the default handler, this is guaranteed to be called on the main Filament thread.

Use this callback to be notified when GPU rendering is finished, useful for synchronization or performance monitoring.

Parameters

callback

The callback function to invoke when frame GPU rendering completes. Pass null or a no-op function to unset the callback.