FrameListener

Type Alias FrameListener

FrameListener: (time: number, elapsed: number) => void

Callback function which can be registered via the FrameAPI.

Type declaration

    • (time: number, elapsed: number): void
    • Parameters

      • time: number

        Total time in milliseconds since the start of the internal update loop.

      • elapsed: number

        Elapsed time since the last run of the internal update loop.

      Returns void


Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: