pjamm-plugin-background
v5.0.0
Published
Background Service Plugin
Downloads
22
Readme
pjamm-plugin-background
Background Service Plugin
Install
npm install pjamm-plugin-background
npx cap sync
API
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() => void
enableBackgroundFetch()
enableBackgroundFetch() => void
disableBackgroundFetch()
disableBackgroundFetch() => void
sendBackgroundExitData()
sendBackgroundExitData() => Promise<any>
Returns: Promise<any>
sendBatteryData()
sendBatteryData() => Promise<any>
Returns: Promise<any>
Interfaces
FinishOptions
| Prop | Type |
| ------------ | ------------------- |
| taskId
| string |