ISensor interface (sensorsapi.h)
Represents a sensor.
You will generally retrieve a pointer to ISensor by calling ISensorCollection::GetAt or ISensorManager::GetSensorByID, but other methods can retrieve this pointer, too. Various other Sensor API methods use a pointer to ISensor to provide information about a particular sensor or to enable you to specify which sensor to use for a particular action.
In addition to the methods inherited from IUnknown, the ISensor interface exposes the following methods.
Inheritance
The ISensor interface inherits from the IUnknown interface.
Methods
The ISensor interface has these methods.
ISensor::GetCategory Retrieves the identifier of the sensor category. |
ISensor::GetData Retrieves the most recent sensor data report. |
ISensor::GetEventInterest Retrieves the current event interest settings. |
ISensor::GetFriendlyName Retrieves the sensor name that is intended to be seen by the user. |
ISensor::GetID Retrieves the unique identifier of the sensor. |
ISensor::GetProperties Retrieves multiple sensor properties. |
ISensor::GetProperty Retrieves a property value. |
ISensor::GetState Retrieves the current operational state of the sensor. |
ISensor::GetSupportedDataFields Retrieves a set of PROPERTYKEYs that represent the data fields the sensor can provide. |
ISensor::GetType Retrieves the sensor type ID. |
ISensor::SetEventInterest Specifies the list of sensor events to receive. |
ISensor::SetEventSink Specifies the interface through which to receive sensor event notifications. |
ISensor::SetProperties Specifies sensor properties. |
ISensor::SupportsDataField Indicates whether the sensor supports the specified data field. |
ISensor::SupportsEvent Indicates whether the sensor supports the specified event. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | sensorsapi.h |