Skip to main content

Module events

Module events 

Source
Expand description

§Events

Bubba’s event system. Every interactive element supports a small set of declarative events that map directly to native Android touch/input callbacks.

§Supported Events

AttributeFires when …
onclickElement is tapped / clicked
oninputText input changes (per character)
onkeypressA key is pressed in a focused input
onfocusElement receives focus
onblurElement loses focus
onchangeSelect / checkbox value changes

Structs§

BubbaEvent
The raw event payload passed to every handler.
EventDispatcher
Global event dispatcher — the runtime calls this when Android fires an event.
EventHandler
An event handler attached to a UI element.

Type Aliases§

Callback
A boxed, type-erased event callback.