KinectSensor.IsAvailable Property
Gets whether the Kinect sensor is available and able to retrieve frames.
Syntax
public:
property bool IsAvailable {
bool get ();
}
public bool IsAvailable { get; }
var isAvailable = kinectSensor.isAvailable;
Property value
[C++]
[C#]
[JavaScript]
Type: bool
Type: bool
Type: Boolean
Returns true if the Kinect sensor is available; false otherwise.
Remarks
Use IsAvailable to find out whether the sensor is able to get frames. IsAvailable will be true after calling Open.
IsAvailable will become false after calling Close.
Requirements
Namespace: WindowsPreview.Kinect
Metadata: windowspreview.kinect.winmd