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 e7c29416197503f1f51758e1c9c680202e9a84ae..40092b1c602207096c6677d1e8a75e402d654f2f 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 @@ -20,7 +20,7 @@ import backgroundTaskManager from '@ohos.resourceschedule.backgroundTaskManager'; ``` -## backgroundTaskManager.requestSuspendDelay9 +## backgroundTaskManager.requestSuspendDelay requestSuspendDelay(reason: string, callback: Callback<void>): DelaySuspendInfo @@ -76,7 +76,7 @@ requestSuspendDelay(reason: string, callback: Callback<void>): DelaySuspen ``` -## backgroundTaskManager.getRemainingDelayTime:callback9 +## backgroundTaskManager.getRemainingDelayTime:callback getRemainingDelayTime(requestId: number, callback: AsyncCallback<number>): void @@ -125,7 +125,7 @@ getRemainingDelayTime(requestId: number, callback: AsyncCallback<number>): ``` -## backgroundTaskManager.getRemainingDelayTime:promise9 +## backgroundTaskManager.getRemainingDelayTime:promise getRemainingDelayTime(requestId: number): Promise<number> @@ -178,7 +178,7 @@ getRemainingDelayTime(requestId: number): Promise<number> ``` -## backgroundTaskManager.cancelSuspendDelay9 +## backgroundTaskManager.cancelSuspendDelay cancelSuspendDelay(requestId: number): void @@ -219,7 +219,7 @@ cancelSuspendDelay(requestId: number): void ``` -## backgroundTaskManager.startBackgroundRunning:callback9 +## backgroundTaskManager.startBackgroundRunning:callback startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback<void>): void @@ -290,7 +290,7 @@ wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { ``` -## backgroundTaskManager.startBackgroundRunning:promise9 +## backgroundTaskManager.startBackgroundRunning:promise startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): Promise<void> @@ -362,7 +362,7 @@ wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { ``` -## backgroundTaskManager.stopBackgroundRunning:callback9 +## backgroundTaskManager.stopBackgroundRunning:callback stopBackgroundRunning(context: Context, callback: AsyncCallback<void>): void @@ -413,7 +413,7 @@ try { ``` -## backgroundTaskManager.stopBackgroundRunning:promise9 +## backgroundTaskManager.stopBackgroundRunning:promise stopBackgroundRunning(context: Context): Promise<void> @@ -467,7 +467,7 @@ try { ``` -## backgroundTaskManager.applyEfficiencyResources9 +## backgroundTaskManager.applyEfficiencyResources applyEfficiencyResources(request: [EfficiencyResourcesRequest](#efficiencyresourcesrequest9)): void @@ -518,7 +518,7 @@ try { } ``` -## backgroundTaskManager.resetAllEfficiencyResources9 +## backgroundTaskManager.resetAllEfficiencyResources resetAllEfficiencyResources(): void @@ -552,7 +552,7 @@ try { } ``` -## DelaySuspendInfo9 +## DelaySuspendInfo 延迟挂起信息。 @@ -564,7 +564,7 @@ try { | actualDelayTime | number | 是 | 应用的实际挂起延迟时间,以毫秒为单位。
一般情况下默认值为180000,低电量(依据系统低电量广播)时默认值为60000。 | -## BackgroundMode9 +## BackgroundMode **系统能力:** SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask @@ -580,7 +580,7 @@ try { | VOIP | 8 | 音视频通话
此接口为系统接口。 | | TASK_KEEPING | 9 | 计算任务(仅在特定设备生效)。 | -## EfficiencyResourcesRequest9 +## EfficiencyResourcesRequest 能效资源申请参数。 @@ -597,7 +597,7 @@ try { | isProcess | boolean | 否 | 应用申请或者是进程申请。 | | reason | string | 是 | 申请资源的原因。 | -## ResourceType9 +## ResourceType 能效资源类型。