Webportal v1

embedded apps

API Reference - HMI.homeBtnClick

HMI.homeBtnClick

Type Event
wave 2
wave 3
wave 4

Event triggered whenever the Home button is pressed.

Example

1
2
3
4
5
6
7
8
9
10
try {
	// HMI
	if ((typeof HMI !== "undefined") && (typeof HMI.addEventListener !== "undefined")) {
		HMI.addEventListener("homeBtnClick", function(){
			alert("Application is being hidden to back to Home");
		});
	}
} catch(e) {
	DealWithHMIError(e);
}