0.0.18 • Published 10 months ago

aychihuahua-background-service v0.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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

10 months ago

0.0.17

11 months ago

0.0.16

11 months ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.3

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago