Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BrowserInteractionTime

Index

Constructors

constructor

  • new BrowserInteractionTime(__namedParameters: { absoluteTimeEllapsedCallbacks: AbsoluteTimeEllapsedCallbackData[]; activeCallbacks: ((timeInMs: number) => void)[]; browserTabActiveCallbacks: ((timeInMs: number) => void)[]; browserTabInactiveCallbacks: ((timeInMs: number) => void)[]; checkCallbacksIntervalMs: number; idleCallbacks: ((timeInMs: number) => void)[]; idleTimeoutMs: number; stopTimerOnTabchange: boolean; timeIntervalEllapsedCallbacks: TimeIntervalEllapsedCallbackData[] }): BrowserInteractionTime
  • Parameters

    • __namedParameters: { absoluteTimeEllapsedCallbacks: AbsoluteTimeEllapsedCallbackData[]; activeCallbacks: ((timeInMs: number) => void)[]; browserTabActiveCallbacks: ((timeInMs: number) => void)[]; browserTabInactiveCallbacks: ((timeInMs: number) => void)[]; checkCallbacksIntervalMs: number; idleCallbacks: ((timeInMs: number) => void)[]; idleTimeoutMs: number; stopTimerOnTabchange: boolean; timeIntervalEllapsedCallbacks: TimeIntervalEllapsedCallbackData[] }
      • absoluteTimeEllapsedCallbacks: AbsoluteTimeEllapsedCallbackData[]
      • activeCallbacks: ((timeInMs: number) => void)[]
      • browserTabActiveCallbacks: ((timeInMs: number) => void)[]
      • browserTabInactiveCallbacks: ((timeInMs: number) => void)[]
      • checkCallbacksIntervalMs: number
      • idleCallbacks: ((timeInMs: number) => void)[]
      • idleTimeoutMs: number
      • stopTimerOnTabchange: boolean
      • timeIntervalEllapsedCallbacks: TimeIntervalEllapsedCallbackData[]

    Returns BrowserInteractionTime

Properties

Private absoluteTimeEllapsedCallbacks

absoluteTimeEllapsedCallbacks: AbsoluteTimeEllapsedCallbackData[]

Private activeCallbacks

activeCallbacks: BasicCallback[]

Private browserTabActiveCallbacks

browserTabActiveCallbacks: BasicCallback[]

Private browserTabInactiveCallbacks

browserTabInactiveCallbacks: BasicCallback[]

Private Optional checkCallbackIntervalId

checkCallbackIntervalId: undefined | number

Private checkCallbacksIntervalMs

checkCallbacksIntervalMs: number

Private currentIdleTimeMs

currentIdleTimeMs: number

Private idle

idle: boolean

Private idleCallbacks

idleCallbacks: BasicCallback[]

Private idleTimeoutMs

idleTimeoutMs: number

Private marks

marks: Marks

Private measures

measures: Measures

Private running

running: boolean

Private stopTimerOnTabchange

stopTimerOnTabchange: boolean

Private timeIntervalEllapsedCallbacks

timeIntervalEllapsedCallbacks: TimeIntervalEllapsedCallbackData[]

Private times

times: Times[]

Methods

addAbsoluteTimeEllapsedCallback

addActiveCallback

addBrowserTabActiveCallback

  • addBrowserTabActiveCallback(browserTabActiveCallback: BasicCallback): void

addBrowserTabInactiveCallback

  • addBrowserTabInactiveCallback(browserTabInactiveCallback: BasicCallback): void

addIdleCallback

addTimeIntervalEllapsedCallback

Private checkCallbacksOnInterval

  • checkCallbacksOnInterval(): void

destroy

  • destroy(): void

getMarks

  • getMarks(name: string): undefined | Mark[]

getMeasures

  • getMeasures(name: string): undefined | Measure[]

getTimeInMilliseconds

  • getTimeInMilliseconds(): number

isIdle

  • isIdle(): boolean

isRunning

  • isRunning(): boolean

mark

  • mark(key: string): void

measure

  • measure(name: string, startMarkName: string, endMarkName: string): void

Private onBrowserTabActive

  • onBrowserTabActive(event: Event): void

Private onBrowserTabInactive

  • onBrowserTabInactive(event: Event): void

Private onTimePassed

  • onTimePassed(): void

Private registerEventListeners

  • registerEventListeners(): void

reset

  • reset(): void

Private resetIdleTime

  • resetIdleTime(): void

startTimer

  • startTimer(): void

stopTimer

  • stopTimer(): void

Private unregisterEventListeners

  • unregisterEventListeners(): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc