onShow
Description
Occurs when show is triggered. The event will be fired once the web-app is ready to be shown.
Syntax
virtualUI.onShow = function() {
// Your code here
};
Parameters
| Parameter | Type | Description |
|---|---|---|
handler |
Function | Callback function that executes when the event fires |
Return Value
None.
Remarks
This event fires after onLoading and indicates that the application’s user interface is fully ready to be displayed to the user. Use this event to perform final UI adjustments or to show welcome messages.
Example
var virtualUI = new Thinfinity.VirtualUI();
virtualUI.onShow = function() {
console.log('Application is ready');
// Show welcome message
// Start animations
// Enable user interactions
};