- This topic has 1 reply, 2 voices, and was last updated 6 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Software Development › Tobii gazepointstreamdata stop
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
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.