QSensorPluginInterface

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

Inheritance diagram of PySide2.QtSensors.QSensorPluginInterface

Detailed Description

The QSensorPluginInterface class is implemented in sensor plugins to register sensor backends with QSensorManager .

class PySide2.QtSensors.QSensorPluginInterface
PySide2.QtSensors.QSensorPluginInterface.registerSensors()

This function is called when the plugin is loaded. The plugin should register sensor backends by calling registerBackend() . Any backends that utilise other sensors should be registered in the QSensorPluginInterface::sensorsChanged() method instead.