Control the Qt Insight Tracker and send events to the back-end server. 更多...
头: | #include <QInsightTracker> |
qmake: | QT += insighttracker |
实例化: | InsightTracker |
继承: | QObject |
QInsightTracker () | |
void | clearCache () |
QInsightConfiguration * | configuration () const |
void | interaction (const QString & name , const QString & category = QString()) const |
void | interaction (const QString & name , const QString & contextKey , double contextValue , const QString & category = QString()) const |
bool | isEnabled () const |
void | setEnabled (bool enabled ) |
void | startNewSession () |
void | transition (const QString & name ) const |
void | transition (const QString & name , const QString & contextKey , double contextValue ) const |
QInsightTracker provides a C++ API that can be used to control the tracker and to send events to the back-end server.
Constructs a tracker object. All tracker objects share the same back-end server and configuration.
Clear all events from the local cache.
Configure the tracker
另请参阅 QInsightConfiguration .
Send a interaction event name . The optional category parameter can be used to filter tracking of the events.
另请参阅 QInsightConfiguration::setCategories .
Send a interaction event name with additional context data. Context data can be sent as a key/value pair in contextKey and contextValue . The optional category parameter can be used to filter tracking of the events.
另请参阅 QInsightConfiguration::setCategories .
Is tracking enabled. Returns true if tracking is enabled
另请参阅 QInsightTracker::setEnabled .
Enable or disable tracking.
另请参阅 QInsightTracker::isEnabled .
Start a new session A new session id is generated and then used in all subsequent events.
Send a transition event name . Use transition events to track the current state of the UI. Transition events can be sent whenever your application changes UI views or states, or whenever there are other UI flow changes such as dialog and notification pop-ups.
Send a transition event name with additional context data. Context data can be sent as a key/value pair in contextKey and contextValue . Use transition events to track the current state of the UI. Transition events can be sent whenever your application changes UI views or states, or whenever there are other UI flow changes such as dialog and notification pop-ups.