Configuration

API key

Pre API 2.0

Smartlook.setupAndStartRecording("YOUR_API_KEY");

API 2.0

Smartlook.setProjectKey({ key: "your-unique-project-key" });

Project key documentation.

Frame rate

Pre API 2.0

The Smartlook React Native SDK v1.x did not provide any controls over the SDK's recording frame rate.

API 2.0

Smartlook.setFrameRate({ frameRate: 2 });

const frameRate = await Smartlook.getFrameRate();

Frame rate documentation.

Rendering mode

Pre API 2.0

Smartlook.setRenderingMode({ renderingMode: Smartlook.RenderingMode} );

API 2.0

Smartlook.setRenderingMode({ renderingMode: RenderingMode} );

Rendering mode documentation.

Adaptive frame rate

Pre API 2.0

The Smartlook React Native SDK v1.x did not provide any adaptive frame rate controls.

API 2.0

Smartlook.setAdaptiveFrameRateEnabled({ isEnabled: false });

const isEnabled = await Smartlook.getSurfaceCaptureEnabled();

Adaptive frame rate documentation.

Event tracking modes

Pre API 2.0

Smartlook.setEventTrackingMode(eventTrackingMode: EventTrackingMode);
Smartlook.setEventTrackingModes(eventTrackingModes: Array<EventTrackingMode>);

API 2.0

Event tracking is no longer represented as a list of modes. They are rewritten with an easy-to-use API documented here.