Configuration

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";

Project key documentation.

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;

Frame rate documentation.

Rendering mode

Pre API 2.0

Analytics.SetRenderingMode(RenderingMode.NATIVE);

API 2.0

Smartlook.Instance.preferences.RenderingMode = RenderingMode.Native;

Rendering mode documentation.

Rendering mode option documentation.

Adaptive frame rate

Pre API 2.0

Analytics.SetupOptions smartlookSetupOptions = new Analytics.SetupOptions(
         useAdaptiveFramerate: false);

API 2.0

Smartlook.Instance.preferences.IsAdaptiveFrameRateEnabled = true;

Adaptive frame rate documentation.

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.

Start recording and project key documentation.

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.