diff --git a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md index 4afbde5bb95dc7df32b41f8d62c9cb42b800e960..dc625eb53063646d4699d6d63b1561dae94f28fa 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md @@ -76,7 +76,7 @@ requestSuspendDelay(reason: string, callback: Callback<void>): DelaySuspen ``` -## backgroundTaskManager.getRemainingDelayTime:callback +## backgroundTaskManager.getRemainingDelayTime getRemainingDelayTime(requestId: number, callback: AsyncCallback<number>): void @@ -125,7 +125,7 @@ getRemainingDelayTime(requestId: number, callback: AsyncCallback<number>): ``` -## backgroundTaskManager.getRemainingDelayTime:promise +## backgroundTaskManager.getRemainingDelayTime getRemainingDelayTime(requestId: number): Promise<number> @@ -219,7 +219,7 @@ cancelSuspendDelay(requestId: number): void ``` -## backgroundTaskManager.startBackgroundRunning:callback +## backgroundTaskManager.startBackgroundRunning startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback<void>): void @@ -297,7 +297,7 @@ export default class EntryAbility extends UIAbility { }; ``` -## backgroundTaskManager.startBackgroundRunning:promise +## backgroundTaskManager.startBackgroundRunning startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): Promise<void> @@ -376,7 +376,7 @@ export default class EntryAbility extends UIAbility { }; ``` -## backgroundTaskManager.stopBackgroundRunning:callback +## backgroundTaskManager.stopBackgroundRunning stopBackgroundRunning(context: Context, callback: AsyncCallback<void>): void @@ -430,7 +430,7 @@ export default class EntryAbility extends UIAbility { }; ``` -## backgroundTaskManager.stopBackgroundRunning:promise +## backgroundTaskManager.stopBackgroundRunning stopBackgroundRunning(context: Context): Promise<void>