Skip to content

1681-engine / mobile / doubleBackToExit

Function: doubleBackToExit() ​

ts
function doubleBackToExit(options): () => void;

Defined in: src/mobile/backButton.ts:49

An onRoot that quits on a second back press soon after the first, and tells the player after the first.

Parameters ​

ParameterType
optionsDoubleBackOptions

Returns ​

() => void

Released under the MIT License.