location.LocationError
Why a location call or watch failed, for telling the user or falling back.
Usage
Stop a previously registered background tracking task.
This type is used by location.error
// Stop a previously registered background tracking task.
import { location } from 'kuito';
if (await location.updating('trip-tracking')) {
await location.stopUpdates('trip-tracking');
}
console.log(location.error.value);Type declaration
export type LocationError = Failure;Members 2
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.