add Event Callback
Adds an event callback to this object.
Parameters
filter
The event type to use for filtering events (eg LvglEventType.CLICKED).
callback
The event callback to add.
Adds an event callback to this object.
Parameters
filter
The event type to use for filtering events. Note that LvglEventType can provide the event type via the value extension property.
callback
The event callback to add.