1681-engine / mobile / installBackButton
Function: installBackButton() ​
ts
function installBackButton(app, stack): Promise<() => void>;Defined in: src/mobile/capacitor.ts:27
Sends Android's back button to a BackStack. Capacitor's own default (the web view going back in its history, then closing the app) is replaced as soon as a listener is added, so the stack decides everything. Resolves to the uninstall.
Parameters ​
| Parameter | Type |
|---|---|
app | AppLike |
stack | BackStack |
Returns ​
Promise<() => void>