class
LambdaMessageListenerAn implementation of IMessageListener using lambda functions.
Base classes
- class IMessageListener
- An interface that can receive messages sent through the app.
Public types
-
using HandleMessage_T = eastl::function<bool(uint32_
t, void*)>
Constructors, destructors, conversion operators
-
LambdaMessageListener(HandleMessage_
T function) - ~LambdaMessageListener() virtual
Public functions
Protected variables
Function documentation
bool App:: LambdaMessageListener:: HandleMessage(uint32_ t messageID,
void* msg) override
Called every time a message is received.
Parameters | |
---|---|
messageID | The ID of the message received. |
msg | The data of the message received, it might be nullptr. |
Returns | Whether the message was handled or not. |
Only the messages with an ID this listener signed up for will call this event.