QSensorGesturePluginInterface Class

The QSensorGesturePluginInterface class is the pure virtual interface to sensor gesture plugins. More...

Header: #include <QSensorGesturePluginInterface>
qmake: QT += sensors
Since: Qt 5.1

This class was introduced in Qt 5.1.

Public Functions

virtual ~QSensorGesturePluginInterface()
virtual QList<QSensorGestureRecognizer *> createRecognizers() = 0
virtual QString name() const = 0
virtual QStringList supportedIds() const = 0

Detailed Description

The QSensorGesturePluginInterface class is implemented in sensor gesture plugins to register sensor gesture recognizers with QSensorGestureManager.

See also QtSensorGestures Plugins.

Member Function Documentation


Construct the QSensorGesturePluginInterface.

[virtual] QSensorGesturePluginInterface::~QSensorGesturePluginInterface()

Destroy the QSensorGesturePluginInterface.

[pure virtual] QList<QSensorGestureRecognizer *> QSensorGesturePluginInterface::createRecognizers()

Called by the manager to create the recognizers. Plugins should initialize and register their recognizers using QSensorGestureManager::registerSensorGestureRecognizer() here.

See also QSensorGestureManager.

[pure virtual] QString QSensorGesturePluginInterface::name() const

Returns this plugins name.

[pure virtual] QStringList QSensorGesturePluginInterface::supportedIds() const

Returns a list of the recognizer Id's that this plugin supports.

© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.