Skip to main content

Reference

 

Applies only to Mobile Apps
OutSystems

ApplicationContext

Provides contextual information based on the screen that is being presented. Used to identify the screen, module and application that is currently running.

Summary

Methods
getCurrentContext Gets the current context based on the screen being presented.

Methods

getCurrentContext

getCurrentContext(): type

Gets the current context based on the screen being presented.

Returns

  • type

Returns an object with the following attributes: applicationKey, applicationName, moduleKey, moduleName, screenKey, screenName.

  • applicationKeystring

    The key of the application.

  • applicationNamestring

    The name of the application.

  • moduleKeystring

    The key of the module of the current screen, or the key of the entry module if no screen is being presented.

  • moduleNamestring

    The name of the module of the current screen, or the name of the entry module if no screen is being presented.

  • screenKeystring

    The key of the current screen, or an empty string if no screen is being presented.

  • screenNamestring

    The name of the current screen, or an empty string if no screen is being presented.

  • Was this article helpful?