API Reference - HMI.homeBtnClick
HMI.homeBtnClick
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);
}