1# JS API Changes of the Distributed Scheduler Subsystem 2 3The table below lists the APIs changes of the distributed scheduler subsystem in OpenHarmony 3.2 Beta1 over OpenHarmony 3.1 Release. 4 5## API Changes 6 7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type| 8|---|---|---|---| 9| ohos.bundleState | bundleState | getRecentlyUsedModules(maxNum?: number, callback: AsyncCallback\<Array\<BundleActiveModuleInfo>>): void;<br>getRecentlyUsedModules(maxNum?: number): Promise\<Array\<BundleActiveModuleInfo>>; | Added| 10| ohos.bundleState | BundleActiveModuleInfo | formRecords: Array\<BundleActiveFormInfo>; | Added| 11| ohos.bundleState | BundleActiveModuleInfo | lastModuleUsedTime: number; | Added| 12| ohos.bundleState | BundleActiveModuleInfo | launchedCount: number; | Added| 13| ohos.bundleState | BundleActiveModuleInfo | abilityIconId?: number; | Added| 14| ohos.bundleState | BundleActiveModuleInfo | abilityDescriptionId?: number; | Added| 15| ohos.bundleState | BundleActiveModuleInfo | abilityLableId?: number; | Added| 16| ohos.bundleState | BundleActiveModuleInfo | descriptionId?: number; | Added| 17| ohos.bundleState | BundleActiveModuleInfo | labelId?: number; | Added| 18| ohos.bundleState | BundleActiveModuleInfo | appLabelId?: number; | Added| 19| ohos.bundleState | BundleActiveModuleInfo | abilityName?: string; | Added| 20| ohos.bundleState | BundleActiveModuleInfo | moduleName: string; | Added| 21| ohos.bundleState | BundleActiveModuleInfo | bundleName: string; | Added| 22| ohos.bundleState | BundleActiveModuleInfo | deviceId?: string; | Added| 23| ohos.bundleState | BundleActiveFormInfo | count: number; | Added| 24| ohos.bundleState | BundleActiveFormInfo | formLastUsedTime: number; | Added| 25| ohos.bundleState | BundleActiveFormInfo | formId: number; | Added| 26| ohos.bundleState | BundleActiveFormInfo | formDimension: number; | Added| 27| ohos.bundleState | BundleActiveFormInfo | formName: string; | Added| 28| ohos.workScheduler | StorageRequest | STORAGE_LEVEL_LOW_OR_OKAY | Added| 29| ohos.workScheduler | StorageRequest | STORAGE_LEVEL_OKAY | Added| 30| ohos.workScheduler | StorageRequest | STORAGE_LEVEL_LOW = 0 | Added| 31| ohos.workScheduler | BatteryStatus | BATTERY_STATUS_LOW_OR_OKAY | Added| 32| ohos.workScheduler | BatteryStatus | BATTERY_STATUS_OKAY | Added| 33| ohos.workScheduler | BatteryStatus | BATTERY_STATUS_LOW = 0 | Added| 34| ohos.workScheduler | ChargingType | CHARGING_PLUGGED_WIRELESS | Added| 35| ohos.workScheduler | ChargingType | CHARGING_PLUGGED_USB | Added| 36| ohos.workScheduler | ChargingType | CHARGING_PLUGGED_AC | Added| 37| ohos.workScheduler | ChargingType | CHARGING_PLUGGED_ANY = 0 | Added| 38| ohos.workScheduler | NetworkType | NETWORK_TYPE_ETHERNET | Added| 39| ohos.workScheduler | NetworkType | NETWORK_TYPE_WIFI_P2P | Added| 40| ohos.workScheduler | NetworkType | NETWORK_TYPE_BLUETOOTH | Added| 41| ohos.workScheduler | NetworkType | NETWORK_TYPE_WIFI | Added| 42| ohos.workScheduler | NetworkType | NETWORK_TYPE_MOBILE | Added| 43| ohos.workScheduler | NetworkType | NETWORK_TYPE_ANY = 0 | Added| 44| ohos.workScheduler | workScheduler | isLastWorkTimeOut(workId: number, callback: AsyncCallback\<void>): boolean;<br>isLastWorkTimeOut(workId: number): Promise\<boolean>; | Added| 45| ohos.workScheduler | workScheduler | stopAndClearWorks(): boolean; | Added| 46| ohos.workScheduler | workScheduler | obtainAllWorks(callback: AsyncCallback\<void>): Array\<WorkInfo>;<br>obtainAllWorks(): Promise\<Array\<WorkInfo>>; | Added| 47| ohos.workScheduler | workScheduler | getWorkStatus(workId: number, callback: AsyncCallback\<WorkInfo>): void;<br>getWorkStatus(workId: number): Promise\<WorkInfo>; | Added| 48| ohos.workScheduler | workScheduler | stopWork(work: WorkInfo, needCancel?: boolean): boolean; | Added| 49| ohos.workScheduler | workScheduler | startWork(work: WorkInfo): boolean; | Added| 50| ohos.workScheduler | WorkInfo | idleWaitTime?: number; | Added| 51| ohos.workScheduler | WorkInfo | isDeepIdle?: boolean; | Added| 52| ohos.workScheduler | WorkInfo | repeatCount?: number; | Added| 53| ohos.workScheduler | WorkInfo | isRepeat?: boolean; | Added| 54| ohos.workScheduler | WorkInfo | repeatCycleTime?: number; | Added| 55| ohos.workScheduler | WorkInfo | storageRequest?: StorageRequest; | Added| 56| ohos.workScheduler | WorkInfo | batteryStatus?: BatteryStatus; | Added| 57| ohos.workScheduler | WorkInfo | batteryLevel?: number; | Added| 58| ohos.workScheduler | WorkInfo | chargerType?: ChargingType; | Added| 59| ohos.workScheduler | WorkInfo | isCharging?: boolean; | Added| 60| ohos.workScheduler | WorkInfo | networkType?: NetworkType; | Added| 61| ohos.workScheduler | WorkInfo | isPersisted?: boolean; | Added| 62| ohos.workScheduler | WorkInfo | abilityName: string; | Added| 63| ohos.workScheduler | WorkInfo | bundleName: string; | Added| 64| ohos.workScheduler | WorkInfo | workId: number; | Added| 65| ohos.WorkSchedulerExtensionAbility | WorkSchedulerExtensionAbility | onWorkStop(work: workScheduler.WorkInfo): void; | Added| 66| ohos.WorkSchedulerExtensionAbility | WorkSchedulerExtensionAbility | onWorkStart(work: workScheduler.WorkInfo): void; | Added| 67