Package 

Class DeviceFilter


  • 
    public class DeviceFilter
    
                        

    Provides methods to filter USB devices based on vendor/product IDs and device properties.

    • Method Summary

      Modifier and Type Method Description
      boolean checkVendorProductIds(int vendorId, int productId) Checks if the given vendor and product IDs match the filter criteria.
      boolean checkUsbDevice(UsbManager usbManager, UsbDevice usbDevice) Evaluates whether the specified USB device is permitted for use by the SDK.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 ID
        productId - 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 instance
        usbDevice - the UsbDevice to evaluate