1681-engine / mobile / DoubleBackOptions
Interface: DoubleBackOptions ​
Defined in: src/mobile/backButton.ts:38
Properties ​
exit ​
ts
exit: () => void;Defined in: src/mobile/backButton.ts:44
The second: leave (Capacitor's App.exitApp, or minimizeApp to keep the game alive in the background).
Returns ​
void
notify ​
ts
notify: () => void;Defined in: src/mobile/backButton.ts:42
The first press: tell the player ("press back again to quit").
Returns ​
void
now? ​
ts
optional now?: () => number;Defined in: src/mobile/backButton.ts:45
Returns ​
number
withinMs? ​
ts
optional withinMs?: number;Defined in: src/mobile/backButton.ts:40
A second press within this (ms) quits (default 2000).