Home Forums Software Development Waiting for Calibration Reply To: Waiting for Calibration

Grant [Tobii]

Hi @willmccaff and thanks for your query.
To recognise when calibration has completed you need to do set up a state observer listening for tracker status.
When tracker has left state ‘Configuring’ to state ‘Tracking’ you can create the actionable event.

Please find the snippet of code below to illustrate:

EngineStateProvider engineStateProvider = new EngineStateProvider(_host.Context);

EngineStateObserver<EyeTrackingDeviceStatus> _engineStateObserverTrackerState = engineStateProvider.CreateEyeTrackingDeviceStatusObserver();

_engineStateObserverTrackerState.Changed+= EngineStateObserverTrackerStateOnChanged;


private void EngineStateObserverTrackerStateOnChanged(object sender, EngineStateValue<EyeTrackingDeviceStatus> e)


            // Based on tracker status do various actions…


Hopefully, this is exactly what you are looking for! Please try this out and let us know how you get on. Best Wishes.