public class DiscoveredPrinterUsb extends DiscoveredPrinter
Modifier and Type | Field and Description |
---|---|
android.hardware.usb.UsbDevice |
device
The Android UsbDevice used by this DiscoveredPrinterUsb instance
|
android.hardware.usb.UsbManager |
manager
The Android UsbManager used by this DiscoveredPrinterUsb instance
|
address
Constructor and Description |
---|
DiscoveredPrinterUsb(String address,
android.hardware.usb.UsbManager manager,
android.hardware.usb.UsbDevice device)
Creates a new DiscoveredPrinterUsb
|
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
Creates a connection based on the information in the DiscoveredPrinter response.
|
equals, getDiscoveryDataMap, hashCode, toString
public android.hardware.usb.UsbDevice device
public android.hardware.usb.UsbManager manager
public DiscoveredPrinterUsb(String address, android.hardware.usb.UsbManager manager, android.hardware.usb.UsbDevice device)
address
- Identifier to associate with the created DiscoveredPrinterUsb instancemanager
- Android UsbManager to use for the created DiscoveredPrinterUsb instancedevice
- Android UsbDevice to use for the created DiscoveredPrinterUsb instancepublic Connection getConnection()
DiscoveredPrinter
getConnection
in class DiscoveredPrinter
Connection
to the discovered printerDiscoveredPrinter.getConnection()
© 2015 ZIH Corp. All Rights Reserved.