Life Cycle
As shown in the figure:
Description
- App onCreate
- Initialize the app global data for use by all pages. (Note: UI cannot be drawn here, no page is loaded yet)
- Function signature
(param: string) => void
, whereparam
is passed by theparam
parameter inhmApp.startApp
- Page onInit
- Initialize page
- Function signature
(param: string) => void
, whereparam
is passed by theparam
parameter inhmApp.gotoPage
orhmApp.reloadPage
- Page build
- Draws the UI
- Function signature
() => void
- Page onDestroy
- Destroy page
- Function signature
() => void
- App onDestroy
- Destroy the app
- Function signature
() => void