ISensorEvents interface (sensorsapi.h)

The callback interface you must implement if you want to receive sensor events.

To subscribe to events for a particular sensor, call ISensor::SetEventSink.

In addition to the methods inherited from IUnknown, the ISensorEvents interface exposes the following methods.

Inheritance

The ISensorEvents interface inherits from the IUnknown interface.

Methods

The ISensorEvents interface has these methods.

 
ISensorEvents::OnDataUpdated

Provides sensor event data.
ISensorEvents::OnEvent

Provides custom event notifications.
ISensorEvents::OnLeave

Provides notification that a sensor device is no longer connected.
ISensorEvents::OnStateChanged

Provides a notification that a sensor state has changed.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header sensorsapi.h

See also

COM Interfaces