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 »
この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています