ApplicationContext
Collaborate with us
Edit this page on GitHub
Provides contextual information based on the screen that is being presented. Used to identify the screen, module and application that is currently running.
Hierarchy
ApplicationContext
Summary
Methods | |
---|---|
getCurrentContext | Gets the current context based on the screen being presented. |
Methods
<Static> getCurrentContext
getCurrentContext(): object
Gets the current context based on the screen being presented.
Example:
var context = $public.ApplicationContext.getCurrentContext(); // Example of the returned object: // { // "applicationKey": "7926523f-0206-4f9e-8203-c8f009c12f2a", // "applicationName": "EmployeeApp", // "moduleKey": "7f38d717-c625-4d00-9e04-5e5e3eca65e5", // "moduleName": "EmployeeMainModule", // "screenKey": "9584046a-827a-4035-aedc-23dfe4bf10b5", // "screenName": "MainFlow.HomeScreen" // }
Returns: object
Returns an object with the following attributes: applicationKey
, applicationName
, moduleKey
, moduleName
, screenKey
, screenName
.