![]() |
ezEngine Release 25.08
|
An object that can be passed to ezEvent::AddEventHandler to store the subscription information and automatically remove the event handler upon destruction. More...
#include <Event.h>
Public Member Functions | |
| Unsubscriber (Unsubscriber &&other) | |
| void | operator= (Unsubscriber &&other) |
| void | Unsubscribe () |
| If the unsubscriber holds a valid subscription, it will be removed from the target ezEvent. | |
| bool | IsSubscribed () const |
| Checks whether this unsubscriber has a valid subscription. | |
| void | Clear () |
| Resets the unsubscriber. Use when the target ezEvent may have been destroyed and automatic unsubscription cannot be executed anymore. | |
Friends | |
| class | ezEventBase< EventData, MutexType, EventType > |
An object that can be passed to ezEvent::AddEventHandler to store the subscription information and automatically remove the event handler upon destruction.