pjamm-plugin-background
v5.0.0
Published
Background Service Plugin
Downloads
35
Readme
pjamm-plugin-background
Background Service Plugin
Install
npm install pjamm-plugin-background
npx cap syncAPI
taskBeforeExit()taskFinish(...)enableBackgroundFetch()enableBackgroundFetch()disableBackgroundFetch()sendBackgroundExitData()sendBatteryData()- Interfaces
taskBeforeExit()
taskBeforeExit() => Promise<any>Returns: Promise<any>
taskFinish(...)
taskFinish(options: FinishOptions) => void| Param | Type |
| ------------- | ------------------------------------------------------- |
| options | FinishOptions |
enableBackgroundFetch()
enableBackgroundFetch() => voidenableBackgroundFetch()
enableBackgroundFetch() => voiddisableBackgroundFetch()
disableBackgroundFetch() => voidsendBackgroundExitData()
sendBackgroundExitData() => Promise<any>Returns: Promise<any>
sendBatteryData()
sendBatteryData() => Promise<any>Returns: Promise<any>
Interfaces
FinishOptions
| Prop | Type |
| ------------ | ------------------- |
| taskId | string |
