README
pjamm-plugin-background
Background Service Plugin
Install
npm install pjamm-plugin-background
npx cap sync
API
taskBeforeExit()
taskBeforeExit() => any
Returns: any
taskFinish(...)
taskFinish(options: FinishOptions) => void
Param | Type |
---|---|
options |
FinishOptions |
enableBackgroundFetch()
enableBackgroundFetch() => void
enableBackgroundFetch()
enableBackgroundFetch() => void
disableBackgroundFetch()
disableBackgroundFetch() => void
sendBackgroundExitData()
sendBackgroundExitData() => any
Returns: any
sendBatteryData()
sendBatteryData() => any
Returns: any
Interfaces
FinishOptions
Prop | Type |
---|---|
taskId |
string |