harmony 鸿蒙Resource Scheduler Subsystem Changelog

  • 2023-06-24
  • 浏览 (384)

Resource Scheduler Subsystem Changelog

cl.resourceschedule.workScheduler

The data type of the parameters attribute value is changed. Specifically, the number, string, and boolean types are supported, but the any type is not.

Change Impact

For applications developed based on OpenHarmony3.2.10.7 and later SDK versions, the parameters attribute value can use the number, string, and boolean types only. If it uses the any type, a compilation error is reported.

Key API/Component Changes

The parameters attribute in @ohos.resourceschedule.workScheduler.d.ts is changed.

|Class|API Type|Statement Before the Change|Statement After the Change| | –|–|–|–| |workScheduler.WorkInfo|field|parameters?: {[key: string]: any}|parameters?: {[key: string]: number|string|boolean}|

Adaptation Guide

The parameters attribute uses the {[key: string]: number|string|boolean} data type.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

harmony 鸿蒙Ability Framework Changelog

harmony 鸿蒙Account Subsystem Changelog

harmony 鸿蒙ArkUI Subsystem Changelog

harmony 鸿蒙Bundle Manager Subsystem Changelog

harmony 鸿蒙Input Method Framework Subsystem – Input Method Framework Service Changelog

harmony 鸿蒙Theme Framework Subsystem – Screenlock Management Service Changelog

harmony 鸿蒙Telephony Subsystem Changelog

harmony 鸿蒙Util Subsystem Changelog

harmony 鸿蒙Theme Framework Subsystem – Wallpaper Management Service Changelog

0  赞