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, whereparamis passed by theparamparameter inhmApp.startApp
- Page onInit
- Initialize page
- Function signature
(param: string) => void, whereparamis passed by theparamparameter inhmApp.gotoPageorhmApp.reloadPage
- Page build
- Draws the UI
- Function signature
() => void
- Page onDestroy
- Destroy page
- Function signature
() => void
- App onDestroy
- Destroy the app
- Function signature
() => void