addEventCallback

expect open fun addEventCallback(filter: LvglEventType, callback: LvglEventCallback)

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.


expect open fun addEventCallback(filter: UInt, callback: LvglEventCallback)

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.

actual open fun addEventCallback(filter: LvglEventType, callback: LvglEventCallback)
actual open fun addEventCallback(filter: UInt, callback: LvglEventCallback)
actual open fun addEventCallback(filter: LvglEventType, callback: LvglEventCallback)
actual open fun addEventCallback(filter: UInt, callback: LvglEventCallback)