Doly C++ SDK v1.00
Loading...
Searching...
No Matches
EyeEventListener Class Reference

Interface for receiving EyeControl events. More...

#include <EyeEventListener.h>

Public Member Functions

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.

Detailed Description

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().

Constructor & Destructor Documentation

◆ ~EyeEventListener()

virtual EyeEventListener::~EyeEventListener ( )
virtualdefault

Virtual destructor for proper cleanup in derived classes.

Member Function Documentation

◆ onEyeAbort()

virtual void EyeEventListener::onEyeAbort ( uint16_t id)
virtual

Called when an eye action/animation is aborted/stopped.

Parameters
idUser-provided animation/action id (forwarded from EyeControl).

◆ onEyeComplete()

virtual void EyeEventListener::onEyeComplete ( uint16_t id)
virtual

Called when an eye action/animation completes.

Parameters
idUser-provided animation/action id (forwarded from EyeControl).

◆ onEyeStart()

virtual void EyeEventListener::onEyeStart ( uint16_t id)
virtual

Called when an eye action/animation starts.

Parameters
idUser-provided animation/action id (forwarded from EyeControl).

The documentation for this class was generated from the following file: