Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • InactivityCountdownTimer

Index

Constructors

constructor

Properties

Private countDownCallback

countDownCallback: function

Type declaration

    • (secondsLeft: number): void
    • Parameters

      • secondsLeft: number

      Returns void

Private countDownCancelledCallback

countDownCancelledCallback: function

Type declaration

    • (): void
    • Returns void

Private countingDown

countingDown: boolean = false

Private currentTimerPrecision

currentTimerPrecision: number

Private idleTimeoutID

idleTimeoutID: number

Private idleTimeoutTime

idleTimeoutTime: number

Private lastResetTimeStamp

lastResetTimeStamp: number

Private localStorage

localStorage: Storage

Private localStorageKey

localStorageKey: string

Private params

  • idleTimeoutTime: 10000 - ms / 10 seconds
  • localStorageKey: 'inactivity_logout_local_storage'

Private redirectHREF

redirectHREF: string

Private resetEvents

resetEvents: string[]

Private startCountDownTimerAt

startCountDownTimerAt: number

Private timeoutCallback

timeoutCallback: function

Type declaration

    • (): void
    • Returns void

Private timeoutTime

timeoutTime: number

Methods

Private checkIdleTime

  • checkIdleTime(): void

Private checkTimerPrecision

  • checkTimerPrecision(timeRemaining: number): void

cleanup

  • cleanup(): void
  • You must call cleanup before you delete the object. As the timer in the class is calling a method on itself it will not be garbage collected if you just delete it.

    Returns void

Private detectAndAssignLocalStorage

  • detectAndAssignLocalStorage(): Storage

Private getLastResetTimeStamp

  • getLastResetTimeStamp(): number

Private handleCountDown

  • handleCountDown(timeRemaining: number): void

Private handleEvent

  • handleEvent(eventName: string): void

Private redirect

  • redirect(url: string): void

Private resetTimer

  • resetTimer(precision: number): void

Private setLastResetTimeStamp

  • setLastResetTimeStamp(timestamp: number): void

start

  • start(): void

Private startPrivate

  • startPrivate(precision: number): void

stop

  • stop(): void

Private timeout

  • timeout(): 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