![]() ![]() Each handler callback passes in a function as a parameter that can be used to tell the framework to call the next handler. There are situations where you might want to have multiple handlers fired. Only running one handler at a time allows the modal to close but still requires another press of the hardware back button to navigate backwards. This is useful because if you have a modal open, you likely would not want the modal to close and the app to navigate backwards when pressing the hardware back button. The priority value is used to determine which callback should be called. By default, only one handler is fired per hardware back button press. Each handler must be assigned a priority. This handler can perform actions such as quitting the app or opening a confirmation dialog. When listening for the ionBackButton event, you can register a handler to be fired. When running in a Capacitor or Cordova application, Ionic Framework will emit an ionBackButton event when a user presses the hardware back button. The package must be installed in Capacitor apps to use the hardware back button. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |