-
Notifications
You must be signed in to change notification settings - Fork 0
Applications management
The main
function has an array of all available applications - applications
.
The main
function creates
ApplicationManager(applications)
Tiler(applicationManager)
TouchscreenListener(tiler)
The main
function activates the first application from applications
.
The ApplicationManager
finds needed application
in the applications
.
The ApplicationManager
calls activate
function of the application
.
The ApplicationManager
sends the application
to the Tiler
.
The Tiler
asks the application
about the active tile
.
The Tiler
renders the current tile
.
The ApplicationManager
calls deactivate
function of application
.
The TouchscreenListener
detects an event
.
The TouchscreenListener
sends the event
to the Tiler
.
The Tiler
finds a component
inside the current tile
that can handle the event
.
The Tiler
calls an event handler of the component
.
The Tiler
renders the current tile
.
The TouchscreenListener
detects a vertical swipe
.
The TouchscreenListener
sends swipe
to the Tiler
.
The Tiler
asks the current tile
to handle the swipe
.
The tile
according to its own logic can initiate an application switch.
The Tiler
renders the current tile
.
The TouchscreenListener
detects a horizontal swipe
.
The TouchscreenListener
sends swipe
to the Tiler
.
The Tiler
asks the current tile
to handle the swipe
.
The tile
according to its own logic can initiate a tile switch.
The Tiler
renders the current tile
.