FrameListener#

Type alias FrameListener

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

Type declaration

    • (time, elapsed): void
    • Callback function which can be registered via the FrameAPI.

      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: