-
public class DeviceFilterProvides methods to filter USB devices based on vendor/product IDs and device properties.
-
-
Method Summary
Modifier and Type Method Description booleancheckVendorProductIds(int vendorId, int productId)Checks if the given vendor and product IDs match the filter criteria. booleancheckUsbDevice(UsbManager usbManager, UsbDevice usbDevice)Evaluates whether the specified USB device is permitted for use by the SDK. -
-
Method Detail
-
checkVendorProductIds
boolean checkVendorProductIds(int vendorId, int productId)
Checks if the given vendor and product IDs match the filter criteria.
- Parameters:
vendorId- the USB vendor IDproductId- the USB product ID
-
checkUsbDevice
boolean checkUsbDevice(UsbManager usbManager, UsbDevice usbDevice)
Evaluates whether the specified USB device is permitted for use by the SDK. This method mayperform tests or checks on the device and returns true if the device meets all criteriarequired for SDK usage.
- Parameters:
usbManager- the UsbManager instanceusbDevice- the UsbDevice to evaluate
-
-
-
-