HardwareBackButton Usage

Hello @brandyshea,

Currently clicking on the hardware back button put the application on background, my client want me to show a toast with the message click again “Press back button again to exit”, So i have gone through the url below and found this can be done by these two function with the description “Methods meant to be overridden by the engine”, there is no example of using these function.


  1. onHardwareBackButton() {}
  2. registerBackButtonAction() {}

have you tried to see what the file in raw format?


These aren’t implemented yet, they’re empty functions: