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

Smartlook.instance.preference.setProjectKey('YOUR PROJECT KEY');
Smartlook.instance.start();

API 2.0

Smartlook.instance.preference.setProjectKey('YOUR PROJECT KEY');
Smartlook.instance.start();

Project key documentation.

Frame rate

Pre API 2.0

SetupOptions options =(SetupOptionsBuilder('YOUR_API_KEY')..Fps = 2).build();
Smartlook.setupAndStartRecording(options);

API 2.0

Smartlook.instance.preferences.preferences.setFrameRate(5);

Frame rate documentation.

Rendering mode

Pre API 2.0

Smartlook.setRenderingMode(SmartlookRenderingMode.native);

API 2.0

Smartlook.instance.preferences.setRenderingMode(RenderingMode.native);

Rendering mode documentation.

Event tracking modes

Pre API 2.0

//one mode
Smartlook.setEventTrackingMode(EventTrackingMode.FULL_TRACKING);
//multiple modes
List<EventTrackingMode> eventTrackingModes = 
  [EventTrackingMode.FULL_TRACKING,
   EventTrackingMode.IGNORE_USER_INTERACTION];
Smartlook.setEventTrackingModes(eventTrackingModes);

API 2.0

Former event tracking modes are set not as a list of "flags", with an easy-to-use API documented