Searched refs:bgModes (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/foundation/resourceschedule/background_task_mgr/interfaces/kits/napi/src/ |
H A D | bg_continuous_task_napi_module.cpp | 65 std::vector<uint32_t> bgModes {}; member 170 for (unsigned int i = 0; i < asyncCallbackInfo->bgModes.size(); i++) { in CheckBackgroundMode() 171 …if (asyncCallbackInfo->bgModes[i] < BG_MODE_ID_BEGIN || asyncCallbackInfo->bgModes[i] > BG_MODE_ID… in CheckBackgroundMode() 172 … BGTASK_LOGE("request background mode id: %{public}u out of range", asyncCallbackInfo->bgModes[i]); in CheckBackgroundMode() 237 GetMainAbilityLabel(info->bundleName), true, asyncCallbackInfo->bgModes, in UpdateBackgroundRunningExecuteCB() 258 asyncCallbackInfo->isBatchApi, asyncCallbackInfo->bgModes, in StartBackgroundRunningExecuteCB() 301 if (asyncCallbackInfo->bgModes.size() > 0) { in PromiseCompletedCB() 469 …auto modeIter = std::find(asyncCallbackInfo->bgModes.begin(), asyncCallbackInfo->bgModes.end(), in… in GetModes() 470 if (modeIter == asyncCallbackInfo->bgModes.end()) { in GetModes() 471 asyncCallbackInfo->bgModes.push_back(index + 1); in GetModes()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-backgroundtasks-kit/ |
H A D | js-apis-resourceschedule-backgroundTaskManager.md | 512 startBackgroundRunning(context: Context, bgModes: string[], wantAgent: WantAgent): Promise<Conti… 527 | bgModes | string[] | 是 | 长时任务类型,取值范围请参考长时任务类型中的[配置项](../../task-management/continuous-task.… 643 updateBackgroundRunning(context: Context, bgModes: string[]): Promise<ContinuousTaskNotification… 658 | bgModes | string[] | 是 | 更新后的长时任务类型,取值范围请参考长时任务类型中的[配置项](../../task-management/continuous-t…
|
/ohos5.0/docs/en/application-dev/reference/apis-backgroundtasks-kit/ |
H A D | js-apis-resourceschedule-backgroundTaskManager.md | 512 startBackgroundRunning(context: Context, bgModes: string[], wantAgent: WantAgent): Promise<Conti… 527 | bgModes | string[] | Yes | Types of continuous tasks. For details about the available option… 643 updateBackgroundRunning(context: Context, bgModes: string[]): Promise<ContinuousTaskNotification… 658 | bgModes | string[] | Yes | Types of continuous tasks after the update. For details about the…
|