Uses of Interface
net.codecrete.usb.UsbDevice
-
Uses of UsbDevice in net.codecrete.usb
Methods in net.codecrete.usb that return types with arguments of type UsbDeviceModifier and TypeMethodDescriptionUsb.findDevice
(int vendorId, int productId) Gets the first connected USB device with the specified vendor and product ID.Usb.findDevice
(@NotNull UsbDevicePredicate predicate) Gets the first connected USB device matching the specified predicate.Usb.findDevices
(@NotNull UsbDevicePredicate predicate) Gets a list of connected USB devices matching the specified predicate.static @NotNull @Unmodifiable Collection
<UsbDevice> Usb.getDevices()
Gets a list of all connected USB devices.Methods in net.codecrete.usb with parameters of type UsbDeviceModifier and TypeMethodDescriptionboolean
Evaluates this predicate on the given USB device.static boolean
UsbDevicePredicate.matchesAny
(@NotNull UsbDevice device, @NotNull 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 void
Usb.setOnDeviceConnected
(@Nullable Consumer<UsbDevice> handler) Sets the handler to be called when a USB device is connected.static void
Usb.setOnDeviceDisconnected
(@Nullable Consumer<UsbDevice> handler) Sets the handler to be called when a USB device is disconnected.