In API 2.0 configuration of the SDK is done using preferences
and it is not tied to the setup
.
API key
Pre API 2.0
Analytics.SetupAndStartRecording("YOUR_API_KEY");
API 2.0
Smartlook.Instance.preference.ProjectKey = "YOUR PROJECT KEY";
Frame rate
Pre API 2.0
Analytics.SetupOptions smartlookSetupOptions = new Analytics.SetupOptions(
framerate: 2 );
Analytics.SetupAndStartRecording("YOUR API KEY", smartlookSetupOptions);
API 2.0
Smartlook.Instance.preferences.FrameRate = 2;
Rendering mode
Pre API 2.0
Analytics.SetRenderingMode(RenderingMode.NATIVE);
API 2.0
Smartlook.Instance.preferences.RenderingMode = RenderingMode.Native;
Adaptive frame rate
Pre API 2.0
Analytics.SetupOptions smartlookSetupOptions = new Analytics.SetupOptions(
useAdaptiveFramerate: false);
API 2.0
Smartlook.Instance.preferences.IsAdaptiveFrameRateEnabled = true;
API 2.0
Because SDK is set up automatically and project key
can be set after recording is started, this API is no longer needed and was removed.
Event tracking modes
Pre API 2.0
Analytics.SetEventTrackingMode();
Analytics.SetEventTrackingModes();
API 2.0
Former event tracking modes are set not as a list of "flags", with an easy-to-use API documented here.