Documentation
    Preparing search index...

    Interface MockLocationState

    In-memory state of the location mock.

    interface MockLocationState {
        available: boolean;
        latestFix?: MockPosition;
        reason?: "unavailable" | "blocked";
        routeIndex: number;
        timer?: () => void;
        windows: Map<string, MockLocationWindow>;
    }
    Index

    Properties

    available: boolean

    Runtime can read position.

    latestFix?: MockPosition

    Last precise fix taken from the route.

    reason?: "unavailable" | "blocked"

    Unavailability reason.

    routeIndex: number

    Index of the current route point.

    timer?: () => void

    Cancel function of the autoplay loop.

    windows: Map<string, MockLocationWindow>

    Per-window state.