5. Usage
This document refers to deprecated parts of the platform and has been left intact to help customers with legacy integrations. In order to access the latest platform features and documentation, please go to https://docs.sentiance.com.
Setup SDK events listeners
It is recommended to have SDK event listeners set up as soon as possible, so that you do not miss any important SDK events. The best place to do this is inside the top-level component's componentDidMount
as follows.
Starting Detections
Detections will automatically start if you set the shouldStart
parameter to true
while initializing the SDK with initWithUserLinkingEnabled
. If you set it to false
, you can manually start the detections as follows.
Once the detections have started, you can callRNSentiance.listenUserActivityUpdates()
to receive user activity updates in the listener you set in the previous step.
To learn more about Sentiance React Native bridge methods, see the typing definitions here.
Last updated