Home Forums Software Development Tobii gazepointstreamdata stop

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8966
    Marco Chiappini
    Participant

    Hi to all,
    I’m using Tobii Core SDK,
    i want to know, if there is a method to close the stream of gazepoint without closing my specific thread. And also, if i close the specific thread, will the stream continuos collect data?
    Thank you
    Marco

    #8968
    Grant [Tobii]
    Keymaster

    Hi @marcochiappini, thanks for your query. Indeed there is a method to close the stream without the thread at the same time.

    If you download the sample applications as supplied with the Core SDK @ https://github.com/Tobii/CoreSDK and thereafter navigate to the Streams.Advanced Sample – there a flag IsEnabled, for example:

    `private static void ToggleGazePointDataStream()
    {
    if (_gazePointDataStream != null)
    _gazePointDataStream.IsEnabled = !_gazePointDataStream.IsEnabled;
    }`

    So setting SomeStream.IsEnabled = false; should stop the stream.

    Hopefully this answers your query, please don’t hesitate to let us know if you have any further questions or issues.

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