Component

async load(): Promise<void>

The load method is executed, when the component is instantiated and loaded for first time. The load method will be called before the data binding phase and is the best place to implement any data loading logic. Avoid direct manipulation of UI elements via Dom selectors in this method as they may be be overruled after the data binding phase complete. The load method is called only once during the Tasks life cycle - e.g. if the user navigates back to the same view, the load method will not be called again.

▶️ async resume(): Promise<void>

The resume method is executed, every time the component is about to be displayed on the screen, just after the component method has been executed. Note that unlike the load method, the resume method is called every time, when the component is about to be displayed.

▶️ async show(): Promise<void>

The show method is executed, every time the component is about to be displayed on the screen, after the data bind phase finishes. This method allows the developer to implement logic executed after the complete UI of the component has been rendered.

▶️ async validate(): Promise<boolean>

The validate method is intended for execution, every time the system is about to leave the view. This happens when a navigation to another view is about to happen because of call to UserInterfaceService.navigate or UserInterfaceService.launchTask is made. NOTE: the validate method of the component is not called automatically. The developer must call the method in the containing view's validate method and evaluate the result

▶️async commit(): Promise<boolean>

The commit method is intended for execution after successful execution of the validate method, every time the system is about to leave the view. This happens when a navigation to another view is about to happen because of call to UserInterfaceService.navigate or UserInterfaceService.launchTask is made.

NOTE: the commit method of the component is not called automatically. The developer must call the method in the containing view's commit method and evaluate the result

Last updated

Dynamics Mobile provided by Mobile Affairs Ltd. | 1712 Sofia, Bulgaria, Alexander Malinov 51 | sales@dynamicsmobile.com