Skip to main content

 

 

 

 

Template:OutSystems/Documentation_KB/Breadcrumb_New_Layout

 

 

Template:OutSystems/OSLanguageSwitcher

 

Applies only to Mobile Apps and Reactive Web Apps

 

 

OutSystems

ApplicationLifecycle

Template:OutSystems/Documentation_KB/ContentCollaboration
  • Edit
    Collaborate with us
    Edit this page on GitHub
  • Provides information about the status of the application's lifecycle. Used to protect the app during upgrades, when local model access shouldn't be allowed, and to customize the application loading process.

    Example:

    // Check if the app is currently being upgraded
    var isUpgrading = $public.ApplicationLifecycle.isUpgradingVersion();
    
    var progressCallback = function(loaded, total) {
      // do something on upgrade progress
    };
    
    var loadCompleteCallback = function() {
      // do something on finish
    };
    
    $public.ApplicationLifecycle.listen({
      onUpgradeProgress: isUpgrading ? progressCallback : null,
      onLoadComplete: loadCompleteCallback
    });
    

    Summary

    Functions
    isUpgradingVersion Returns true if the application version is currently being upgraded. Used to determine the kind of feedback to provide when the application is initialized (e.g. splash screen).
    listen Registers listeners for application load events.

    Functions

    isUpgradingVersion

    isUpgradingVersion(): boolean

    Returns true if the application version is currently being upgraded. Used to determine the kind of feedback to provide when the application is initialized (e.g. splash screen).

    Returns: boolean

    listen

    listen(eventHandlers: ApplicationLoadEventHandlers): void

    Registers listeners for application load events.

    Parameters:

    Returns: void

    • Was this article helpful?