public class DeviceInfo
extends java.lang.Object
The DeviceInfo class encapsulates info related to a specific device.
Applications will generally obtain objects of this type via calls to
OpenNI.enumerateDevices() or Device.getDeviceInfo(), and
then use the various accessor functions to obtain specific information on that device.
There should be no reason for application code to instantiate this object directly.
| Constructor and Description |
|---|
DeviceInfo(java.lang.String uri,
java.lang.String vendor,
java.lang.String name,
int usbVendorId,
int usbProductId) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Getter function for the device name.
|
java.lang.String |
getUri()
Getter function for the device URI.
|
int |
getUsbProductId()
Getter function for the USB PID device code.
|
int |
getUsbVendorId()
Getter function for the USB VID device code.
|
java.lang.String |
getVendor()
Getter function for the device vendor name.
|
public DeviceInfo(java.lang.String uri,
java.lang.String vendor,
java.lang.String name,
int usbVendorId,
int usbProductId)
public final java.lang.String getUri()
Device.open(String)
to open a specific device.public final java.lang.String getVendor()
public final java.lang.String getName()
public int getUsbVendorId()
public int getUsbProductId()