LocationError
Why a location call or watch failed, for telling the user or falling back.
Utilisation
Stop a previously registered background tracking task.
Ce type est utilisé par 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);Déclaration du type
export type LocationError = Failure;Membres 2
| Nom | Type | Requis | Description |
|---|---|---|---|
code | string | Oui | — |
message | string | Oui | — |
Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.