Home Forums Software Development Waiting for Calibration

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #10799
    William McCaffery


    I’m using the CoreSDK with an EyeX and have been calibrating the tracker using

    _host.Context.LaunchConfigurationTool(Tobii.Interaction.Framework.ConfigurationTool.Recalibrate, (data) => { });

    I’ve been trying to trigger an event after calibration so the device can start streaming data after calibration is complete. Is there a way to recognise when the user has completed calibration?

    Many thanks,


    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.