fieldnotesai
    Preparing search index...

    Type Alias UseLocationMonitorResult

    Custom React Hook for managing the location monitor result state and logic.

    type UseLocationMonitorResult = {
        monitorState: LocationMonitorState;
        startMonitor: (
            originCoords: { latitude: number; longitude: number },
            sessionKey: string,
        ) => void;
        stopMonitor: (recordingId?: string) => Promise<void>;
    }
    Index

    Properties

    monitorState: LocationMonitorState
    startMonitor: (
        originCoords: { latitude: number; longitude: number },
        sessionKey: string,
    ) => void

    Start monitoring. Call after session recording begins with the initial GPS fix.

    stopMonitor: (recordingId?: string) => Promise<void>

    Stop monitoring and link all session events to the recording row. Pass the recordingId (created at stop time) so events can be linked.