fieldnotesai
    Preparing search index...

    Type Alias UseLocationResult

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

    type UseLocationResult = {
        coords: LocationCoords;
        permissionDenied: boolean;
        requestWithUI: () => Promise<LocationCoords>;
        settled: boolean;
    }
    Index

    Properties

    Captured coordinates, or null if unavailable / denied.

    permissionDenied: boolean

    True when the user explicitly denied location permission.

    requestWithUI: () => Promise<LocationCoords>

    Request location with the full Alert-driven UI flow. Call this when the user starts a session; await the resolved coords. Always resolves - never throws. Returns null when location is unavailable.

    settled: boolean

    True once the permission + GPS flow has finished (success, denial, or error).