Verwendung

Persist each batch of positions delivered to a background location task.

Dieser Typ wird verwendet von location.defineUpdates

tsx
// Persist each batch of positions delivered to a background location task.
import { location, storage } from 'kuito';

location.defineUpdates('trip', async (run: location.LocationTaskRun) => {
  await storage.set('latest-trip-batch', JSON.stringify(run.locations));
});
// Register at module scope. Declare background location and obtain permission
// before calling location.startUpdates('trip').

Typdeklaration

ts
export type LocationTask = (run: LocationTaskRun) => Promise<void> | void;

Typ

ts
(run: LocationTaskRun) => Promise<void> | void
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.