Class Enumerate


  • public class Enumerate
    extends java.lang.Object
    Singleton class which handles Connection of readers.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int GetDevCnt()
      Returns the number of pcProx devices found on this machine from USBConnect()
      static Reader[] USBConnect​(android.content.Context context)
      Returns an array with all connected USB readers
      static void USBDisconnect()
      Disconnects all the readers
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • USBConnect

        public static Reader[] USBConnect​(android.content.Context context)
                                   throws SDKException,
                                          java.lang.CloneNotSupportedException
        Returns an array with all connected USB readers
        Parameters:
        context - object of the activity
        Returns:
        an array with handles of all connected usb readers or null if no reader is connected
        Throws:
        SDKException - if there is a failure in USB communication.
        java.lang.CloneNotSupportedException
        See Also:
        USBDisconnect()
      • GetDevCnt

        public static int GetDevCnt()
        Returns the number of pcProx devices found on this machine from USBConnect()
        Returns:
        Number of devices on bus: 0..127
      • USBDisconnect

        public static void USBDisconnect()
        Disconnects all the readers
        See Also:
        USBConnect(Context)