1681-engine / index / ResumeEnv
Interface: ResumeEnv ​
Defined in: src/platform/appResume.ts:2
What onAppResume listens on: document and window in a browser; a test passes its own.
Properties ​
document? ​
ts
optional document?: object;Defined in: src/platform/appResume.ts:3
visibilityState? ​
ts
readonly optional visibilityState?: string;addEventListener() ​
ts
addEventListener(type, cb): void;Parameters ​
| Parameter | Type |
|---|---|
type | string |
cb | () => void |
Returns ​
void
removeEventListener() ​
ts
removeEventListener(type, cb): void;Parameters ​
| Parameter | Type |
|---|---|
type | string |
cb | () => void |
Returns ​
void
now? ​
ts
optional now?: () => number;Defined in: src/platform/appResume.ts:5
Returns ​
number
window? ​
ts
optional window?: object;Defined in: src/platform/appResume.ts:4
addEventListener() ​
ts
addEventListener(type, cb): void;Parameters ​
| Parameter | Type |
|---|---|
type | string |
cb | (e) => void |
Returns ​
void
removeEventListener() ​
ts
removeEventListener(type, cb): void;Parameters ​
| Parameter | Type |
|---|---|
type | string |
cb | (e) => void |
Returns ​
void