Skip to content

Commit

Permalink
docs(android/types): Add note about backbutton listener behaviour (#2026
Browse files Browse the repository at this point in the history
)
  • Loading branch information
nip3o authored and jcesarmobile committed Oct 15, 2019
1 parent aa5ecbb commit 14cc338
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/core-plugin-definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ export interface AppPlugin extends Plugin {
addListener(eventName: 'appRestoredResult', listenerFunc: (data: AppRestoredResult) => void): PluginListenerHandle;

/**
* Listen for the hardware back button event (Android only). If you want to close the app, call `App.exitApp()`
* Listen for the hardware back button event (Android only). Listening for this event will disable the
* default back button behaviour, so you might want to call `window.history.back()` manually.
* If you want to close the app, call `App.exitApp()`.
*/
addListener(eventName: 'backButton', listenerFunc: (data: AppUrlOpen) => void): PluginListenerHandle;
}
Expand Down

0 comments on commit 14cc338

Please sign in to comment.