Skip to main content
Version: 2.x.x

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

NameDetails

options

Optional

AppManagerOptionsType

Properties

emitter

Description

Defined in managers/app/app.manager.ts:15

Type

EventEmitter

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 }

isFocused

Description

Defined in managers/app/app.manager.ts:20

Type

boolean

isNodeJs

Description

Defined in managers/app/app.manager.ts:18

Type

boolean

isOnline

Description

Defined in managers/app/app.manager.ts:19

Type

boolean

options

Description

Defined in managers/app/app.manager.ts:22

Type

AppManagerOptionsType

Methods

setFocused()

Preview

setFocused(isFocused)

Description

Defined in managers/app/app.manager.ts:57

Parameters

NameDetails

isFocused

Required

boolean

Return

void

setOnline()

Preview

setOnline(isOnline)

Description

Defined in managers/app/app.manager.ts:67

Parameters

NameDetails

isOnline

Required

boolean

Return

void