Class: QgsSensorAbstractMetadata

class qgis.core.QgsSensorAbstractMetadata

Bases: sip.wrapper

Stores metadata about a sensor class.

Note

In C++ you can use QgsSensorAbstractMetadata convenience class.

New in version 3.32.

QgsSensorAbstractMetadata(type: str, visibleName: str) Constructor for QgsSensorAbstractMetadata with the specified class type.

QgsSensorAbstractMetadata(QgsSensorAbstractMetadata)

Methods

createSensor

Creates a sensor of this class.

type

Returns the unique type code for the sensor class.

visibleName

Returns a translated, user visible name for the sensor class.

createSensor(self, parent: QObject) QgsAbstractSensor

Creates a sensor of this class.

Parameters:

parent (QObject) –

Return type:

QgsAbstractSensor

type(self) str

Returns the unique type code for the sensor class.

Return type:

str

visibleName(self) str

Returns a translated, user visible name for the sensor class.

Return type:

str