Class HidManager

java.lang.Object
org.hid4java.HidManager

public class HidManager extends Object

Factory to provide the following to API consumers:

  • Access to configured HID services
Since:
0.0.1  
  • Field Details

    • servicesLock

      private static final Object servicesLock
    • hidServices

      private static HidServices hidServices
  • Constructor Details

    • HidManager

      public HidManager()
  • Method Details

    • getHidServices

      public static HidServices getHidServices() throws HidException

      Simple service provider providing generally safe defaults. If you find you are experiencing problems, particularly with constrained devices, consider exploring the HidServicesSpecification options.

      Returns:
      A single instance of the HID services using the default specification
      Throws:
      HidException
    • getHidServices

      public static HidServices getHidServices(HidServicesSpecification hidServicesSpecification) throws HidException

      Fully configurable service provider

      Parameters:
      hidServicesSpecification - Provides various parameters for configuring HID services
      Returns:
      A single instance of the HID services using specified parameters
      Throws:
      HidException
      Since:
      0.5.0