Uses of Interface
net.codecrete.usb.USBDevice
-
Uses of USBDevice in net.codecrete.usb
Methods in net.codecrete.usb that return USBDeviceModifier and TypeMethodDescriptionstatic USBDeviceUSB.getDevice(List<USBDeviceFilter> filters) Gets the first connected USB device matching any of the specified filters.static USBDeviceUSB.getDevice(USBDeviceFilter filter) Gets the first connected USB device matching the specified filter.Methods in net.codecrete.usb that return types with arguments of type USBDeviceModifier and TypeMethodDescriptionUSB.getAllDevices()Gets a list of all connected USB devices.USB.getDevices(List<USBDeviceFilter> filters) Gets a list of connected USB devices matching any of the specified filters.USB.getDevices(USBDeviceFilter filter) Gets a list of connected USB devices matching the specified filter.Methods in net.codecrete.usb with parameters of type USBDeviceModifier and TypeMethodDescriptionbooleanTests if the specified USB device matches this filter.static booleanUSBDeviceFilter.matchesAny(USBDevice device, List<USBDeviceFilter> filters) Test if the USB devices matches any of the filter conditions.Method parameters in net.codecrete.usb with type arguments of type USBDeviceModifier and TypeMethodDescriptionstatic voidUSB.setOnDeviceConnected(Consumer<USBDevice> handler) Sets the handler to be called when a USB device is connected.static voidUSB.setOnDeviceDisconnected(Consumer<USBDevice> handler) Sets the handler to be called when a USB device is disconnected.