initialize the library . this will load all available drivers , and see which devices are available it is forbidden to call any other method in openni before calling initialize . concode_field_sep int TIMEOUT_FOREVER concode_elem_sep List<DeviceDisconnectedListener> mDeviceDisconnectedListener concode_elem_sep List<DeviceStateChangedListener> mDeviceStateChangedListener concode_elem_sep List<DeviceConnectedListener> mDeviceConnectedListener concode_field_sep Version getVersion concode_elem_sep void onDeviceConnected concode_elem_sep void deviceStateChanged concode_elem_sep void addDeviceStateChangedListener concode_elem_sep void removeDeviceConnectedListener concode_elem_sep void removeDeviceStateChangedListener concode_elem_sep String getExtendedError concode_elem_sep void addDeviceConnectedListener concode_elem_sep void deviceDisconnected concode_elem_sep void onDeviceStateChanged concode_elem_sep void addDeviceDisconnectedListener concode_elem_sep void onDeviceDisconnected concode_elem_sep void deviceConnected concode_elem_sep void shutdown concode_elem_sep List<DeviceInfo> enumerateDevices concode_elem_sep int waitForAnyStream concode_elem_sep void removeDeviceDisconnectedListener
void function ( ) { NativeMethods . checkReturnStatus ( NativeMethods . oniInitialize ( ) ) ; mDeviceConnectedListener = new ArrayList < DeviceConnectedListener > ( ) ; mDeviceDisconnectedListener = new ArrayList < DeviceDisconnectedListener > ( ) ; mDeviceStateChangedListener = new ArrayList < DeviceStateChangedListener > ( ) ; }