capacitor-mobilecron 0.2.19 → 0.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/definitions.ts +4 -1
- package/src/web.ts +1 -1
package/package.json
CHANGED
package/src/definitions.ts
CHANGED
|
@@ -16,7 +16,10 @@ export interface MobileCronPlugin {
|
|
|
16
16
|
addListener(event: 'jobSkipped', handler: (data: JobSkippedEvent) => void): Promise<PluginListenerHandle>
|
|
17
17
|
addListener(event: 'overdueJobs', handler: (data: OverdueEvent) => void): Promise<PluginListenerHandle>
|
|
18
18
|
addListener(event: 'statusChanged', handler: (data: CronStatus) => void): Promise<PluginListenerHandle>
|
|
19
|
-
addListener(
|
|
19
|
+
addListener(
|
|
20
|
+
event: 'nativeWake',
|
|
21
|
+
handler: (data: { source: WakeSource; paused?: boolean }) => void,
|
|
22
|
+
): Promise<PluginListenerHandle>
|
|
20
23
|
|
|
21
24
|
// E2E test hooks (not for production use)
|
|
22
25
|
testNativeEvaluate(): Promise<{ firedCount: number }>
|
package/src/web.ts
CHANGED
|
@@ -78,7 +78,7 @@ export class MobileCronWeb extends WebPlugin implements MobileCronPlugin {
|
|
|
78
78
|
async addListener(event: 'statusChanged', handler: (data: CronStatus) => void): Promise<PluginListenerHandle>
|
|
79
79
|
async addListener(
|
|
80
80
|
event: 'nativeWake',
|
|
81
|
-
handler: (data: { source: WakeSource; paused?: boolean }) => void
|
|
81
|
+
handler: (data: { source: WakeSource; paused?: boolean }) => void,
|
|
82
82
|
): Promise<PluginListenerHandle>
|
|
83
83
|
async addListener(eventName: string, listenerFunc: (data: any) => void): Promise<PluginListenerHandle> {
|
|
84
84
|
return super.addListener(eventName, listenerFunc)
|