public void OnUpdateFrameRate(FrameRate frameRate) { RunOnUiThread(() => OnFrameRateUpdate?.Invoke(frameRate)); }