Class UsbPlatform
java.lang.Object
com.codename1.io.usb.UsbPlatform
Platform-supplied implementation of the USB host APIs. Application code
talks to Usb; the facade fetches this via
Display.getInstance().getUsbPlatform().
Part of the framework's service-provider interface, not intended for application use.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDeviceListener(UsbDeviceListener listener) booleanhasPermission(UsbDevice device) booleanopenInputStream(UsbDevice device, int endpointAddress) openOutputStream(UsbDevice device, int endpointAddress) voidremoveDeviceListener(UsbDeviceListener listener) voidrequestPermission(UsbDevice device)
-
Constructor Details
-
UsbPlatform
public UsbPlatform()
-
-
Method Details
-
isSupported
public boolean isSupported() -
listDevices
-
addDeviceListener
-
removeDeviceListener
-
requestPermission
-
hasPermission
-
openInputStream
- Throws:
IOException
-
openOutputStream
- Throws:
IOException
-