Skip to content

Event handling

Igor Usenko edited this page Jun 13, 2022 · 12 revisions

There are two kinds of events:

  1. Touch events
  2. Component events

Touch events

There are four types of touch events - touch, move, release, gesture and button.
When the user touches the screen - the system tries to find a component that holds a touchpoint.
If such a component is found - it becomes the focused component. It means that all the events, until the touch screen release, will go to this component.

Component events

Each component can declare a handler function that can handle events from another component.
Handle means - modification of the state of the component.

Clone this wiki locally