onDiagnostic property

void Function(GlassAdaptiveDiagnostic)? onDiagnostic
final

Called with rich diagnostic data whenever the effective quality changes.

Provides GlassAdaptiveDiagnostic with P75/P95 timing, reason, phase, and frame count. Useful for analytics and for posting to the Threshold Calibration Discussion.

See also debugLogDiagnostics for a zero-wiring alternative.

Implementation

final void Function(GlassAdaptiveDiagnostic)? onDiagnostic;