Share via


KinectSensor Interface

Kinect for Windows 1.8

Configures the Kinect sensor and sets handlers for events and frames.

Syntax

var sensor = Kinect.sensor();

Members

KinectSensor has the following members.

Functions

Name Description
KinectSensor.addEventHandler Function Adds the specified event handler.
KinectSensor.addStreamFrameHandler Function Adds the specified stream frame handler.
KinectSensor.connect Function Enables the connection to the server.
KinectSensor.disconnect Function Disables the connection to the server.
KinectSensor.getConfig Function Retrieves the current sensor configuration.
KinectSensor.postConfig Function Updates the sensor configuration.
KinectSensor.removeEventHandler Function Removes the specified event handler, or removes all event handlers.
KinectSensor.removeStreamFrameHandler Function Removes the specified stream frame handler, or removes all stream frame handlers.
KinectSensor.setHitTestHandler Function Sets the hit test handler.

Properties

Name Description
KinectSensor.isConnected Property Gets a Boolean value that indicates whether the connection to the server is currently enabled.

Requirements

Library: Kinect-1.8.0.js

See Also

Reference

Core Components