location.LocationError
Why a location call or watch failed, for telling the user or falling back.
Utilização
Stop a previously registered background tracking task.
Este tipo é usado por 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);Declaração do tipo
export type LocationError = Failure;Membros 2
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
code | string | Sim | — |
message | string | Sim | — |
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.