pui.onshutdown (Genie)



The pui.onshutdown event, if defined, fires when a Genie session is being ended.



Example:

pui.onshutdown = function(param) {   if (param.exception == "CPF87D7") // Cannot select device, do something. else if (param.exception == "PUI0034") // Macro processing error, do something else.   }