public final class Services extends Object implements javax.usb.UsbServices
Constructor and Description |
---|
Services()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addUsbServicesListener(javax.usb.event.UsbServicesListener listener) |
String |
getApiVersion() |
String |
getImpDescription() |
String |
getImpVersion() |
javax.usb.UsbHub |
getRootUsbHub() |
void |
removeUsbServicesListener(javax.usb.event.UsbServicesListener listener) |
void |
scan()
Manually scans for USB device connection changes.
|
public Services() throws javax.usb.UsbException
javax.usb.UsbException
- When properties could not be loaded.org.usb4java.LoaderException
- When native libraries could not be loaded.public javax.usb.UsbHub getRootUsbHub()
getRootUsbHub
in interface javax.usb.UsbServices
public void addUsbServicesListener(javax.usb.event.UsbServicesListener listener)
addUsbServicesListener
in interface javax.usb.UsbServices
public void removeUsbServicesListener(javax.usb.event.UsbServicesListener listener)
removeUsbServicesListener
in interface javax.usb.UsbServices
public String getApiVersion()
getApiVersion
in interface javax.usb.UsbServices
public String getImpVersion()
getImpVersion
in interface javax.usb.UsbServices
public String getImpDescription()
getImpDescription
in interface javax.usb.UsbServices
public void scan()
Copyright © 2011–2018 usb4java Team. All rights reserved.