# Class UsbDevice

java.lang.Object
com.codename1.io.usb.UsbDevice

public final class UsbDevice extends java.lang.Object
One attached USB device. Immutable. The `Object` returned by `getNativeDevice()` is the platform device handle and may be cast in native interface code (`UsbDevice` on Android).

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UsbDevice(String deviceName, int vendorId, int productId, String productName, String manufacturerName, java.lang.Object nativeDevice)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getDeviceName()`
  `String`
  `getManufacturerName()`
  `java.lang.Object`
  `getNativeDevice()`
  `int`
  `getProductId()`
  `String`
  `getProductName()`
  `int`
  `getVendorId()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### UsbDevice

    public UsbDevice(String deviceName, int vendorId, int productId, String productName, String manufacturerName, java.lang.Object nativeDevice)

- ## Method Details

  - ### getDeviceName

    public String getDeviceName()

  - ### getVendorId

    public int getVendorId()

  - ### getProductId

    public int getProductId()

  - ### getProductName

    public String getProductName()

  - ### getManufacturerName

    public String getManufacturerName()

  - ### getNativeDevice

    public java.lang.Object getNativeDevice()