IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QInsightTracker Class

Control the Qt Insight Tracker and send events to the back-end server.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QInsightTracker Class

  • Header: QInsightTracker

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS InsightTracker)

    target_link_libraries(mytarget PRIVATE Qt6::InsightTracker)

  • qmake: QT += insighttracker

  • Inherited By:

  • Instantiated By: qml-qtinsighttracker-insighttracker.xml

  • Inherits: QObject

Detailed Description

QInsightTracker provides a C++ API that can be used to control the tracker and to send events to the back-end server.

Member Function Documentation

 

QInsightTracker::QInsightTracker()

Constructs a tracker object. All tracker objects share the same back-end server and configuration.

[default] QInsightTracker::~QInsightTracker()

Destroys the tracker object and frees all allocated resources.

void QInsightTracker::clearCache()

Clear all events from the local cache.

QInsightConfiguration *QInsightTracker::configuration() const

Configure the tracker

See Also

void QInsightTracker::interaction(const QString &name, const QString &category = QString()) const

Send a interaction event name. The optional category parameter can be used to filter tracking of the events.

See Also

void QInsightTracker::interaction(const QString &name, const QString &contextKey, double contextValue, const QString &category = QString()) const

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.

See Also

bool QInsightTracker::isEnabled() const

Is tracking enabled. Returns true if tracking is enabled

See Also

void QInsightTracker::setEnabled(bool enabled)

Enable or disable tracking.

See Also

void QInsightTracker::startNewSession()

Start a new session A new session id is generated and then used in all subsequent events.

void QInsightTracker::transition(const QString &name) const

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.

void QInsightTracker::transition(const QString &name, const QString &contextKey, double contextValue) const

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.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+