class NativeLifecycle implements Lifecycle
import { NativeLifecycle } from '@driftengine/package';
Constructor
constructor(bridge: DriftHostBridge)
Accessors
| Name | Type | Description |
canQuitget | boolean | What the shell says, rather than what a desktop assumes: an iOS host answers false. |
Methods
onFocusChange(handler: (focused: boolean) => void): () => void
| Parameter | Type | Description |
handler | (focused: boolean) => void | |
onQuitRequest(handler: () => void): () => void
| Parameter | Type | Description |
handler | () => void | |