com.morpho.android.usb
Class USBDeviceAttributes
java.lang.Object
com.morpho.android.usb.USBDeviceAttributes
- All Implemented Interfaces:
- android.os.Parcelable
public class USBDeviceAttributes
- extends java.lang.Object
- implements android.os.Parcelable
Nested classes/interfaces inherited from interface android.os.Parcelable |
android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T> |
Fields inherited from interface android.os.Parcelable |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
Constructor Summary |
protected |
USBDeviceAttributes(int vendorId,
int productId)
|
|
USBDeviceAttributes(java.lang.String path,
int vendorId,
int productId,
int interfaceNumber)
Constructs an USBDeviceAttributes object (called by the JNI) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CREATOR
public static android.os.Parcelable.Creator<USBDeviceAttributes> CREATOR
- Creator method from a parcel
USBDeviceAttributes
protected USBDeviceAttributes(int vendorId,
int productId)
USBDeviceAttributes
public USBDeviceAttributes(java.lang.String path,
int vendorId,
int productId,
int interfaceNumber)
- Constructs an USBDeviceAttributes object (called by the JNI)
- Parameters:
path
- vendorId
- productId
- interfaceNumber
-
getVendorId
public int getVendorId()
- Returns:
- the vendorId
getProduct
public java.lang.String getProduct()
- Returns:
- the product
getInterfaceNumber
public int getInterfaceNumber()
- Returns:
- the interfaceNumber
getProductId
public int getProductId()
- Returns:
- the productId
getManufacturer
public java.lang.String getManufacturer()
- Returns:
- the manufacturer
getPath
public java.lang.String getPath()
- Returns:
- the path
setProduct
public void setProduct(java.lang.String product)
- Parameters:
product
- the product to set
describeContents
public int describeContents()
- Specified by:
describeContents
in interface android.os.Parcelable
writeToParcel
public void writeToParcel(android.os.Parcel dest,
int flags)
- Specified by:
writeToParcel
in interface android.os.Parcelable
getFreindlyName
public java.lang.String getFreindlyName()
setFreindlyName
public void setFreindlyName(java.lang.String freindlyName)