TomTom Maps for JavaScript
    Preparing search index...

    Interface StateSlice

    Common interface for state slices. Implement reset() to participate in cleanup: destroy() on the agent calls it, and so does the resetState tool when the user asks to start over.

    All built-in state classes implement this. Custom slices can optionally implement it to get automatic cleanup.

    interface StateSlice {
        reset(): void;
    }
    Index
    • Returns void