Interface for receiving EyeControl events.
More...
#include <EyeEventListener.h>
|
| virtual | ~EyeEventListener ()=default |
| | Virtual destructor for proper cleanup in derived classes.
|
| virtual void | onEyeStart (uint16_t id) |
| | Called when an eye action/animation starts.
|
| virtual void | onEyeComplete (uint16_t id) |
| | Called when an eye action/animation completes.
|
| virtual void | onEyeAbort (uint16_t id) |
| | Called when an eye action/animation is aborted/stopped.
|
Interface for receiving EyeControl events.
Implement this interface and register it using EyeEvent::AddListener().
- Note
- Default implementations are no-ops, so you may override only what you need.
- Warning
- Callbacks are typically invoked from an internal worker/event thread. Keep handlers fast and avoid blocking.
-
The listener object must remain valid until it is removed via EyeEvent::RemoveListener().
◆ ~EyeEventListener()
| virtual EyeEventListener::~EyeEventListener |
( |
| ) |
|
|
virtualdefault |
Virtual destructor for proper cleanup in derived classes.
◆ onEyeAbort()
| virtual void EyeEventListener::onEyeAbort |
( |
uint16_t | id | ) |
|
|
virtual |
Called when an eye action/animation is aborted/stopped.
- Parameters
-
| id | User-provided animation/action id (forwarded from EyeControl). |
◆ onEyeComplete()
| virtual void EyeEventListener::onEyeComplete |
( |
uint16_t | id | ) |
|
|
virtual |
Called when an eye action/animation completes.
- Parameters
-
| id | User-provided animation/action id (forwarded from EyeControl). |
◆ onEyeStart()
| virtual void EyeEventListener::onEyeStart |
( |
uint16_t | id | ) |
|
|
virtual |
Called when an eye action/animation starts.
- Parameters
-
| id | User-provided animation/action id (forwarded from EyeControl). |
The documentation for this class was generated from the following file: