Setup & start recording
Pre API 2.0
Smartlook.setupAndStartRecording(YOUR_API_KEY)
Smartlook.setupAndStartRecording(YOUR_API_KEY);
API 2.0
There is no explicit setup()
method. The SDK is set up automatically.
Also, recording can be started even though the project key
is not set yet. The recorded data will not be sent out till the project key is set but will be stored for the "future" send.
This can be beneficial when the project key is fetched from a server. In this scenario, the recording can be started right away (on the application start). The recording will be complete, the upload of recorded data is just postponed for the moment when the project key is set.
Smartlook.instance.preference.projectKey = "YOUR PROJECT KEY"
Smartlook.instance.start()
Smartlook.getInstance().getPreferences().setProjectKey("YOUR PROJECT KEY");
Smartlook.getInstance().start();
Start & stop recording
Pre API 2.0
Smartlook.startRecording()
Smartlook.stopRecording()
Smartlook.startRecording();
Smartlook.stopRecording();
API 2.0
Smartlook.instance.start()
Smartlook.instance.stop()
Smartlook.getInstance().start();
Smartlook.getInstance().stop();
Check if the SDK is recording
Pre API 2.0
Smartlook.isRecording()
Smartlook.isRecording();
API 2.0
Smartlook.instance.state.status.isRecording()
Smartlook.getInstance().getState().getStatus().isRecording();
Reset session/user
Pre API 2.0
// Reset session
Smartlook.resetSession(false)
// Reset session & user
Smartlook.resetSession(true)
// Reset session
Smartlook.resetSession(false);
// Reset session & user
Smartlook.resetSession(true);
API 2.0
// Open new session
Smartlook.instance.user.session.openNew()
// Open new session & user
Smartlook.instance.user.openNew()
// Open new session
Smartlook.getInstance().getUser().getSession().openNew();
// Open new session & user
Smartlook.getInstance().getUser().openNew();
Opening a new session documentation.
Opening a new user documentation.