Uses of Interface
com.pi4j.crowpi.components.events.SimpleEventHandler
-
Uses of SimpleEventHandler in com.pi4j.crowpi.components
Modifier and TypeMethodDescriptionvoid
ButtonComponent.onDown
(SimpleEventHandler handler) Sets or disables the handler for the onDown event.void
ButtonMatrixComponent.onDown
(int number, SimpleEventHandler handler) Sets or disables the handler for the onDown of the given button.void
PirMotionSensorComponent.onMovement
(SimpleEventHandler handler) Sets or disables the handler for the onMovement event.void
SoundSensorComponent.onNoise
(SimpleEventHandler handler) Sets or disables the handler for the onNoise event.void
UltrasonicDistanceSensorComponent.onObjectDisappeared
(SimpleEventHandler handler) Sets or disables the handler for the object disappear recognition.void
UltrasonicDistanceSensorComponent.onObjectFound
(SimpleEventHandler handler) Sets or disables the handler for the object found recognition.void
TouchSensorComponent.onRelease
(SimpleEventHandler handler) Sets or disables the handler for the onRelease event.void
TiltSensorComponent.onShake
(int threshold, SimpleEventHandler handler) Sets or disables the handler for the onShake event.void
TiltSensorComponent.onShake
(SimpleEventHandler handler) Sets or disables the handler for the onShake event.void
SoundSensorComponent.onSilence
(SimpleEventHandler handler) Sets or disables the handler for the onSilence event.void
PirMotionSensorComponent.onStillstand
(SimpleEventHandler handler) Sets or disables the handler for the onStillstand event.void
TiltSensorComponent.onTiltLeft
(SimpleEventHandler handler) Sets or disables the handler for the onTiltLeft event.void
TiltSensorComponent.onTiltRight
(SimpleEventHandler handler) Sets or disables the handler for the onTiltRight event.void
TouchSensorComponent.onTouch
(SimpleEventHandler handler) Sets or disables the handler for the onTouch event.void
ButtonComponent.onUp
(SimpleEventHandler handler) Sets or disables the handler for the onUp event.void
ButtonMatrixComponent.onUp
(int number, SimpleEventHandler handler) Sets or disables the handler for the onUp of the given button.protected void
Component.triggerSimpleEvent
(SimpleEventHandler handler) Utility function to trigger a simple event handler. -
Uses of SimpleEventHandler in com.pi4j.crowpi.components.events
Modifier and TypeMethodDescriptionvoid
FlappingEventProvider.setOptions
(int threshold, SimpleEventHandler handler) Sets the threshold and event handler for this instance.