Provides the entry point to the actual Interaction Library.
For testing purposes, Interaction Library SDK C# binding clients can "mock" or "stub" the Interaction Library functionality by providing their own implementation of the IInteractionLib interface. However, by using InteractionLibFactory.CreateInteractionLib(), the actual Interaction Library implementation will be used.
Creates a new IInteractionLib instance with a custom adapter.
- Parameters
-
fieldOfUse | This mandatory flag denotes if the Interaction Library is used for interactive or analytical purposes. Please see the EULA and documentation for more information. |
adapterFunctions | Pointer to an instance of the native IL_AdapterFunctions structure that defines the custom adapter. IntPtr.Zero is a valid parameter value which means the default adapter will not be set. Without a valid adapter the following functions will do nothing and return Result.Warning_NoAdapterSet. |
WaitAndUpdate() , WaitForDeviceConnection() , Update() , UpdateStreamingDataOutput() , UpdateInteraction() ,
However, it is still possible to add interactors and subscribe to gaze focus events and data streams.
- Returns
- A new disposable IInteractionLib instance.
Creates a new IInteractionLib instance with a custom adapter.
- Parameters
-
fieldOfUse | This mandatory flag denotes if the Interaction Library is used for interactive or analytical purposes. Please see the EULA and documentation for more information. |
logger | A delegate that will be called by the Interaction Library for logging purposes. The level parameter denotes the highest log level at which the callback function will be called. The text parameter passed to the delegate contains a string formatted in a format specified by Tobii. |
level | This parameter denotes the highest log level at which the callback function will be called. For example, if "info" is specified, then the callback will be called for "error", "warning" and "info", but not for "debug" and "trace". |
adapterFunctions | Pointer to an instance of the native IL_AdapterFunctions structure that defines the custom adapter. IntPtr.Zero is a valid parameter value which means the default adapter will not be set. Without a valid adapter the following functions will do nothing and return Result.Warning_NoAdapterSet. |
WaitAndUpdate() , WaitForDeviceConnection() , Update() , UpdateStreamingDataOutput() , UpdateInteraction() ,
However, it is still possible to add interactors and subscribe to gaze focus events and data streams.
- Returns
- A new disposable IInteractionLib instance.