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<USBDevicePredicate> predicates) Gets the first connected USB device matching any of the specified predicates.static USBDeviceUSB.getDevice(USBDevicePredicate predicate) Gets the first connected USB device matching the specified predicate.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<USBDevicePredicate> predicates) Gets a list of connected USB devices matching any of the specified predicates/filters.USB.getDevices(USBDevicePredicate predicate) Gets a list of connected USB devices matching the specified predicate.Methods in net.codecrete.usb with parameters of type USBDeviceModifier and TypeMethodDescriptionbooleanTests if the specified USB device matches this filter.booleanEvaluates this predicate on the given USB device.static booleanUSBDevicePredicate.matchesAny(USBDevice device, List<USBDevicePredicate> predicates) 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.