# Class UsbDevice

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

public final class UsbDevice extends 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, Object nativeDevice)`

- ## Method Summary

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

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### UsbDevice

    public UsbDevice(String deviceName, int vendorId, int productId, String productName, String manufacturerName, 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 Object getNativeDevice()