Lifecycle & Recording

SDK setup (on application start)

SDK is configured automatically by enabling Smartlook Plugin in Plugin settings:

2181

Setup configuration

You can start recording automatically by ticking the Start Recording option in Smartlook plugin settings. You can also provide the desired framerate:

2182

Start and stop recording

Recording can be started or stopped at any time, the only requirement is that the SDK is set up.

Blueprint:

762
#include "Runtime/Analytics/Analytics/Public/Analytics.h"
#include "Runtime/Analytics/Analytics/Public/Interfaces/IAnalyticsProvider.h"

FAnalytics::Get().GetDefaultConfiguredProvider()->StartSession());
FAnalytics::Get().GetDefaultConfiguredProvider()->EndSession());

🚧

EndSession()

doesn't need to be called on application closure. Recording is stopped automatically.