Skip to content
Brian Spencer edited this page Jun 5, 2017 · 22 revisions

The app.livecodescript script-only stack file must be located directly alongside the app.yml file in your app folder. The stack must be named app in memory.

The app stack receives messages from LevureFramework during application startup and shutdown and has a handler for each message. You will edit the handlers in the app script to control when your application initialization and cleanup operations are called.

Handlers

PreloadApplication

The PreloadApplication handler is where you perform operations that need to happen before stacks, extensions, and externals in app.yml are loaded.

InitializeApplication

The InitializeApplication handler is called after script-only stacks, extensions, and externals in app.yml are loaded. This is where you perform initialization operations before your UI stack is opened.

OpenApplication

The OpenApplication handler is called after InitializeApplication. This is where you open your UI stack.

PreShutdownApplication

The PreShutdownApplication handler is called before the application shuts down. This is where you perform any cleanup operations before shutdown.

ProcessURL

The first parameter of the ProcessURL handler is a line delimited list of urls that your app has been requested to process. Requires the [[FRAMEWORK]]/helpers/files_and_urls helper.

ProcessFiles

The first parameter of the ProcessFiles handler is a line delimited list of files that your application supports and that you should process. Requires the [[FRAMEWORK]]/helpers/files_and_urls helper.

Clone this wiki locally