Class ScanEvent


  • public class ScanEvent
    extends Event
    ScanEvent is an event thrown by the barcode scanner. Used in the Scanner class.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int BATTERY_ERROR
      The event type for a scanner low battery event.
      java.lang.String data
      The data resulting from the scan when type is SCANNED.
      static int SCANNED
      The event type for a scanner scanning event.
      static int TRIGGERED
      The event type for a scanner triggered: A scan attempt was initiated - hard or soft trigger.
    • Constructor Summary

      Constructors 
      Constructor Description
      ScanEvent()  
    • Field Detail

      • SCANNED

        public static final int SCANNED
        The event type for a scanner scanning event.
        See Also:
        Constant Field Values
      • BATTERY_ERROR

        public static final int BATTERY_ERROR
        The event type for a scanner low battery event.
        See Also:
        Constant Field Values
      • TRIGGERED

        public static final int TRIGGERED
        The event type for a scanner triggered: A scan attempt was initiated - hard or soft trigger.
        See Also:
        Constant Field Values
      • data

        public java.lang.String data
        The data resulting from the scan when type is SCANNED.
    • Constructor Detail

      • ScanEvent

        public ScanEvent()
    • Method Detail

      • update

        public void update​(int type)
        Updates a scan event with the given type. target is always null.