Share via


KinectSensorChooser Members

The following table(s) list the members exposed by the KinectSensorChooser type.

Public Constructors

Name Description
Public Method KinectSensorChooser Component that automatically finds a Kinect and handles updates to the sensor.

Public Properties

Name Description
Public Property Kinect The sensor that this component has connected to. When this changes clients will get INotifyPropertyChanged events.
Public Property RequiredConnectionId The DeviceConnectionId for the sensor. Set this to null to have the KinectSensorChooser find the first available sensor.
Public Property Status The status of the current sensor or why we cannot retrieve a sensor. When this changes clients will get INotifyPropertyChanged events.

Public Methods

Name Description
Public Method Start Starts choosing a sensor. In the typical case, a sensor will be found and events will be fired before this function returns.
Public Method Stop Gives up the current sensor if it has one. Stops watching for new sensors.
Public Method TryResolveConflict Called to retry finding a sensor when the SensorConflict or NoAvailableSensors flags are set.

Public Events

Name Description
Public Event KinectChanged Event triggered when the choosen KinectSensor changed. This is roughly equivalent to monitoring the PropertyChanged event and watching for the "Kinect" property.
Public Event PropertyChanged ContextEventWrapper< > needs EvendHandler<> defined handlers. PropertyChangedEventHandler is not like that so we wrap it in a handler that is. These handlers need to be tracked so the proper thing gets removed. Need to lock to protect the changedHandlers data.

See Also

Reference

KinectSensorChooser Class
Microsoft.Kinect.Toolkit Namespace