Webportal v1

embedded apps

API Reference - System.OnShutDown

System.OnShutDown

Type Event
wave 2
wave 3
wave 4

Event triggered when the system is being shut down.

Note: This event is triggered 2 seconds before the system is completely shut down.

Example

1
2
3
4
5
6
7
8
9
try{
	
	// System
	if ((typeof System !== "undefined") && (typeof System.addEventListener !== "undefined")) {
		System.addEventListener("OnShutDown", SaveAllBeforeShutDown());
	}
} catch(e) {
	DealWithSystemError(e);
}

Appeared in Wave 4.1 - version 21.02.23.40