Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RefreshService<M>

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

analyzeTimer

analyzeTimer: number

Readonly flags

flags: number

Readonly modelContext

modelContext: ModelContext

Optional Readonly observerType

Readonly observers

observers: readonly RefreshServiceObserver<M, RefreshService<M>>[]

refreshTimer

refreshTimer: number

Readonly roots

roots: readonly M[]

updateDelay

updateDelay: number

Static MaxAnalyzeInterval

MaxAnalyzeInterval: number

Static MaxRefreshInterval

MaxRefreshInterval: number

Static MaxUpdateDelay

MaxUpdateDelay: number

Static MinAnalyzeInterval

MinAnalyzeInterval: number

Static MinRefreshInterval

MinRefreshInterval: number

Static MinUpdateDelay

MinUpdateDelay: number

Accessors

attached

  • get attached(): boolean
  • Returns boolean

powerFlags

  • get powerFlags(): number
  • Returns number

Methods

Protected attachEvents

  • attachEvents(): void
  • Returns void

attachRoot

  • attachRoot(root: M): void
  • Parameters

    • root: M

    Returns void

Protected cancelAnalyzePass

  • cancelAnalyzePass(): void
  • Returns void

Protected cancelRefreshPass

  • cancelRefreshPass(): void
  • Returns void

Protected cancelUpdate

  • cancelUpdate(): void
  • Returns void

Protected detachEvents

  • detachEvents(): void
  • Returns void

detachRoot

  • detachRoot(root: M): void
  • Parameters

    • root: M

    Returns void

Protected didAttach

  • didAttach(): void
  • Returns void

Protected didAttachRoot

  • didAttachRoot(root: M): void
  • Parameters

    • root: M

    Returns void

Protected didDetach

  • didDetach(): void
  • Returns void

Protected didDetachRoot

  • didDetachRoot(root: M): void
  • Parameters

    • root: M

    Returns void

Protected didObserve

Protected didUnobserve

Protected forEachObserver

Protected needsUpdate

  • needsUpdate(updateFlags: number, immediate: boolean): number
  • Parameters

    • updateFlags: number
    • immediate: boolean

    Returns number

observe

Protected onAttach

  • onAttach(): void
  • Returns void

Protected onAttachRoot

  • onAttachRoot(root: M): void
  • Parameters

    • root: M

    Returns void

Protected onDetach

  • onDetach(): void
  • Returns void

Protected onDetachRoot

  • onDetachRoot(root: M): void
  • Parameters

    • root: M

    Returns void

Protected onObserve

Protected onUnobserve

Protected onVisibilityChange

  • onVisibilityChange(): void
  • Returns void

power

  • power(): void
  • Returns void

requestUpdate

  • requestUpdate(target: Model, updateFlags: number, immediate: boolean): void
  • Parameters

    • target: Model
    • updateFlags: number
    • immediate: boolean

    Returns void

Protected runAnalyzePass

  • runAnalyzePass(immediate?: boolean): void
  • Parameters

    • Optional immediate: boolean

    Returns void

Protected runImmediatePass

  • runImmediatePass(): void
  • Returns void

Protected runRefreshPass

  • runRefreshPass(immediate?: boolean): void
  • Parameters

    • Optional immediate: boolean

    Returns void

Protected scheduleAnalyzePass

  • scheduleAnalyzePass(updateDelay: number): void
  • Parameters

    • updateDelay: number

    Returns void

Protected scheduleRefreshPass

  • scheduleRefreshPass(updateDelay: number): void
  • Parameters

    • updateDelay: number

    Returns void

Protected scheduleUpdate

  • scheduleUpdate(): void
  • Returns void

setFlags

  • setFlags(flags: number): void
  • Parameters

    • flags: number

    Returns void

unobserve

unpower

  • unpower(): void
  • Returns void

updatedModelContext

  • Returns ModelContext

Protected willAttach

  • willAttach(): void
  • Returns void

Protected willAttachRoot

  • willAttachRoot(root: M): void
  • Parameters

    • root: M

    Returns void

Protected willDetach

  • willDetach(): void
  • Returns void

Protected willDetachRoot

  • willDetachRoot(root: M): void
  • Parameters

    • root: M

    Returns void

Protected willObserve

Protected willUnobserve

Static global

  • Type parameters

    Returns RefreshService<M>

Generated using TypeDoc