内容表

上一话题

QSensorManager

下一话题

QSensorReading

QSensorPluginInterface

QSensorPluginInterface class is the pure virtual interface to sensor plugins. 更多 …

Inheritance diagram of PySide2.QtSensors.QSensorPluginInterface

详细描述

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

class 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.