0.0.18 • Published 2 years ago

aychihuahua-background-service v0.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

aychihuahua-background-service

Move App to forground and background

Install

npm install aychihuahua-background-service
npx cap sync

API

moveToForeground()

moveToForeground() => Promise<void>

startWatchService(...)

startWatchService(options: { token: string; id: number; requestId?: number; clientId?: number[]; expectedArrivalTime?: string; }, locationCallback: LocationCallback) => Promise<LocationUpdate>
ParamType
options{ token: string; id: number; requestId?: number; clientId?: number[]; expectedArrivalTime?: string; }
locationCallbackLocationCallback

Returns: Promise<LocationUpdate>


requestAllTimePermissions()

requestAllTimePermissions() => Promise<{ value: string; }>

Returns: Promise<{ value: string; }>


checkAllTheTimeLocationPermission()

checkAllTheTimeLocationPermission() => Promise<{ value: boolean; }>

Returns: Promise<{ value: boolean; }>


stopWatchService()

stopWatchService() => Promise<void>

getLastLocation()

getLastLocation() => Promise<{ lat: number; lng: number; }>

Returns: Promise<{ lat: number; lng: number; }>


getlocation()

getlocation() => Promise<{ lat: number; lng: number; }>

Returns: Promise<{ lat: number; lng: number; }>


Interfaces

LocationUpdate

PropType
coordany
speednumber

Type Aliases

LocationCallback

(message: LocationUpdate | null, err?: any): void

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago