AppManager
import { AppManager } from "@hyper-fetch/core"
Description
App manager handles main application states - focus and online. Those two values can answer questions:
- Is the tab or current view instance focused and visible for user?
- Is our application online or offline? With the app manager it is not a problem to get the valid answer for this question.
Defined in managers/app/app.manager.ts:14
Parameters
Name | Details |
---|---|
options
|
|
Properties
events
events
Description
Defined in managers/app/app.manager.ts:16
Type
{ emitBlur: () => void; emitFocus: () => void; emitOffline: () => void; emitOnline: () => void; onBlur: (callback: () => void) => VoidFunction; onFocus: (callback: () => void) => VoidFunction; onOffline: (callback: () => void) => VoidFunction; onOnline: (callback: () => void) => VoidFunction }