Uses of Interface
com.pi4j.crowpi.components.events.EventHandler
Packages that use EventHandler
-
Uses of EventHandler in com.pi4j.crowpi.components
Methods in com.pi4j.crowpi.components with parameters of type EventHandlerModifier and TypeMethodDescriptionvoidRfidComponent.onCardDetected(EventHandler<RfidCard> handler) Sets or disables the handler for any new card which gets in the proximity of the PCD.voidIrReceiverComponent.onKeyPressed(EventHandler<IrReceiverComponent.Key> handler) Sets or disables the handler for received IR key presses.voidRfidComponent.waitForAnyCard(EventHandler<RfidCard> handler) Blocks current thread until any card has been detected, then runs the handler and continues.voidRfidComponent.waitForNewCard(EventHandler<RfidCard> handler) Blocks current thread until a new card has been detected, then runs the handler and continues. -
Uses of EventHandler in com.pi4j.crowpi.components.events
Classes in com.pi4j.crowpi.components.events that implement EventHandlerModifier and TypeClassDescriptionclassGeneric event provider to trigger aSimpleEventHandleronce a value has flapped between two values for a couple times.Fields in com.pi4j.crowpi.components.events declared as EventHandlerModifier and TypeFieldDescriptionprotected final EventHandler<V>DigitalEventListener.handlerHandler function which gets calledMethods in com.pi4j.crowpi.components.events with parameters of type EventHandlerModifier and TypeMethodDescriptiondefault DigitalEventListener<V>DigitalEventProvider.addListener(EventHandler<V> handler) Adds a new event listener to this component.EventProvider.addListener(EventHandler<V> handler) Adds a new event listener which uses the given handler.Constructors in com.pi4j.crowpi.components.events with parameters of type EventHandlerModifierConstructorDescriptionDigitalEventListener(com.pi4j.io.gpio.digital.DigitalInput digitalInput, Function<com.pi4j.io.gpio.digital.DigitalState, V> mapper, EventHandler<V> handler) Creates a new digital event listener for the given digital input which uses the provided mapper and event handler.