Skip to main content

CanUpdate

Implemented by

Index

Methods

off

  • off(eventName: preupdate, handler?: (event: PreUpdateEvent<any>) => void): void
  • off(eventName: postupdate, handler?: (event: PostUpdateEvent<any>) => void): void
  • Parameters

    • eventName: preupdate
    • optionalhandler: (event: PreUpdateEvent<any>) => void

      Returns void

    on

    • on(eventName: preupdate, handler: (event: PreUpdateEvent<any>) => void): void
    • on(eventName: postupdate, handler: (event: PostUpdateEvent<any>) => void): void
    • Event signature


      Parameters

      Returns void

    onPostUpdate

    • onPostUpdate(engine: Engine<any>, elapsedMs: number): void
    • Overridable implementation


      Parameters

      • engine: Engine<any>
      • elapsedMs: number

      Returns void

    onPreUpdate

    • onPreUpdate(engine: Engine<any>, elapsedMs: number): void
    • Overridable implementation


      Parameters

      • engine: Engine<any>
      • elapsedMs: number

      Returns void

    once

    • once(eventName: preupdate, handler: (event: PreUpdateEvent<any>) => void): void
    • once(eventName: postupdate, handler: (event: PostUpdateEvent<any>) => void): void
    • Parameters

      Returns void

    Page Options