location.error
The error that ended a watch, such as access revoked in Settings; null while none has.
Verwendung
Stop a previously registered background tracking task.
// 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);Eigenschaften und Methoden 1
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
valueschreibgeschützt | LocationError | Ja | — |
value — verschachtelte Felder
value Felder
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
code | string | Ja | — |
message | string | Ja | — |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.