KinectSensor.IsAvailableChanged Event
This event fires when the IsAvailable property changes.
Syntax
public:
event TypedEventHandler<KinectSensor, IsAvailableChangedEventArgs>^ IsAvailableChanged {
EventRegistrationToken add (TypedEventHandler<KinectSensor, IsAvailableChangedEventArgs>^ value);
void remove (EventRegistrationToken token);
}
public event TypedEventHandler<KinectSensor, IsAvailableChangedEventArgs> IsAvailableChanged
function onIsAvailableChanged(eventArgs) { /* Your code */ }
// addEventListener syntax
kinectSensor.addEventListener("isavailablechanged", onIsAvailableChanged);
kinectSensor.removeEventListener("isavailablechanged", onIsAvailableChanged);
- or -
kinectSensor.onisavailablechanged = onIsAvailableChanged;
Requirements
Namespace: WindowsPreview.Kinect
Metadata: windowspreview.kinect.winmd