Screenlet Lifecycle

Liferay Screens automatically saves and restores Screenlets’ states using the Android SDK methods onSaveInstanceState and onRestoreInstanceState. Each Screenlet uses a uniquely generated identifier (screenletId) to assign action results to action sources.

The Screenlets’ states are restored after the onCreate and onStart methods, as specified by the standard Android lifecycle. It’s a best practice to execute Screenlet methods inside the activity’s onResume method; this helps assure that actions and tasks find their destinations.

High-Level Architecture

Core Layer

Screenlet Layer

View Layer

« View LayerArchitecture of Offline Mode in Liferay Screens »
Was this article helpful?
0 out of 0 found this helpful