Lines Matching refs:backgroundTaskManager
3 ## cl.resourceschedule.backgroundTaskManager
4 对资源调度子系统backgroundTaskManager仓原有接口进行整改,原有API8及之前的接口全部废弃,原有API9接口删除,需要使用新的API9接口。新的API9接口符合错误码规范。
12 以下方法、属性、枚举和常量均从API9变更。废弃@ohos.backgroundTaskManager.d.ts文件,新增@ohos.resourceschedule.backgroundTaskM…
16 | backgroundTaskManager | namespace | declare namespace backgroundTaskManager | 接口从API9开始废弃,移植到ohos…
17 | backgroundTaskManager | method | function resetAllEfficiencyResources(): void; | 接口API9变更,移植到ohos…
18 …backgroundTaskManager | method | function applyEfficiencyResources(request: EfficiencyResourcesReq…
19 …backgroundTaskManager | method | function stopBackgroundRunning(context: Context): Promise<void>; …
20 …backgroundTaskManager | method | function stopBackgroundRunning(context: Context, callback: AsyncC…
21 …backgroundTaskManager | method | function startBackgroundRunning(context: Context, bgMode: Backgro…
22 …backgroundTaskManager | method | function startBackgroundRunning(context: Context, bgMode: Backgro…
23 …backgroundTaskManager | method | function requestSuspendDelay(reason: string, callback: Callback<v…
24 …backgroundTaskManager | method | function getRemainingDelayTime(requestId: number): Promise<number…
25 …backgroundTaskManager | method | function getRemainingDelayTime(requestId: number, callback: Async…
26 | backgroundTaskManager | method | function cancelSuspendDelay(requestId: number): void; | 接口从API9开…
27 | backgroundTaskManager.BackgroundMode | enum | export enum BackgroundMode | 接口从API9开始废弃,移植到ohos.re…
28 | backgroundTaskManager.BackgroundMode | enum | DATA_TRANSFER = 1 | 接口从API9开始废弃,移植到ohos.resourcesch…
29 | backgroundTaskManager.BackgroundMode | enum | AUDIO_PLAYBACK = 2 | 接口从API9开始废弃,移植到ohos.resourcesc…
30 | backgroundTaskManager.BackgroundMode | enum | AUDIO_RECORDING = 3 | 接口从API9开始废弃,移植到ohos.resources…
31 | backgroundTaskManager.BackgroundMode | enum | LOCATION = 4 | 接口从API9开始废弃,移植到ohos.resourceschedule…
32 | backgroundTaskManager.BackgroundMode | enum | BLUETOOTH_INTERACTION = 5 | 接口从API9开始废弃,移植到ohos.res…
33 | backgroundTaskManager.BackgroundMode | enum | MULTI_DEVICE_CONNECTION = 6 | 接口从API9开始废弃,移植到ohos.r…
34 | backgroundTaskManager.BackgroundMode | enum | WIFI_INTERACTION = 7 | 接口从API9开始废弃,移植到ohos.resource…
35 | backgroundTaskManager.BackgroundMode | enum | VOIP = 8 | 接口从API9开始废弃,移植到ohos.resourceschedule.bac…
36 | backgroundTaskManager.BackgroundMode | enum | TASK_KEEPING = 9 | 接口从API9开始废弃,移植到ohos.resourcesche…
37 | backgroundTaskManager.DelaySuspendInfo | interface | interface DelaySuspendInfo | 接口从API9开始废弃,移植到…
38 | backgroundTaskManager.DelaySuspendInfo | field | requestId: number | 接口从API9开始废弃,移植到ohos.resource…
39 | backgroundTaskManager.DelaySuspendInfo | field | actualDelayTime: number | 接口从API9开始废弃,移植到ohos.re…
40 | backgroundTaskManager.ResourceType | enum | export enum ResourceType | 接口API9变更,移植到ohos.resources…
41 | backgroundTaskManager.ResourceType | enum | CPU = 1 | 接口API9变更,移植到ohos.resourceschedule.backgroun…
42 | backgroundTaskManager.ResourceType | enum | COMMON_EVENT = 1 << 1 | 接口API9变更,移植到ohos.resourcesche…
43 | backgroundTaskManager.ResourceType | enum | TIMER = 1 << 2 | 接口API9变更,移植到ohos.resourceschedule.ba…
44 | backgroundTaskManager.ResourceType | enum | WORK_SCHEDULER = 1 << 3 | 接口API9变更,移植到ohos.resourcesc…
45 | backgroundTaskManager.ResourceType | enum | BLUETOOTH = 1 << 4 | 接口API9变更,移植到ohos.resourceschedul…
46 | backgroundTaskManager.ResourceType | enum | GPS = 1 << 5 | 接口API9变更,移植到ohos.resourceschedule.back…
47 | backgroundTaskManager.ResourceType | enum | AUDIO = 1 << 6 | 接口API9变更,移植到ohos.resourceschedule.ba…
48 …backgroundTaskManager.EfficiencyResourcesRequest | interface | export interface EfficiencyResource…
49 | backgroundTaskManager.EfficiencyResourcesRequest | field | reason: string | 接口API9变更,移植到ohos.reso…
50 | backgroundTaskManager.EfficiencyResourcesRequest | field | isProcess?: bool | 接口API9变更,移植到ohos.re…
51 | backgroundTaskManager.EfficiencyResourcesRequest | field | isPersist?: bool | 接口API9变更,移植到ohos.re…
52 | backgroundTaskManager.EfficiencyResourcesRequest | field | timeOut: number | 接口API9变更,移植到ohos.res…
53 | backgroundTaskManager.EfficiencyResourcesRequest | field | isApply: bool | 接口API9变更,移植到ohos.resou…
54 | backgroundTaskManager.EfficiencyResourcesRequest | field | resourceTypes: number | 接口API9变更,移植到oh…
59 导入backgroundTaskManager模块。
61 import bundle form '@ohos.resourceschedule.backgroundTaskManager'
63 此外还需要适配异常处理,具体参考[backgroundTaskManager接口文档](../../../application-dev/reference/apis/js-apis-resourc…