Skip to main content

LocationWatchHandlers

Callbacks for a continuous watch.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { LocationWatchHandlers } from "@mapcairn/core";

interface LocationWatchHandlers

Methods​

onError​

onError(error: Error): void;

Called when the watch fails.

  • error (Error)

onFix​

onFix(fix: LocationFix): void;

Called with each new fix.

  • fix (LocationFix)

See also​

Source: packages/core/src/ports/location.ts:24