# APP
Registers a Mini-Program. Accepts an Object parameter that specifies the Mini-Program's lifecycle callbacks, etc.
| Property | Type | Default Value | Required | Description |
|---|---|---|---|---|
| onLaunch | function | No | Lifecycle callback — triggered when the Mini-Program initializes. | |
| onShow | function | No | Lifecycle callback — triggered when the Mini-Program starts or switches to the foreground. | |
| onHide | function | No | Lifecycle callback — triggered when the Mini-Program switches to the background. | |
| onError | function | No | Error listener function. | |
| onPageNotFound | function | No | Page not found listener function. | |
| onUnhandledRejection | function | No | Unhandled Promise rejection event listener function. | |
| onThemeChange | function | No | Listens for system theme changes. | |
| Others | any | No | Developers can add any functions or data variables to the Object parameter, accessible via this. |