提交 8999f3be 编写于 作者: R RayShih

同步RN附件

Signed-off-by: NRayShih <shirui721@huawei.com>
上级 4722fa65
此差异已折叠。
# Readme
- [元能力](js-apidiff-ability.md)
- [帐号](js-apidiff-account.md)
- [AI](js-apidiff-ai.md)
- [应用](js-apidiff-application.md)
- [ArkUI](js-apidiff-arkui.md)
- [电源管理](js-apidiff-battery.md)
- [包管理](js-apidiff-bundle.md)
- [网络与通信](js-apidiff-communication.md)
- [语言编译器运行时](js-apidiff-compiler-and-runtime.md)
- [定制](js-apidiff-customization.md)
- [DFX](js-apidiff-dfx.md)
- [分布式数据管理](js-apidiff-distributed-data.md)
- [分布式硬件](js-apidiff-distributed-hardware.md)
- [上传下载](js-apidiff-download-upload.md)
- [驱动](js-apidiff-driver.md)
- [文件管理](js-apidiff-file-management.md)
- [位置服务](js-apidiff-geolocation.md)
- [全球化](js-apidiff-global.md)
- [Misc软件](js-apidiff-misc.md)
- [MSDP](js-apidiff-msdp.md)
- [多模输入](js-apidiff-multi-modal-input.md)
- [媒体](js-apidiff-multimedia.md)
- [事件通知](js-apidiff-notification.md)
- [资源调度](js-apidiff-resource-scheduler.md)
- [安全](js-apidiff-security.md)
- [泛Sensor](js-apidiff-sensor.md)
- [启动](js-apidiff-start-up.md)
- [电话服务](js-apidiff-telephony.md)
- [测试框架](js-apidiff-unitest.md)
- [USB](js-apidiff-usb.md)
- [Web](js-apidiff-web.md)
- [窗口](js-apidiff-window.md)
因为 它太大了无法显示 source diff 。你可以改为 查看blob
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:AuthorizationExtensionAbility;<br>方法or属性:onStartAuthorization(request: AuthorizationRequest, callback: AuthorizationCallback): void;|@ohos.account.appAccount.AuthorizationExtensionAbility.d.ts|
|新增|NA|类名:AuthorizationRequest;<br>方法or属性:readonly callerUid: number;|@ohos.account.appAccount.AuthorizationExtensionAbility.d.ts|
|新增|NA|类名:AuthorizationRequest;<br>方法or属性:readonly parameters: appAccount.AccountCapabilityRequest;|@ohos.account.appAccount.AuthorizationExtensionAbility.d.ts|
|新增|NA|类名:AuthorizationCallback;<br>方法or属性:onResult: AsyncCallback\<appAccount.AccountCapabilityResponse, { [key: string]: object }>;|@ohos.account.appAccount.AuthorizationExtensionAbility.d.ts|
|新增|NA|类名:AccountCapabilityType;<br>方法or属性:AUTHORIZATION = 1|@ohos.account.appAccount.d.ts|
|新增|NA|类名:AccountCapabilityProvider;<br>方法or属性:readonly capabilityType: AccountCapabilityType;|@ohos.account.appAccount.d.ts|
|新增|NA|类名:AccountCapabilityProvider;<br>方法or属性:constructor(capabilityType: AccountCapabilityType);|@ohos.account.appAccount.d.ts|
|新增|NA|类名:AuthorizationProvider;<br>方法or属性:constructor(info: AuthorizationProviderInfo);|@ohos.account.appAccount.d.ts|
|新增|NA|类名:AuthorizationProviderInfo;<br>方法or属性:readonly bundleName: string;|@ohos.account.appAccount.d.ts|
|新增|NA|类名:AuthorizationProviderInfo;<br>方法or属性:readonly abilityName: string;|@ohos.account.appAccount.d.ts|
|新增|NA|类名:AccountCapabilityRequest;<br>方法or属性:constructor(provider: AccountCapabilityProvider);|@ohos.account.appAccount.d.ts|
|新增|NA|类名:AccountCapabilityResponse;<br>方法or属性:readonly request: AccountCapabilityRequest;|@ohos.account.appAccount.d.ts|
|新增|NA|类名:AccountCapabilityResponse;<br>方法or属性:constructor(request: AccountCapabilityRequest);|@ohos.account.appAccount.d.ts|
|新增|NA|类名:AccountCapabilityScheduler;<br>方法or属性:executeRequest(<br> request: AccountCapabilityRequest,<br> callback: AsyncCallback\<AccountCapabilityResponse, { [key: string]: object }><br> ): void;|@ohos.account.appAccount.d.ts|
|新增|NA|类名:AccountCapabilityScheduler;<br>方法or属性:executeRequest(request: AccountCapabilityRequest): Promise\<AccountCapabilityResponse>;|@ohos.account.appAccount.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:mindSporeLite;<br>方法or属性:function loadModelFromFile(<br> model: string,<br> context?: Context): Promise\<Model>;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:mindSporeLite;<br>方法or属性:function loadModelFromFile(<br> model: string, callback: Callback\<Model>): void;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:mindSporeLite;<br>方法or属性:function loadModelFromFile(<br> model: string,<br> context: Context, callback: Callback\<Model>): void;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:mindSporeLite;<br>方法or属性:function loadModelFromBuffer(<br> model: ArrayBuffer,<br> context?: Context): Promise\<Model>;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:mindSporeLite;<br>方法or属性:function loadModelFromBuffer(<br> model: ArrayBuffer, callback: Callback\<Model>): void;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:mindSporeLite;<br>方法or属性:function loadModelFromBuffer(<br> model: ArrayBuffer,<br> context: Context, callback: Callback\<Model>): void;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:mindSporeLite;<br>方法or属性:function loadModelFromFd(<br> model: number,<br> context?: Context): Promise\<Model>;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:mindSporeLite;<br>方法or属性:function loadModelFromFd(<br> model: number, callback: Callback\<Model>): void;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:mindSporeLite;<br>方法or属性:function loadModelFromFd(<br> model: number,<br> context: Context, callback: Callback\<Model>): void;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Model;<br>方法or属性:getInputs(): MSTensor[];|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Model;<br>方法or属性:predict(inputs: MSTensor[], callback: Callback\<MSTensor[]>): void;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Model;<br>方法or属性:predict(inputs: MSTensor[]): Promise\<MSTensor[]>;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Model;<br>方法or属性:resize(inputs: MSTensor[], dims: Array\<Array\<number>>): boolean;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Context;<br>方法or属性:target?: string[];|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Context;<br>方法or属性:cpu?: CpuDevice;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Context;<br>方法or属性:nnrt?: NNRTDevice;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:CpuDevice;<br>方法or属性:threadNum?: number;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:CpuDevice;<br>方法or属性:threadAffinityMode?: ThreadAffinityMode;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:CpuDevice;<br>方法or属性:threadAffinityCoreList?: number[];|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:CpuDevice;<br>方法or属性:precisionMode?: string;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:ThreadAffinityMode;<br>方法or属性:NO_AFFINITIES = 0|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:ThreadAffinityMode;<br>方法or属性:BIG_CORES_FIRST = 1|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:ThreadAffinityMode;<br>方法or属性:LITTLE_CORES_FIRST = 2|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:MSTensor;<br>方法or属性:name: string;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:MSTensor;<br>方法or属性:shape: number[];|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:MSTensor;<br>方法or属性:elementNum: number;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:MSTensor;<br>方法or属性:dataSize: number;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:MSTensor;<br>方法or属性:dtype: DataType;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:MSTensor;<br>方法or属性:format: Format;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:MSTensor;<br>方法or属性:getData(): ArrayBuffer;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:MSTensor;<br>方法or属性:setData(inputArray: ArrayBuffer): void;|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:DataType;<br>方法or属性:TYPE_UNKNOWN = 0|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:DataType;<br>方法or属性:NUMBER_TYPE_INT8 = 32|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:DataType;<br>方法or属性:NUMBER_TYPE_INT16 = 33|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:DataType;<br>方法or属性:NUMBER_TYPE_INT32 = 34|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:DataType;<br>方法or属性:NUMBER_TYPE_INT64 = 35|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:DataType;<br>方法or属性:NUMBER_TYPE_UINT8 = 37|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:DataType;<br>方法or属性:NUMBER_TYPE_UINT16 = 38|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:DataType;<br>方法or属性:NUMBER_TYPE_UINT32 = 39|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:DataType;<br>方法or属性:NUMBER_TYPE_UINT64 = 40|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:DataType;<br>方法or属性:NUMBER_TYPE_FLOAT16 = 42|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:DataType;<br>方法or属性:NUMBER_TYPE_FLOAT32 = 43|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:DataType;<br>方法or属性:NUMBER_TYPE_FLOAT64 = 44|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Format;<br>方法or属性:DEFAULT_FORMAT = -1|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Format;<br>方法or属性:NCHW = 0|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Format;<br>方法or属性:NHWC = 1|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Format;<br>方法or属性:NHWC4 = 2|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Format;<br>方法or属性:HWKC = 3|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Format;<br>方法or属性:HWCK = 4|@ohos.ai.mindSporeLite.d.ts|
|新增|NA|类名:Format;<br>方法or属性:KCHW = 5|@ohos.ai.mindSporeLite.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:settings;<br>方法or属性:function getValue(context: Context, name: string, callback: AsyncCallback\<string>): void;|@ohos.settings.d.ts|
|新增|NA|类名:settings;<br>方法or属性:function getValue(context: Context, name: string): Promise\<string>;|@ohos.settings.d.ts|
|新增|NA|类名:settings;<br>方法or属性:function setValue(context: Context, name: string, value: string, callback: AsyncCallback\<boolean>): void;|@ohos.settings.d.ts|
|新增|NA|类名:settings;<br>方法or属性:function setValue(context: Context, name: string, value: string): Promise\<boolean>;|@ohos.settings.d.ts|
|新增|NA|类名:settings;<br>方法or属性:function getValueSync(context: Context, name: string, defValue: string): string;|@ohos.settings.d.ts|
|新增|NA|类名:settings;<br>方法or属性:function setValueSync(context: Context, name: string, value: string): boolean;|@ohos.settings.d.ts|
|废弃版本有变化|类名:settings;<br>方法or属性:function getURI(name: string): Promise\<object>;<br>旧版本信息:|类名:settings;<br>方法or属性:function getURI(name: string): Promise\<object>;<br>新版本信息:9<br>代替接口:|@ohos.settings.d.ts|
|废弃版本有变化|类名:settings;<br>方法or属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise\<object>;<br>旧版本信息:|类名:settings;<br>方法or属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise\<object>;<br>新版本信息:9<br>代替接口: ohos.settings#getValue|@ohos.settings.d.ts|
|废弃版本有变化|类名:settings;<br>方法or属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object): Promise\<boolean>;<br>旧版本信息:|类名:settings;<br>方法or属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object): Promise\<boolean>;<br>新版本信息:9<br>代替接口: ohos.settings#setValue|@ohos.settings.d.ts|
|新增(错误码)|类名:call;<br>方法or属性:function makeCall(phoneNumber: string): Promise\<void>;<br>旧版本信息:|类名:call;<br>方法or属性:function makeCall(phoneNumber: string): Promise\<void>;<br>新版本信息:401,8300001,8300002,8300003,8300999|@ohos.telephony.call.d.ts|
|访问级别有变化|类名:settings;<br>方法or属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object): Promise\<boolean>;<br>旧版本信息:|类名:settings;<br>方法or属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object): Promise\<boolean>;<br>新版本信息:systemapi|@ohos.settings.d.ts|
|model有变化|类名:settings;<br>方法or属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback\<object>): void;<br>旧版本信息:FAModelOnly|类名:settings;<br>方法or属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback\<object>): void;<br>新版本信息:famodelonly|@ohos.settings.d.ts|
|model有变化|类名:settings;<br>方法or属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise\<object>;<br>旧版本信息:|类名:settings;<br>方法or属性:function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise\<object>;<br>新版本信息:famodelonly|@ohos.settings.d.ts|
|model有变化|类名:settings;<br>方法or属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object, callback: AsyncCallback\<boolean>): void;<br>旧版本信息:FAModelOnly|类名:settings;<br>方法or属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object, callback: AsyncCallback\<boolean>): void;<br>新版本信息:famodelonly|@ohos.settings.d.ts|
|model有变化|类名:settings;<br>方法or属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object): Promise\<boolean>;<br>旧版本信息:|类名:settings;<br>方法or属性:function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object): Promise\<boolean>;<br>新版本信息:famodelonly|@ohos.settings.d.ts|
|model有变化|类名:settings;<br>方法or属性:function getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string;<br>旧版本信息:FAModelOnly|类名:settings;<br>方法or属性:function getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string;<br>新版本信息:famodelonly|@ohos.settings.d.ts|
|model有变化|类名:settings;<br>方法or属性:function setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean;<br>旧版本信息:FAModelOnly|类名:settings;<br>方法or属性:function setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean;<br>新版本信息:famodelonly|@ohos.settings.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:power;<br>方法or属性:function isStandby(): boolean;|@ohos.power.d.ts|
|访问级别有变化|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_INVALID = -17<br>旧版本信息:|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_INVALID = -17<br>新版本信息:systemapi|@ohos.batteryStatistics.d.ts|
|访问级别有变化|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_APP<br>旧版本信息:|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_APP<br>新版本信息:systemapi|@ohos.batteryStatistics.d.ts|
|访问级别有变化|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_BLUETOOTH<br>旧版本信息:|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_BLUETOOTH<br>新版本信息:systemapi|@ohos.batteryStatistics.d.ts|
|访问级别有变化|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_IDLE<br>旧版本信息:|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_IDLE<br>新版本信息:systemapi|@ohos.batteryStatistics.d.ts|
|访问级别有变化|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_PHONE<br>旧版本信息:|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_PHONE<br>新版本信息:systemapi|@ohos.batteryStatistics.d.ts|
|访问级别有变化|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_RADIO<br>旧版本信息:|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_RADIO<br>新版本信息:systemapi|@ohos.batteryStatistics.d.ts|
|访问级别有变化|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_SCREEN<br>旧版本信息:|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_SCREEN<br>新版本信息:systemapi|@ohos.batteryStatistics.d.ts|
|访问级别有变化|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_USER<br>旧版本信息:|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_USER<br>新版本信息:systemapi|@ohos.batteryStatistics.d.ts|
|访问级别有变化|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_WIFI<br>旧版本信息:|类名:ConsumptionType;<br>方法or属性:CONSUMPTION_TYPE_WIFI<br>新版本信息:systemapi|@ohos.batteryStatistics.d.ts|
|访问级别有变化|类名:BatteryStatsInfo;<br>方法or属性:uid: number;<br>旧版本信息:|类名:BatteryStatsInfo;<br>方法or属性:uid: number;<br>新版本信息:systemapi|@ohos.batteryStatistics.d.ts|
|访问级别有变化|类名:BatteryStatsInfo;<br>方法or属性:type: ConsumptionType;<br>旧版本信息:|类名:BatteryStatsInfo;<br>方法or属性:type: ConsumptionType;<br>新版本信息:systemapi|@ohos.batteryStatistics.d.ts|
|访问级别有变化|类名:BatteryStatsInfo;<br>方法or属性:power: number;<br>旧版本信息:|类名:BatteryStatsInfo;<br>方法or属性:power: number;<br>新版本信息:systemapi|@ohos.batteryStatistics.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|删除|类名:BusinessAbilityInfo;<br>方法or属性:readonly bundleName: string;|NA|BusinessAbilityInfo.d.ts|
|删除|类名:BusinessAbilityInfo;<br>方法or属性:readonly moduleName: string;|NA|BusinessAbilityInfo.d.ts|
|删除|类名:BusinessAbilityInfo;<br>方法or属性:readonly name: string;|NA|BusinessAbilityInfo.d.ts|
|删除|类名:BusinessAbilityInfo;<br>方法or属性:readonly labelId: number;|NA|BusinessAbilityInfo.d.ts|
|删除|类名:BusinessAbilityInfo;<br>方法or属性:readonly descriptionId: number;|NA|BusinessAbilityInfo.d.ts|
|删除|类名:BusinessAbilityInfo;<br>方法or属性:readonly iconId: number;|NA|BusinessAbilityInfo.d.ts|
|删除|类名:BusinessAbilityInfo;<br>方法or属性:readonly businessType: businessAbilityRouter.BusinessType;|NA|BusinessAbilityInfo.d.ts|
|删除|类名:BusinessAbilityInfo;<br>方法or属性:readonly applicationInfo: ApplicationInfo;|NA|BusinessAbilityInfo.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function getBundleInfoForSelfSync(bundleFlags: number): BundleInfo;|@ohos.bundle.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function getSpecifiedDistributionType(bundleName: string): string;|@ohos.bundle.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function getAdditionalInfo(bundleName: string): string;|@ohos.bundle.bundleManager.d.ts|
|新增|NA|类名:ExtensionAbilityType;<br>方法or属性:PUSH = 17|@ohos.bundle.bundleManager.d.ts|
|新增|NA|类名:ExtensionAbilityType;<br>方法or属性:APP_ACCOUNT_AUTHORIZATION = 19|@ohos.bundle.bundleManager.d.ts|
|新增|NA|类名:VerifyCodeParam;<br>方法or属性:moduleName: string;|@ohos.bundle.installer.d.ts|
|新增|NA|类名:VerifyCodeParam;<br>方法or属性:signatureFilePath: string;|@ohos.bundle.installer.d.ts|
|新增|NA|类名:InstallParam;<br>方法or属性:specifiedDistributionType?: string;|@ohos.bundle.installer.d.ts|
|新增|NA|类名:InstallParam;<br>方法or属性:additionalInfo?: string;|@ohos.bundle.installer.d.ts|
|新增|NA|类名:InstallParam;<br>方法or属性:verifyCodeParams?: Array\<VerifyCodeParam>;|@ohos.bundle.installer.d.ts|
|新增|NA|类名:ReqPermissionDetail;<br>方法or属性:moduleName: string;|BundleInfo.d.ts|
|错误码有变化|类名:BundleInstaller;<br>方法or属性:install(hapFilePaths: Array\<string>, installParam: InstallParam, callback: AsyncCallback\<void>): void;<br>旧版本信息:201,202,401,17700004,17700010,17700011,17700012,17700015,17700016,17700017,17700018,17700031,17700036,17700039,17700041,17700042,17700043,17700044,17700047|类名:BundleInstaller;<br>方法or属性:install(hapFilePaths: Array\<string>, installParam: InstallParam, callback: AsyncCallback\<void>): void;<br>新版本信息:201,202,401,17700004,17700010,17700011,17700012,17700015,17700016,17700017,17700018,17700031,17700036,17700039,17700041,17700042,17700043,17700044,17700047,17700048|@ohos.bundle.installer.d.ts|
|错误码有变化|类名:BundleInstaller;<br>方法or属性:install(hapFilePaths: Array\<string>, callback: AsyncCallback\<void>): void;<br>旧版本信息:201,202,401,17700010,17700011,17700012,17700015,17700016,17700017,17700018,17700031,17700036,17700039,17700041,17700042,17700043,17700044,17700047|类名:BundleInstaller;<br>方法or属性:install(hapFilePaths: Array\<string>, callback: AsyncCallback\<void>): void;<br>新版本信息:201,202,401,17700010,17700011,17700012,17700015,17700016,17700017,17700018,17700031,17700036,17700039,17700041,17700042,17700043,17700044,17700047,17700048|@ohos.bundle.installer.d.ts|
|错误码有变化|类名:BundleInstaller;<br>方法or属性:install(hapFilePaths: Array\<string>, installParam?: InstallParam): Promise\<void>;<br>旧版本信息:201,202,401,17700004,17700010,17700011,17700012,17700015,17700016,17700017,17700018,17700031,17700036,17700039,17700041,17700042,17700043,17700044,17700047|类名:BundleInstaller;<br>方法or属性:install(hapFilePaths: Array\<string>, installParam?: InstallParam): Promise\<void>;<br>新版本信息:201,202,401,17700004,17700010,17700011,17700012,17700015,17700016,17700017,17700018,17700031,17700036,17700039,17700041,17700042,17700043,17700044,17700047,17700048|@ohos.bundle.installer.d.ts|
|错误码有变化|类名:zlib;<br>方法or属性:function decompressFile(inFile: string, outFile: string, options: Options, callback: AsyncCallback\<void>): void;<br>旧版本信息:401,900001,900002|类名:zlib;<br>方法or属性:function decompressFile(inFile: string, outFile: string, options: Options, callback: AsyncCallback\<void>): void;<br>新版本信息:401,900001,900002,900003|@ohos.zlib.d.ts|
|错误码有变化|类名:zlib;<br>方法or属性:function decompressFile(inFile: string, outFile: string, options: Options): Promise\<void>;<br>旧版本信息:401,900001,900002|类名:zlib;<br>方法or属性:function decompressFile(inFile: string, outFile: string, options: Options): Promise\<void>;<br>新版本信息:401,900001,900002,900003|@ohos.zlib.d.ts|
|权限有变化|类名:bundleManager;<br>方法or属性:function getAllBundleInfo(bundleFlags: number, callback: AsyncCallback\<Array\<BundleInfo>>): void;<br>旧版本信息:ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|类名:bundleManager;<br>方法or属性:function getAllBundleInfo(bundleFlags: number, callback: AsyncCallback\<Array\<BundleInfo>>): void;<br>新版本信息:ohos.permission.GET_INSTALLED_BUNDLE_LIST|@ohos.bundle.bundleManager.d.ts|
|权限有变化|类名:bundleManager;<br>方法or属性:function getAllBundleInfo(bundleFlags: number, userId: number, callback: AsyncCallback\<Array\<BundleInfo>>): void;<br>旧版本信息:ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|类名:bundleManager;<br>方法or属性:function getAllBundleInfo(bundleFlags: number, userId: number, callback: AsyncCallback\<Array\<BundleInfo>>): void;<br>新版本信息:ohos.permission.GET_INSTALLED_BUNDLE_LIST|@ohos.bundle.bundleManager.d.ts|
|权限有变化|类名:bundleManager;<br>方法or属性:function getAllBundleInfo(bundleFlags: number, userId?: number): Promise\<Array\<BundleInfo>>;<br>旧版本信息:ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|类名:bundleManager;<br>方法or属性:function getAllBundleInfo(bundleFlags: number, userId?: number): Promise\<Array\<BundleInfo>>;<br>新版本信息:ohos.permission.GET_INSTALLED_BUNDLE_LIST|@ohos.bundle.bundleManager.d.ts|
|权限有变化|类名:bundleManager;<br>方法or属性:function getAllApplicationInfo(appFlags: number, callback: AsyncCallback\<Array\<ApplicationInfo>>): void;<br>旧版本信息:ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|类名:bundleManager;<br>方法or属性:function getAllApplicationInfo(appFlags: number, callback: AsyncCallback\<Array\<ApplicationInfo>>): void;<br>新版本信息:ohos.permission.GET_INSTALLED_BUNDLE_LIST|@ohos.bundle.bundleManager.d.ts|
|权限有变化|类名:bundleManager;<br>方法or属性:function getAllApplicationInfo(appFlags: number,<br><br> userId: number, callback: AsyncCallback\<Array\<ApplicationInfo>>): void;<br>旧版本信息:ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|类名:bundleManager;<br>方法or属性:function getAllApplicationInfo(appFlags: number,<br><br> userId: number, callback: AsyncCallback\<Array\<ApplicationInfo>>): void;<br>新版本信息:ohos.permission.GET_INSTALLED_BUNDLE_LIST|@ohos.bundle.bundleManager.d.ts|
|权限有变化|类名:bundleManager;<br>方法or属性:function getAllApplicationInfo(appFlags: number, userId?: number): Promise\<Array\<ApplicationInfo>>;<br>旧版本信息:ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|类名:bundleManager;<br>方法or属性:function getAllApplicationInfo(appFlags: number, userId?: number): Promise\<Array\<ApplicationInfo>>;<br>新版本信息:ohos.permission.GET_INSTALLED_BUNDLE_LIST|@ohos.bundle.bundleManager.d.ts|
|权限有变化|类名:BundleInstaller;<br>方法or属性:install(hapFilePaths: Array\<string>, installParam: InstallParam, callback: AsyncCallback\<void>): void;<br>旧版本信息:ohos.permission.INSTALL_BUNDLE|类名:BundleInstaller;<br>方法or属性:install(hapFilePaths: Array\<string>, installParam: InstallParam, callback: AsyncCallback\<void>): void;<br>新版本信息:ohos.permission.INSTALL_BUNDLE,ohos.permission.INSTALL_ENTERPRISE_BUNDLE|@ohos.bundle.installer.d.ts|
|权限有变化|类名:BundleInstaller;<br>方法or属性:install(hapFilePaths: Array\<string>, callback: AsyncCallback\<void>): void;<br>旧版本信息:ohos.permission.INSTALL_BUNDLE|类名:BundleInstaller;<br>方法or属性:install(hapFilePaths: Array\<string>, callback: AsyncCallback\<void>): void;<br>新版本信息:ohos.permission.INSTALL_BUNDLE,ohos.permission.INSTALL_ENTERPRISE_BUNDLE|@ohos.bundle.installer.d.ts|
|权限有变化|类名:BundleInstaller;<br>方法or属性:install(hapFilePaths: Array\<string>, installParam?: InstallParam): Promise\<void>;<br>旧版本信息:ohos.permission.INSTALL_BUNDLE|类名:BundleInstaller;<br>方法or属性:install(hapFilePaths: Array\<string>, installParam?: InstallParam): Promise\<void>;<br>新版本信息:ohos.permission.INSTALL_BUNDLE,ohos.permission.INSTALL_ENTERPRISE_BUNDLE|@ohos.bundle.installer.d.ts|
|model有变化|类名:AbilityType;<br>方法or属性:PAGE = 1<br>旧版本信息:|类名:AbilityType;<br>方法or属性:PAGE = 1<br>新版本信息:FAModelOnly|@ohos.bundle.bundleManager.d.ts|
|model有变化|类名:AbilityType;<br>方法or属性:SERVICE = 2<br>旧版本信息:|类名:AbilityType;<br>方法or属性:SERVICE = 2<br>新版本信息:FAModelOnly|@ohos.bundle.bundleManager.d.ts|
|model有变化|类名:AbilityType;<br>方法or属性:DATA = 3<br>旧版本信息:|类名:AbilityType;<br>方法or属性:DATA = 3<br>新版本信息:FAModelOnly|@ohos.bundle.bundleManager.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:ConditionType;<br>方法or属性:timeout?: number;|@ohos.process.d.ts|
|新增|NA|类名:ConditionType;<br>方法or属性:killSignal?: number \| string;|@ohos.process.d.ts|
|新增|NA|类名:ConditionType;<br>方法or属性:maxBuffer?: number;|@ohos.process.d.ts|
|新增|NA|类名:taskpool;<br>方法or属性:function execute(group: TaskGroup, priority?: Priority): Promise\<unknown[]>;|@ohos.taskpool.d.ts|
|新增|NA|类名:taskpool;<br>方法or属性:function cancel(group: TaskGroup): void;|@ohos.taskpool.d.ts|
|新增|NA|类名:taskpool;<br>方法or属性:function getTaskPoolInfo(): TaskPoolInfo;|@ohos.taskpool.d.ts|
|新增|NA|类名:Task;<br>方法or属性:static isCanceled(): boolean;|@ohos.taskpool.d.ts|
|新增|NA|类名:Task;<br>方法or属性:setTransferList(transfer?: ArrayBuffer[]): void;|@ohos.taskpool.d.ts|
|新增|NA|类名:TaskGroup;<br>方法or属性:constructor();|@ohos.taskpool.d.ts|
|新增|NA|类名:TaskGroup;<br>方法or属性:addTask(func: Function, ...args: unknown[]): void;|@ohos.taskpool.d.ts|
|新增|NA|类名:TaskGroup;<br>方法or属性:addTask(task: Task): void;|@ohos.taskpool.d.ts|
|新增|NA|类名:State;<br>方法or属性:WAITING = 1|@ohos.taskpool.d.ts|
|新增|NA|类名:State;<br>方法or属性:RUNNING = 2|@ohos.taskpool.d.ts|
|新增|NA|类名:State;<br>方法or属性:CANCELED = 3|@ohos.taskpool.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:taskId: number;|@ohos.taskpool.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:state: State;|@ohos.taskpool.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:duration?: number;|@ohos.taskpool.d.ts|
|新增|NA|类名:ThreadInfo;<br>方法or属性:tid: number;|@ohos.taskpool.d.ts|
|新增|NA|类名:ThreadInfo;<br>方法or属性:taskIds?: number[];|@ohos.taskpool.d.ts|
|新增|NA|类名:ThreadInfo;<br>方法or属性:priority?: Priority;|@ohos.taskpool.d.ts|
|新增|NA|类名:TaskPoolInfo;<br>方法or属性:threadInfos: ThreadInfo[];|@ohos.taskpool.d.ts|
|新增|NA|类名:TaskPoolInfo;<br>方法or属性:taskInfos: TaskInfo[];|@ohos.taskpool.d.ts|
|新增|NA|类名:Type;<br>方法or属性:BASIC|@ohos.util.d.ts|
|新增|NA|类名:Type;<br>方法or属性:MIME|@ohos.util.d.ts|
|新增(错误码)|类名:WorkerEventListener;<br>方法or属性:(event: Event): void \| Promise\<void>;<br>旧版本信息:|类名:WorkerEventListener;<br>方法or属性:(event: Event): void \| Promise\<void>;<br>新版本信息:401,10200004,10200005|@ohos.worker.d.ts|
|新增(错误码)|类名:ThreadWorkerGlobalScope;<br>方法or属性:onmessage?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;<br>旧版本信息:|类名:ThreadWorkerGlobalScope;<br>方法or属性:onmessage?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;<br>新版本信息:401,10200004,10200005|@ohos.worker.d.ts|
|新增(错误码)|类名:ThreadWorkerGlobalScope;<br>方法or属性:onmessageerror?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;<br>旧版本信息:|类名:ThreadWorkerGlobalScope;<br>方法or属性:onmessageerror?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;<br>新版本信息:401,10200004,10200005|@ohos.worker.d.ts|
|新增(错误码)|类名:ThreadWorker;<br>方法or属性:onexit?: (code: number) => void;<br>旧版本信息:|类名:ThreadWorker;<br>方法or属性:onexit?: (code: number) => void;<br>新版本信息:401,10200004,10200005|@ohos.worker.d.ts|
|新增(错误码)|类名:ThreadWorker;<br>方法or属性:onerror?: (err: ErrorEvent) => void;<br>旧版本信息:|类名:ThreadWorker;<br>方法or属性:onerror?: (err: ErrorEvent) => void;<br>新版本信息:401,10200004,10200005|@ohos.worker.d.ts|
|新增(错误码)|类名:ThreadWorker;<br>方法or属性:onmessage?: (event: MessageEvents) => void;<br>旧版本信息:|类名:ThreadWorker;<br>方法or属性:onmessage?: (event: MessageEvents) => void;<br>新版本信息:401,10200004,10200005|@ohos.worker.d.ts|
|新增(错误码)|类名:ThreadWorker;<br>方法or属性:onmessageerror?: (event: MessageEvents) => void;<br>旧版本信息:|类名:ThreadWorker;<br>方法or属性:onmessageerror?: (event: MessageEvents) => void;<br>新版本信息:401,10200004,10200005|@ohos.worker.d.ts|
|错误码有变化|类名:taskpool;<br>方法or属性:function cancel(task: Task): void;<br>旧版本信息:401,10200015,10200016|类名:taskpool;<br>方法or属性:function cancel(task: Task): void;<br>新版本信息:401,10200015|@ohos.taskpool.d.ts|
|错误码有变化|类名:Vector;<br>方法or属性:insert(element: T, index: number): void;<br>旧版本信息:If|类名:Vector;<br>方法or属性:insert(element: T, index: number): void;<br>新版本信息:|@ohos.util.Vector.d.ts|
|错误码有变化|类名:Vector;<br>方法or属性:removeByRange(fromIndex: number, toIndex: number): void;<br>旧版本信息:If|类名:Vector;<br>方法or属性:removeByRange(fromIndex: number, toIndex: number): void;<br>新版本信息:|@ohos.util.Vector.d.ts|
|错误码有变化|类名:Vector;<br>方法or属性:subVector(fromIndex: number, toIndex: number): Vector\<T>;<br>旧版本信息:If|类名:Vector;<br>方法or属性:subVector(fromIndex: number, toIndex: number): Vector\<T>;<br>新版本信息:|@ohos.util.Vector.d.ts|
|错误码有变化|类名:WorkerEventTarget;<br>方法or属性:addEventListener(type: string, listener: WorkerEventListener): void;<br>旧版本信息:401,10200004|类名:WorkerEventTarget;<br>方法or属性:addEventListener(type: string, listener: WorkerEventListener): void;<br>新版本信息:401,10200004,10200005|@ohos.worker.d.ts|
|错误码有变化|类名:ThreadWorker;<br>方法or属性:addEventListener(type: string, listener: WorkerEventListener): void;<br>旧版本信息:401,10200004|类名:ThreadWorker;<br>方法or属性:addEventListener(type: string, listener: WorkerEventListener): void;<br>新版本信息:401,10200004,10200005|@ohos.worker.d.ts|
|错误码有变化|类名:ThreadWorker;<br>方法or属性:on(type: string, listener: WorkerEventListener): void;<br>旧版本信息:401,10200004|类名:ThreadWorker;<br>方法or属性:on(type: string, listener: WorkerEventListener): void;<br>新版本信息:401,10200004,10200005|@ohos.worker.d.ts|
|错误码有变化|类名:ThreadWorker;<br>方法or属性:once(type: string, listener: WorkerEventListener): void;<br>旧版本信息:401,10200004|类名:ThreadWorker;<br>方法or属性:once(type: string, listener: WorkerEventListener): void;<br>新版本信息:401,10200004,10200005|@ohos.worker.d.ts|
|错误码有变化|类名:ThreadWorker;<br>方法or属性:off(type: string, listener?: WorkerEventListener): void;<br>旧版本信息:401,10200004|类名:ThreadWorker;<br>方法or属性:off(type: string, listener?: WorkerEventListener): void;<br>新版本信息:401,10200004,10200005|@ohos.worker.d.ts|
|type有变化|类名:Task;<br>方法or属性:arguments?: unknown[];<br>旧版本信息:|类名:Task;<br>方法or属性:arguments?: unknown[];<br>新版本信息:?unknown[]|@ohos.taskpool.d.ts|
|函数有变化|类名:process;<br>方法or属性:function runCmd(command: string,<br><br> options?: { timeout?: number, killSignal?: number \| string, maxBuffer?: number }): ChildProcess;|类名:process;<br>方法or属性:function runCmd(<br><br> command: string,<br><br> options?: ConditionType<br><br> ): ChildProcess;|@ohos.process.d.ts|
|函数有变化|类名:Priority;<br>方法or属性:HIGH|类名:Priority;<br>方法or属性:HIGH = 0|@ohos.taskpool.d.ts|
|函数有变化|类名:Priority;<br>方法or属性:MEDIUM|类名:Priority;<br>方法or属性:MEDIUM = 1|@ohos.taskpool.d.ts|
|函数有变化|类名:Priority;<br>方法or属性:LOW|类名:Priority;<br>方法or属性:LOW = 2|@ohos.taskpool.d.ts|
|函数有变化|类名:Base64Helper;<br>方法or属性:encodeToStringSync(src: Uint8Array): string;|类名:Base64Helper;<br>方法or属性:encodeToStringSync(src: Uint8Array, options?: Type): string;|@ohos.util.d.ts|
|函数有变化|类名:Base64Helper;<br>方法or属性:decodeSync(src: Uint8Array \| string): Uint8Array;|类名:Base64Helper;<br>方法or属性:decodeSync(src: Uint8Array \| string, options?: Type): Uint8Array;|@ohos.util.d.ts|
|函数有变化|类名:Base64Helper;<br>方法or属性:encodeToString(src: Uint8Array): Promise\<string>;|类名:Base64Helper;<br>方法or属性:encodeToString(src: Uint8Array, options?: Type): Promise\<string>;|@ohos.util.d.ts|
|函数有变化|类名:Base64Helper;<br>方法or属性:decode(src: Uint8Array \| string): Promise\<Uint8Array>;|类名:Base64Helper;<br>方法or属性:decode(src: Uint8Array \| string, options?: Type): Promise\<Uint8Array>;|@ohos.util.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:browser;<br>方法or属性:function setPolicies(admin: Want, appId: string, policies: string, callback: AsyncCallback\<void>): void;|@ohos.enterprise.browser.d.ts|
|新增|NA|类名:browser;<br>方法or属性:function setPolicies(admin: Want, appId: string, policies: string): Promise\<void>;|@ohos.enterprise.browser.d.ts|
|新增|NA|类名:browser;<br>方法or属性:function getPolicies(admin: Want, appId: string, callback: AsyncCallback\<string>): void;|@ohos.enterprise.browser.d.ts|
|新增|NA|类名:browser;<br>方法or属性:function getPolicies(admin: Want, appId: string): Promise\<string>;|@ohos.enterprise.browser.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function addDisallowedUninstallBundles(admin: Want, appIds: Array\<string>, callback: AsyncCallback\<void>): void;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function addDisallowedUninstallBundles(admin: Want, appIds: Array\<string>, userId: number, callback: AsyncCallback\<void>): void;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function addDisallowedUninstallBundles(admin: Want, appIds: Array\<string>, userId?: number): Promise\<void>;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function removeDisallowedUninstallBundles(admin: Want, appIds: Array\<string>, callback: AsyncCallback\<void>): void;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function removeDisallowedUninstallBundles(admin: Want, appIds: Array\<string>, userId: number, callback: AsyncCallback\<void>): void;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function removeDisallowedUninstallBundles(admin: Want, appIds: Array\<string>, userId?: number): Promise\<void>;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function getDisallowedUninstallBundles(admin: Want, callback: AsyncCallback\<Array\<string>>): void;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function getDisallowedUninstallBundles(admin: Want, userId: number, callback: AsyncCallback\<Array\<string>>): void;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function getDisallowedUninstallBundles(admin: Want, userId?: number): Promise\<Array\<string>>;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function uninstall(admin: Want, bundleName: string, callback: AsyncCallback\<void>): void;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function uninstall(admin: Want, bundleName: string, userId: number, callback: AsyncCallback\<void>): void;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function uninstall(admin: Want, bundleName: string, isKeepData: boolean, callback: AsyncCallback\<void>): void;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function uninstall(admin: Want, bundleName: string, userId: number, isKeepData: boolean, callback: AsyncCallback\<void>): void;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:bundleManager;<br>方法or属性:function uninstall(admin: Want, bundleName: string, userId?: number, isKeepData?: boolean): Promise\<void>;|@ohos.enterprise.bundleManager.d.ts|
|新增|NA|类名:deviceSettings;<br>方法or属性:function getScreenOffTime(admin: Want, callback: AsyncCallback\<number>): void;|@ohos.enterprise.deviceSettings.d.ts|
|新增|NA|类名:deviceSettings;<br>方法or属性:function getScreenOffTime(admin: Want): Promise\<number>;|@ohos.enterprise.deviceSettings.d.ts|
|新增|NA|类名:networkManager;<br>方法or属性:function addIptablesFilterRule(admin: Want, filterRule: AddFilterRule, callback: AsyncCallback\<void>): void;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:networkManager;<br>方法or属性:function addIptablesFilterRule(admin: Want, filterRule: AddFilterRule): Promise\<void>;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:networkManager;<br>方法or属性:function removeIptablesFilterRule(admin: Want, filterRule: RemoveFilterRule, callback: AsyncCallback\<void>): void;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:networkManager;<br>方法or属性:function removeIptablesFilterRule(admin: Want, filterRule: RemoveFilterRule): Promise\<void>;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:networkManager;<br>方法or属性:function listIptablesFilterRules(admin: Want, callback: AsyncCallback\<string>): void;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:networkManager;<br>方法or属性:function listIptablesFilterRules(admin: Want): Promise\<string>;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:AddMethod;<br>方法or属性:APPEND = 0|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:AddMethod;<br>方法or属性:INSERT = 1|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:Direction;<br>方法or属性:INPUT = 0|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:Direction;<br>方法or属性:OUTPUT = 1|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:Action;<br>方法or属性:ALLOW = 0|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:Action;<br>方法or属性:DENY = 1|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:Protocol;<br>方法or属性:ALL = 0|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:Protocol;<br>方法or属性:TCP = 1|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:Protocol;<br>方法or属性:UDP = 2|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:Protocol;<br>方法or属性:ICMP = 3|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:AddFilterRule;<br>方法or属性:ruleNo?: number;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:AddFilterRule;<br>方法or属性:srcAddr?: string;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:RemoveFilterRule;<br>方法or属性:srcAddr?: string;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:AddFilterRule;<br>方法or属性:destAddr?: string;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:RemoveFilterRule;<br>方法or属性:destAddr?: string;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:AddFilterRule;<br>方法or属性:srcPort?: string;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:RemoveFilterRule;<br>方法or属性:srcPort?: string;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:AddFilterRule;<br>方法or属性:destPort?: string;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:RemoveFilterRule;<br>方法or属性:destPort?: string;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:AddFilterRule;<br>方法or属性:uid?: string;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:RemoveFilterRule;<br>方法or属性:uid?: string;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:AddFilterRule;<br>方法or属性:method: AddMethod;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:AddFilterRule;<br>方法or属性:direction: Direction;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:RemoveFilterRule;<br>方法or属性:direction: Direction;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:AddFilterRule;<br>方法or属性:action: Action;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:AddFilterRule;<br>方法or属性:protocol?: Protocol;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:RemoveFilterRule;<br>方法or属性:protocol?: Protocol;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:RemoveFilterRule;<br>方法or属性:action?: Action;|@ohos.enterprise.networkManager.d.ts|
|新增|NA|类名:restrictions;<br>方法or属性:function setPrinterDisabled(admin: Want, disabled: boolean, callback: AsyncCallback\<void>): void;|@ohos.enterprise.restrictions.d.ts|
|新增|NA|类名:restrictions;<br>方法or属性:function setPrinterDisabled(admin: Want, disabled: boolean): Promise\<void>;|@ohos.enterprise.restrictions.d.ts|
|新增|NA|类名:restrictions;<br>方法or属性:function isPrinterDisabled(admin: Want, callback: AsyncCallback\<boolean>): void;|@ohos.enterprise.restrictions.d.ts|
|新增|NA|类名:restrictions;<br>方法or属性:function isPrinterDisabled(admin: Want): Promise\<boolean>;|@ohos.enterprise.restrictions.d.ts|
|新增|NA|类名:restrictions;<br>方法or属性:function setHdcDisabled(admin: Want, disabled: boolean, callback: AsyncCallback\<void>): void;|@ohos.enterprise.restrictions.d.ts|
|新增|NA|类名:restrictions;<br>方法or属性:function setHdcDisabled(admin: Want, disabled: boolean): Promise\<void>;|@ohos.enterprise.restrictions.d.ts|
|新增|NA|类名:restrictions;<br>方法or属性:function isHdcDisabled(admin: Want, callback: AsyncCallback\<boolean>): void;|@ohos.enterprise.restrictions.d.ts|
|新增|NA|类名:restrictions;<br>方法or属性:function isHdcDisabled(admin: Want): Promise\<boolean>;|@ohos.enterprise.restrictions.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:hiSysEvent;<br>方法or属性:function exportSysEvents(queryArg: QueryArg, rules: QueryRule[]): number;|@ohos.hiSysEvent.d.ts|
|新增|NA|类名:hiSysEvent;<br>方法or属性:function subscribe(rules: QueryRule[]): number;|@ohos.hiSysEvent.d.ts|
|新增|NA|类名:hiSysEvent;<br>方法or属性:function unsubscribe(): void;|@ohos.hiSysEvent.d.ts|
|新增|NA|类名:QueryArg;<br>方法or属性:fromSeq?: number;|@ohos.hiSysEvent.d.ts|
|新增|NA|类名:QueryArg;<br>方法or属性:toSeq?: number;|@ohos.hiSysEvent.d.ts|
|新增|NA|类名:QueryRule;<br>方法or属性:condition?: string;|@ohos.hiSysEvent.d.ts|
|新增|NA|类名:logLibrary;<br>方法or属性:function list(logType: string): LogEntry[];|@ohos.logLibrary.d.ts|
|新增|NA|类名:logLibrary;<br>方法or属性:function copy(logType: string, logName: string, dest: string): Promise\<void>;|@ohos.logLibrary.d.ts|
|新增|NA|类名:logLibrary;<br>方法or属性:function copy(logType: string, logName: string, dest: string, callback: AsyncCallback\<void>): void;|@ohos.logLibrary.d.ts|
|新增|NA|类名:logLibrary;<br>方法or属性:function move(logType: string, logName: string, dest: string): Promise\<void>;|@ohos.logLibrary.d.ts|
|新增|NA|类名:logLibrary;<br>方法or属性:function move(logType: string, logName: string, dest: string, callback: AsyncCallback\<void>): void;|@ohos.logLibrary.d.ts|
|新增|NA|类名:logLibrary;<br>方法or属性:function remove(logType: string, logName: string): void;|@ohos.logLibrary.d.ts|
|新增|NA|类名:LogEntry;<br>方法or属性:name: string;|@ohos.logLibrary.d.ts|
|新增|NA|类名:LogEntry;<br>方法or属性:mtime: number;|@ohos.logLibrary.d.ts|
|新增|NA|类名:LogEntry;<br>方法or属性:size: number;|@ohos.logLibrary.d.ts|
|新增(错误码)|类名:hiSysEvent;<br>方法or属性:function write(info: SysEventInfo, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:hiSysEvent;<br>方法or属性:function write(info: SysEventInfo, callback: AsyncCallback\<void>): void;<br>新版本信息:401,11200001,11200002,11200003,11200004,11200051,11200052,11200053,11200054|@ohos.hiSysEvent.d.ts|
|新增(错误码)|类名:hiAppEvent;<br>方法or属性:function write(info: AppEventInfo, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:hiAppEvent;<br>方法or属性:function write(info: AppEventInfo, callback: AsyncCallback\<void>): void;<br>新版本信息:401,11100001,11101001,11101002,11101003,11101004,11101005,11101006|@ohos.hiviewdfx.hiAppEvent.d.ts|
|错误码有变化|类名:hiSysEvent;<br>方法or属性:function addWatcher(watcher: Watcher): void;<br>旧版本信息:201,401,11200101,11200102|类名:hiSysEvent;<br>方法or属性:function addWatcher(watcher: Watcher): void;<br>新版本信息:201,202,401,11200101,11200102|@ohos.hiSysEvent.d.ts|
|错误码有变化|类名:hiSysEvent;<br>方法or属性:function removeWatcher(watcher: Watcher): void;<br>旧版本信息:201,401,11200201|类名:hiSysEvent;<br>方法or属性:function removeWatcher(watcher: Watcher): void;<br>新版本信息:201,202,401,11200201|@ohos.hiSysEvent.d.ts|
|错误码有变化|类名:hiSysEvent;<br>方法or属性:function query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): void;<br>旧版本信息:201,401,11200301,11200302,11200303,11200304|类名:hiSysEvent;<br>方法or属性:function query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): void;<br>新版本信息:201,202,401,11200301,11200302,11200303,11200304|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:hiSysEvent;<br>方法or属性:function write(info: SysEventInfo, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:hiSysEvent;<br>方法or属性:function write(info: SysEventInfo, callback: AsyncCallback\<void>): void;<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:SysEventInfo;<br>方法or属性:domain: string;<br>旧版本信息:|类名:SysEventInfo;<br>方法or属性:domain: string;<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:WatchRule;<br>方法or属性:domain: string;<br>旧版本信息:|类名:WatchRule;<br>方法or属性:domain: string;<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:QueryRule;<br>方法or属性:domain: string;<br>旧版本信息:|类名:QueryRule;<br>方法or属性:domain: string;<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:SysEventInfo;<br>方法or属性:name: string;<br>旧版本信息:|类名:SysEventInfo;<br>方法or属性:name: string;<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:WatchRule;<br>方法or属性:name: string;<br>旧版本信息:|类名:WatchRule;<br>方法or属性:name: string;<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:SysEventInfo;<br>方法or属性:eventType: EventType;<br>旧版本信息:|类名:SysEventInfo;<br>方法or属性:eventType: EventType;<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:SysEventInfo;<br>方法or属性:params: object;<br>旧版本信息:|类名:SysEventInfo;<br>方法or属性:params: object;<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:WatchRule;<br>方法or属性:tag: string;<br>旧版本信息:|类名:WatchRule;<br>方法or属性:tag: string;<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:WatchRule;<br>方法or属性:ruleType: RuleType;<br>旧版本信息:|类名:WatchRule;<br>方法or属性:ruleType: RuleType;<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:Watcher;<br>方法or属性:rules: WatchRule[];<br>旧版本信息:|类名:Watcher;<br>方法or属性:rules: WatchRule[];<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:QueryArg;<br>方法or属性:beginTime: number;<br>旧版本信息:|类名:QueryArg;<br>方法or属性:beginTime: number;<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:QueryArg;<br>方法or属性:endTime: number;<br>旧版本信息:|类名:QueryArg;<br>方法or属性:endTime: number;<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:QueryArg;<br>方法or属性:maxEvents: number;<br>旧版本信息:|类名:QueryArg;<br>方法or属性:maxEvents: number;<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:QueryRule;<br>方法or属性:names: string[];<br>旧版本信息:|类名:QueryRule;<br>方法or属性:names: string[];<br>新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|type有变化|类名:SysEventInfo;<br>方法or属性:domain: string;<br>旧版本信息:|类名:SysEventInfo;<br>方法or属性:domain: string;<br>新版本信息:string|@ohos.hiSysEvent.d.ts|
|type有变化|类名:WatchRule;<br>方法or属性:domain: string;<br>旧版本信息:|类名:WatchRule;<br>方法or属性:domain: string;<br>新版本信息:string|@ohos.hiSysEvent.d.ts|
|type有变化|类名:QueryRule;<br>方法or属性:domain: string;<br>旧版本信息:|类名:QueryRule;<br>方法or属性:domain: string;<br>新版本信息:string|@ohos.hiSysEvent.d.ts|
|type有变化|类名:SysEventInfo;<br>方法or属性:name: string;<br>旧版本信息:|类名:SysEventInfo;<br>方法or属性:name: string;<br>新版本信息:string|@ohos.hiSysEvent.d.ts|
|type有变化|类名:WatchRule;<br>方法or属性:name: string;<br>旧版本信息:|类名:WatchRule;<br>方法or属性:name: string;<br>新版本信息:string|@ohos.hiSysEvent.d.ts|
|type有变化|类名:SysEventInfo;<br>方法or属性:eventType: EventType;<br>旧版本信息:|类名:SysEventInfo;<br>方法or属性:eventType: EventType;<br>新版本信息:EventType|@ohos.hiSysEvent.d.ts|
|type有变化|类名:SysEventInfo;<br>方法or属性:params: object;<br>旧版本信息:|类名:SysEventInfo;<br>方法or属性:params: object;<br>新版本信息:object|@ohos.hiSysEvent.d.ts|
|type有变化|类名:WatchRule;<br>方法or属性:tag: string;<br>旧版本信息:|类名:WatchRule;<br>方法or属性:tag: string;<br>新版本信息:string|@ohos.hiSysEvent.d.ts|
|type有变化|类名:WatchRule;<br>方法or属性:ruleType: RuleType;<br>旧版本信息:|类名:WatchRule;<br>方法or属性:ruleType: RuleType;<br>新版本信息:RuleType|@ohos.hiSysEvent.d.ts|
|type有变化|类名:QueryArg;<br>方法or属性:beginTime: number;<br>旧版本信息:|类名:QueryArg;<br>方法or属性:beginTime: number;<br>新版本信息:number|@ohos.hiSysEvent.d.ts|
|type有变化|类名:QueryArg;<br>方法or属性:endTime: number;<br>旧版本信息:|类名:QueryArg;<br>方法or属性:endTime: number;<br>新版本信息:number|@ohos.hiSysEvent.d.ts|
|type有变化|类名:QueryArg;<br>方法or属性:maxEvents: number;<br>旧版本信息:|类名:QueryArg;<br>方法or属性:maxEvents: number;<br>新版本信息:number|@ohos.hiSysEvent.d.ts|
|type有变化|类名:QueryRule;<br>方法or属性:names: string[];<br>旧版本信息:|类名:QueryRule;<br>方法or属性:names: string[];<br>新版本信息:string[]|@ohos.hiSysEvent.d.ts|
|type有变化|类名:HiTraceId;<br>方法or属性:chainId: bigint;<br>旧版本信息:|类名:HiTraceId;<br>方法or属性:chainId: bigint;<br>新版本信息:bigint|@ohos.hiTraceChain.d.ts|
|type有变化|类名:HiTraceId;<br>方法or属性:spanId?: number;<br>旧版本信息:|类名:HiTraceId;<br>方法or属性:spanId?: number;<br>新版本信息:?number|@ohos.hiTraceChain.d.ts|
|type有变化|类名:HiTraceId;<br>方法or属性:parentSpanId?: number;<br>旧版本信息:|类名:HiTraceId;<br>方法or属性:parentSpanId?: number;<br>新版本信息:?number|@ohos.hiTraceChain.d.ts|
|type有变化|类名:HiTraceId;<br>方法or属性:flags?: number;<br>旧版本信息:|类名:HiTraceId;<br>方法or属性:flags?: number;<br>新版本信息:?number|@ohos.hiTraceChain.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|删除|类名:Action;<br>方法or属性:CLEAR_CLOUD_INFO|NA|@ohos.data.cloudData.d.ts|
|删除|类名:Action;<br>方法or属性:CLEAR_CLOUD_DATA_AND_INFO|NA|@ohos.data.cloudData.d.ts|
|新增|NA|类名:ClearAction;<br>方法or属性:CLEAR_CLOUD_INFO|@ohos.data.cloudData.d.ts|
|新增|NA|类名:ClearAction;<br>方法or属性:CLEAR_CLOUD_DATA_AND_INFO|@ohos.data.cloudData.d.ts|
|新增|NA|类名:Config;<br>方法or属性:static clear(<br> accountId: string,<br> appActions: { [bundleName: string]: ClearAction },<br> callback: AsyncCallback\<void><br> ): void;|@ohos.data.cloudData.d.ts|
|新增|NA|类名:Config;<br>方法or属性:static clear(accountId: string, appActions: { [bundleName: string]: ClearAction }): Promise\<void>;|@ohos.data.cloudData.d.ts|
|新增|NA|类名:preferences;<br>方法or属性:function getPreferences(context: Context, options: Options, callback: AsyncCallback\<Preferences>): void;|@ohos.data.preferences.d.ts|
|新增|NA|类名:preferences;<br>方法or属性:function getPreferences(context: Context, options: Options): Promise\<Preferences>;|@ohos.data.preferences.d.ts|
|新增|NA|类名:preferences;<br>方法or属性:function deletePreferences(context: Context, options: Options, callback: AsyncCallback\<void>): void;|@ohos.data.preferences.d.ts|
|新增|NA|类名:preferences;<br>方法or属性:function deletePreferences(context: Context, options: Options): Promise\<void>;|@ohos.data.preferences.d.ts|
|新增|NA|类名:preferences;<br>方法or属性:function removePreferencesFromCache(context: Context, options: Options, callback: AsyncCallback\<void>): void;|@ohos.data.preferences.d.ts|
|新增|NA|类名:preferences;<br>方法or属性:function removePreferencesFromCache(context: Context, options: Options): Promise\<void>;|@ohos.data.preferences.d.ts|
|新增|NA|类名:preferences;<br>方法or属性:function removePreferencesFromCacheSync(context: Context, name: string): void;|@ohos.data.preferences.d.ts|
|新增|NA|类名:Options;<br>方法or属性:name: string;|@ohos.data.preferences.d.ts|
|新增|NA|类名:Options;<br>方法or属性:dataGroupId?: string;|@ohos.data.preferences.d.ts|
|新增|NA|类名:Preferences;<br>方法or属性:getSync(key: string, defValue: ValueType): ValueType;|@ohos.data.preferences.d.ts|
|新增|NA|类名:Preferences;<br>方法or属性:getAllSync(): Object;|@ohos.data.preferences.d.ts|
|新增|NA|类名:Preferences;<br>方法or属性:hasSync(key: string): boolean;|@ohos.data.preferences.d.ts|
|新增|NA|类名:Preferences;<br>方法or属性:putSync(key: string, value: ValueType): void;|@ohos.data.preferences.d.ts|
|新增|NA|类名:Preferences;<br>方法or属性:deleteSync(key: string): void;|@ohos.data.preferences.d.ts|
|新增|NA|类名:Preferences;<br>方法or属性:clearSync(): void;|@ohos.data.preferences.d.ts|
|新增|NA|类名:Preferences;<br>方法or属性:on(type: 'multiProcessChange', callback: Callback\<{ key: string }>): void;|@ohos.data.preferences.d.ts|
|新增|NA|类名:Preferences;<br>方法or属性:off(type: 'multiProcessChange', callback?: Callback\<{ key: string }>): void;|@ohos.data.preferences.d.ts|
|新增|NA|类名:relationalStore;<br>方法or属性:type Assets = Asset[];|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:relationalStore;<br>方法or属性:type PRIKeyType = number \| string;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:relationalStore;<br>方法or属性:type UTCTime = Date;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:relationalStore;<br>方法or属性:type ModifyTime = Map\<PRIKeyType, UTCTime>;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:relationalStore;<br>方法or属性:function deleteRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback\<void>): void;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:relationalStore;<br>方法or属性:function deleteRdbStore(context: Context, config: StoreConfig): Promise\<void>;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:AssetStatus;<br>方法or属性:ASSET_NORMAL|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:AssetStatus;<br>方法or属性:ASSET_INSERT|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:AssetStatus;<br>方法or属性:ASSET_UPDATE|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:AssetStatus;<br>方法or属性:ASSET_DELETE|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:AssetStatus;<br>方法or属性:ASSET_ABNORMAL|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:AssetStatus;<br>方法or属性:ASSET_DOWNLOADING|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Asset;<br>方法or属性:name: string;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Asset;<br>方法or属性:uri: string;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Asset;<br>方法or属性:path: string;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Asset;<br>方法or属性:createTime: string;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Asset;<br>方法or属性:modifyTime: string;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Asset;<br>方法or属性:size: string;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Asset;<br>方法or属性:status?: AssetStatus;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:StoreConfig;<br>方法or属性:dataGroupId?: string;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Progress;<br>方法or属性:SYNC_BEGIN|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Progress;<br>方法or属性:SYNC_IN_PROGRESS|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Progress;<br>方法or属性:SYNC_FINISH|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Statistic;<br>方法or属性:total: number;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Statistic;<br>方法or属性:successful: number;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Statistic;<br>方法or属性:failed: number;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:Statistic;<br>方法or属性:remained: number;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:TableDetails;<br>方法or属性:upload: Statistic;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:TableDetails;<br>方法or属性:download: Statistic;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ProgressCode;<br>方法or属性:SUCCESS|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ProgressCode;<br>方法or属性:UNKNOWN_ERROR|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ProgressCode;<br>方法or属性:NETWORK_ERROR|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ProgressCode;<br>方法or属性:CLOUD_DISABLED|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ProgressCode;<br>方法or属性:LOCKED_BY_OTHERS|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ProgressCode;<br>方法or属性:RECORD_LIMIT_EXCEEDED|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ProgressCode;<br>方法or属性:NO_SPACE_FOR_ASSET|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ProgressDetails;<br>方法or属性:schedule: Progress;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ProgressDetails;<br>方法or属性:code: ProgressCode;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ProgressDetails;<br>方法or属性:details: {<br> [table: string]: TableDetails;<br> };|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:SyncMode;<br>方法or属性:SYNC_MODE_TIME_FIRST|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:SyncMode;<br>方法or属性:SYNC_MODE_NATIVE_FIRST|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:SyncMode;<br>方法or属性:SYNC_MODE_CLOUD_FIRST|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:SubscribeType;<br>方法or属性:SUBSCRIBE_TYPE_CLOUD_DETAILS|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ChangeType;<br>方法or属性:DATA_CHANGE|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ChangeType;<br>方法or属性:ASSET_CHANGE|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ChangeInfo;<br>方法or属性:table: string;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ChangeInfo;<br>方法or属性:type: ChangeType;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ChangeInfo;<br>方法or属性:inserted: Array\<string> \| Array\<number>;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ChangeInfo;<br>方法or属性:updated: Array\<string> \| Array\<number>;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ChangeInfo;<br>方法or属性:deleted: Array\<string> \| Array\<number>;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:DistributedType;<br>方法or属性:DISTRIBUTED_DEVICE|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:DistributedType;<br>方法or属性:DISTRIBUTED_CLOUD|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:DistributedConfig;<br>方法or属性:autoSync: boolean;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ResultSet;<br>方法or属性:getAsset(columnIndex: number): Asset;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:ResultSet;<br>方法or属性:getAssets(columnIndex: number): Assets;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:getModifyTime(table: string, columnName: string, primaryKeys: PRIKeyType[]): Promise\<ModifyTime>;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:getModifyTime(<br> table: string,<br> columnName: string,<br> primaryKeys: PRIKeyType[],<br> callback: AsyncCallback\<ModifyTime><br> ): void;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:setDistributedTables(tables: Array\<string>, type: DistributedType, callback: AsyncCallback\<void>): void;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:setDistributedTables(<br> tables: Array\<string>,<br> type: DistributedType,<br> config: DistributedConfig,<br> callback: AsyncCallback\<void><br> ): void;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:setDistributedTables(tables: Array\<string>, type?: DistributedType, config?: DistributedConfig): Promise\<void>;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:cloudSync(mode: SyncMode, progress: Callback\<ProgressDetails>, callback: AsyncCallback\<void>): void;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:cloudSync(mode: SyncMode, progress: Callback\<ProgressDetails>): Promise\<void>;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:cloudSync(<br> mode: SyncMode,<br> tables: string[],<br> progress: Callback\<ProgressDetails>,<br> callback: AsyncCallback\<void><br> ): void;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:cloudSync(mode: SyncMode, tables: string[], progress: Callback\<ProgressDetails>): Promise\<void>;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:on(event: 'dataChange', type: SubscribeType, observer: Callback\<Array\<string>> \| Callback\<Array\<ChangeInfo>>): void;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:on(event: string, interProcess: boolean, observer: Callback\<void>): void;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:off(<br> event: 'dataChange',<br> type: SubscribeType,<br> observer?: Callback\<Array\<string>> \| Callback\<Array\<ChangeInfo>><br> ): void;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:off(event: string, interProcess: boolean, observer?: Callback\<void>): void;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:RdbStore;<br>方法or属性:emit(event: string): void;|@ohos.data.relationalStore.d.ts|
|新增|NA|类名:UDMF;<br>方法or属性:type Options = {<br> /**<br> * indicates the target Intention<br> *<br> * @syscap SystemCapability.DistributedDataManager.UDMF.Core<br> * @since 10<br> */<br> intention?: Intention;<br><br> /**<br> * indicates the unique identifier of target UnifiedData<br> *<br> * @syscap SystemCapability.DistributedDataManager.UDMF.Core<br> * @since 10<br> */<br> key?: string;<br> };|@ohos.data.UDMF.d.ts|
|新增|NA|类名:UDMF;<br>方法or属性:function insertData(options: Options, data: UnifiedData, callback: AsyncCallback\<string>): void;|@ohos.data.UDMF.d.ts|
|新增|NA|类名:UDMF;<br>方法or属性:function insertData(options: Options, data: UnifiedData): Promise\<string>;|@ohos.data.UDMF.d.ts|
|新增|NA|类名:UDMF;<br>方法or属性:function updateData(options: Options, data: UnifiedData, callback: AsyncCallback\<void>): void;|@ohos.data.UDMF.d.ts|
|新增|NA|类名:UDMF;<br>方法or属性:function updateData(options: Options, data: UnifiedData): Promise\<void>;|@ohos.data.UDMF.d.ts|
|新增|NA|类名:UDMF;<br>方法or属性:function queryData(options: Options, callback: AsyncCallback\<Array\<UnifiedData>>): void;|@ohos.data.UDMF.d.ts|
|新增|NA|类名:UDMF;<br>方法or属性:function queryData(options: Options): Promise\<Array\<UnifiedData>>;|@ohos.data.UDMF.d.ts|
|新增|NA|类名:UDMF;<br>方法or属性:function deleteData(options: Options, callback: AsyncCallback\<Array\<UnifiedData>>): void;|@ohos.data.UDMF.d.ts|
|新增|NA|类名:UDMF;<br>方法or属性:function deleteData(options: Options): Promise\<Array\<UnifiedData>>;|@ohos.data.UDMF.d.ts|
|新增|NA|类名:UnifiedDataType;<br>方法or属性:AUDIO = 'File.Media.Audio'|@ohos.data.UDMF.d.ts|
|新增|NA|类名:Audio;<br>方法or属性:audioUri: string;|@ohos.data.UDMF.d.ts|
|新增|NA|类名:Intention;<br>方法or属性:DATA_HUB = 'DataHub'|@ohos.data.UDMF.d.ts|
|错误码有变化|类名:DataAbilityPredicates;<br>方法or属性:limitAs(value: number): DataAbilityPredicates;<br>旧版本信息:IllegalPredicateException|类名:DataAbilityPredicates;<br>方法or属性:limitAs(value: number): DataAbilityPredicates;<br>新版本信息:|@ohos.data.dataAbility.d.ts|
|错误码有变化|类名:relationalStore;<br>方法or属性:function getRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback\<RdbStore>): void;<br>旧版本信息:401,14800000,14800010,14800011|类名:relationalStore;<br>方法or属性:function getRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback\<RdbStore>): void;<br>新版本信息:401,14800000,14800010,14800011,14801001,14801002|@ohos.data.relationalStore.d.ts|
|错误码有变化|类名:relationalStore;<br>方法or属性:function getRdbStore(context: Context, config: StoreConfig): Promise\<RdbStore>;<br>旧版本信息:401,14800000,14800010,14800011|类名:relationalStore;<br>方法or属性:function getRdbStore(context: Context, config: StoreConfig): Promise\<RdbStore>;<br>新版本信息:401,14800000,14800010,14800011,14801001,14801002|@ohos.data.relationalStore.d.ts|
|访问级别有变化|类名:dataSharePredicates;<br>方法or属性:declare dataSharePredicates<br>旧版本信息:systemapi|类名:dataSharePredicates;<br>方法or属性:declare dataSharePredicates<br>新版本信息:|@ohos.data.dataSharePredicates.d.ts|
|访问级别有变化|类名:DataSharePredicates;<br>方法or属性:class DataSharePredicates<br>旧版本信息:systemapi|类名:DataSharePredicates;<br>方法or属性:class DataSharePredicates<br>新版本信息:|@ohos.data.dataSharePredicates.d.ts|
|访问级别有变化|类名:DataSharePredicates;<br>方法or属性:equalTo(field: string, value: ValueType): DataSharePredicates;<br>旧版本信息:systemapi|类名:DataSharePredicates;<br>方法or属性:equalTo(field: string, value: ValueType): DataSharePredicates;<br>新版本信息:|@ohos.data.dataSharePredicates.d.ts|
|访问级别有变化|类名:DataSharePredicates;<br>方法or属性:and(): DataSharePredicates;<br>旧版本信息:systemapi|类名:DataSharePredicates;<br>方法or属性:and(): DataSharePredicates;<br>新版本信息:|@ohos.data.dataSharePredicates.d.ts|
|访问级别有变化|类名:DataSharePredicates;<br>方法or属性:orderByAsc(field: string): DataSharePredicates;<br>旧版本信息:systemapi|类名:DataSharePredicates;<br>方法or属性:orderByAsc(field: string): DataSharePredicates;<br>新版本信息:|@ohos.data.dataSharePredicates.d.ts|
|访问级别有变化|类名:DataSharePredicates;<br>方法or属性:orderByDesc(field: string): DataSharePredicates;<br>旧版本信息:systemapi|类名:DataSharePredicates;<br>方法or属性:orderByDesc(field: string): DataSharePredicates;<br>新版本信息:|@ohos.data.dataSharePredicates.d.ts|
|访问级别有变化|类名:DataSharePredicates;<br>方法or属性:limit(total: number, offset: number): DataSharePredicates;<br>旧版本信息:systemapi|类名:DataSharePredicates;<br>方法or属性:limit(total: number, offset: number): DataSharePredicates;<br>新版本信息:|@ohos.data.dataSharePredicates.d.ts|
|访问级别有变化|类名:DataSharePredicates;<br>方法or属性:in(field: string, value: Array\<ValueType>): DataSharePredicates;<br>旧版本信息:systemapi|类名:DataSharePredicates;<br>方法or属性:in(field: string, value: Array\<ValueType>): DataSharePredicates;<br>新版本信息:|@ohos.data.dataSharePredicates.d.ts|
|访问级别有变化|类名:sourcefile;<br>方法or属性:export type ValueType = number \| string \| boolean;<br>旧版本信息:systemapi|类名:sourcefile;<br>方法or属性:export type ValueType = number \| string \| boolean;<br>新版本信息:|@ohos.data.ValuesBucket.d.ts|
|访问级别有变化|类名:sourcefile;<br>方法or属性:export type ValuesBucket = {<br><br> [key: string]: ValueType \| Uint8Array \| null;<br><br>};<br>旧版本信息:systemapi|类名:sourcefile;<br>方法or属性:export type ValuesBucket = {<br><br> [key: string]: ValueType \| Uint8Array \| null;<br><br>};<br>新版本信息:|@ohos.data.ValuesBucket.d.ts|
|type有变化|类名:DataShareExtensionAbility;<br>方法or属性:context: ExtensionContext;<br>旧版本信息:|类名:DataShareExtensionAbility;<br>方法or属性:context: ExtensionContext;<br>新版本信息:ExtensionContext|@ohos.application.DataShareExtensionAbility.d.ts|
|函数有变化|类名:DataShareExtensionAbility;<br>方法or属性:context?: ExtensionContext;|类名:DataShareExtensionAbility;<br>方法or属性:context: ExtensionContext;|@ohos.application.DataShareExtensionAbility.d.ts|
|函数有变化|类名:PublishedItem;<br>方法or属性:data: string \| Ashmem;|类名:PublishedItem;<br>方法or属性:data: string \| ArrayBuffer;|@ohos.data.dataShare.d.ts|
|函数有变化|类名:relationalStore;<br>方法or属性:type ValueType = null \| number \| string \| boolean \| Uint8Array;|类名:relationalStore;<br>方法or属性:type ValueType = null \| number \| string \| boolean \| Uint8Array \| Asset \| Assets;|@ohos.data.relationalStore.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:agent;<br>方法or属性:function create(context: BaseContext, config: Config, callback: AsyncCallback\<Task>): void;|@ohos.request.d.ts|
|新增|NA|类名:agent;<br>方法or属性:function create(context: BaseContext, config: Config): Promise\<Task>;|@ohos.request.d.ts|
|新增|NA|类名:agent;<br>方法or属性:function remove(id: string, callback: AsyncCallback\<void>): void;|@ohos.request.d.ts|
|新增|NA|类名:agent;<br>方法or属性:function remove(id: string): Promise\<void>;|@ohos.request.d.ts|
|新增|NA|类名:agent;<br>方法or属性:function show(id: string, callback: AsyncCallback\<TaskInfo>): void;|@ohos.request.d.ts|
|新增|NA|类名:agent;<br>方法or属性:function show(id: string): Promise\<TaskInfo>;|@ohos.request.d.ts|
|新增|NA|类名:agent;<br>方法or属性:function touch(id: string, token: string, callback: AsyncCallback\<TaskInfo>): void;|@ohos.request.d.ts|
|新增|NA|类名:agent;<br>方法or属性:function touch(id: string, token: string): Promise\<TaskInfo>;|@ohos.request.d.ts|
|新增|NA|类名:agent;<br>方法or属性:function search(filter: Filter, callback: AsyncCallback\<Array\<string>>): void;|@ohos.request.d.ts|
|新增|NA|类名:agent;<br>方法or属性:function search(filter: Filter): Promise\<Array\<string>>;|@ohos.request.d.ts|
|新增|NA|类名:agent;<br>方法or属性:function query(id: string, callback: AsyncCallback\<TaskInfo>): void;|@ohos.request.d.ts|
|新增|NA|类名:agent;<br>方法or属性:function query(id: string): Promise\<TaskInfo>;|@ohos.request.d.ts|
|新增|NA|类名:Action;<br>方法or属性:DOWNLOAD|@ohos.request.d.ts|
|新增|NA|类名:Action;<br>方法or属性:UPLOAD|@ohos.request.d.ts|
|新增|NA|类名:Mode;<br>方法or属性:BACKGROUND|@ohos.request.d.ts|
|新增|NA|类名:Mode;<br>方法or属性:FOREGROUND|@ohos.request.d.ts|
|新增|NA|类名:Network;<br>方法or属性:ANY|@ohos.request.d.ts|
|新增|NA|类名:Network;<br>方法or属性:WIFI|@ohos.request.d.ts|
|新增|NA|类名:Network;<br>方法or属性:CELLULAR|@ohos.request.d.ts|
|新增|NA|类名:FileSpec;<br>方法or属性:path: string;|@ohos.request.d.ts|
|新增|NA|类名:FileSpec;<br>方法or属性:mimeType?: string;|@ohos.request.d.ts|
|新增|NA|类名:FileSpec;<br>方法or属性:filename?: string;|@ohos.request.d.ts|
|新增|NA|类名:FileSpec;<br>方法or属性:extras?: object;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:extras?: object;|@ohos.request.d.ts|
|新增|NA|类名:FormItem;<br>方法or属性:name: string;|@ohos.request.d.ts|
|新增|NA|类名:FormItem;<br>方法or属性:value: string \| FileSpec \| Array\<FileSpec>;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:action: Action;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:url: string;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:title?: string;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:description?: string;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:mode?: Mode;|@ohos.request.d.ts|
|新增|NA|类名:Filter;<br>方法or属性:mode?: Mode;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:overwrite?: boolean;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:method?: string;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:headers?: object;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:data?: string \| Array\<FormItem>;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:saveas?: string;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:network?: Network;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:metered?: boolean;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:roaming?: boolean;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:retry?: boolean;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:redirect?: boolean;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:index?: number;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:begins?: number;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:ends?: number;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:gauge?: boolean;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:precise?: boolean;|@ohos.request.d.ts|
|新增|NA|类名:Config;<br>方法or属性:token?: string;|@ohos.request.d.ts|
|新增|NA|类名:State;<br>方法or属性:INITIALIZED = 0x00|@ohos.request.d.ts|
|新增|NA|类名:State;<br>方法or属性:WAITING = 0x10|@ohos.request.d.ts|
|新增|NA|类名:State;<br>方法or属性:RUNNING = 0x20|@ohos.request.d.ts|
|新增|NA|类名:State;<br>方法or属性:RETRYING = 0x21|@ohos.request.d.ts|
|新增|NA|类名:State;<br>方法or属性:PAUSED = 0x30|@ohos.request.d.ts|
|新增|NA|类名:State;<br>方法or属性:STOPPED = 0x31|@ohos.request.d.ts|
|新增|NA|类名:State;<br>方法or属性:COMPLETED = 0x40|@ohos.request.d.ts|
|新增|NA|类名:State;<br>方法or属性:FAILED = 0x41|@ohos.request.d.ts|
|新增|NA|类名:State;<br>方法or属性:REMOVED = 0x50|@ohos.request.d.ts|
|新增|NA|类名:Progress;<br>方法or属性:readonly state: State;|@ohos.request.d.ts|
|新增|NA|类名:Progress;<br>方法or属性:readonly index: number;|@ohos.request.d.ts|
|新增|NA|类名:Progress;<br>方法or属性:readonly processed: number;|@ohos.request.d.ts|
|新增|NA|类名:Progress;<br>方法or属性:readonly sizes: Array\<number>;|@ohos.request.d.ts|
|新增|NA|类名:Progress;<br>方法or属性:readonly extras?: object;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly extras?: object;|@ohos.request.d.ts|
|新增|NA|类名:Faults;<br>方法or属性:OTHERS = 0xFF|@ohos.request.d.ts|
|新增|NA|类名:Faults;<br>方法or属性:DISCONNECTED = 0x00|@ohos.request.d.ts|
|新增|NA|类名:Faults;<br>方法or属性:TIMEOUT = 0x10|@ohos.request.d.ts|
|新增|NA|类名:Faults;<br>方法or属性:PROTOCOL = 0x20|@ohos.request.d.ts|
|新增|NA|类名:Faults;<br>方法or属性:FSIO = 0x40|@ohos.request.d.ts|
|新增|NA|类名:Filter;<br>方法or属性:bundle?: string;|@ohos.request.d.ts|
|新增|NA|类名:Filter;<br>方法or属性:before?: number;|@ohos.request.d.ts|
|新增|NA|类名:Filter;<br>方法or属性:after?: number;|@ohos.request.d.ts|
|新增|NA|类名:Filter;<br>方法or属性:state?: State;|@ohos.request.d.ts|
|新增|NA|类名:Filter;<br>方法or属性:action?: Action;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly uid?: string;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly bundle?: string;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly saveas?: string;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly url?: string;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly data?: string \| Array\<FormItem>;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly tid: string;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:readonly tid: string;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly title: string;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly description: string;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly action: Action;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly mode: Mode;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly mimeType: string;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly progress: Progress;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly gauge: boolean;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly ctime: number;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly mtime: number;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly retry: boolean;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly tries: number;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly faults: Faults;|@ohos.request.d.ts|
|新增|NA|类名:TaskInfo;<br>方法or属性:readonly reason: string;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:config: Config;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:on(event: 'progress', callback: (progress: Progress) => void): void;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:on(event: 'completed', callback: (progress: Progress) => void): void;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:on(event: 'failed', callback: (progress: Progress) => void): void;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:off(event: 'progress', callback?: (progress: Progress) => void): void;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:off(event: 'completed', callback?: (progress: Progress) => void): void;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:off(event: 'failed', callback?: (progress: Progress) => void): void;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:start(callback: AsyncCallback\<void>): void;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:start(): Promise\<void>;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:pause(callback: AsyncCallback\<void>): void;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:pause(): Promise\<void>;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:resume(callback: AsyncCallback\<void>): void;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:resume(): Promise\<void>;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:stop(callback: AsyncCallback\<void>): void;|@ohos.request.d.ts|
|新增|NA|类名:Task;<br>方法or属性:stop(): Promise\<void>;|@ohos.request.d.ts|
|权限有变化|类名:request;<br>方法or属性:declare request<br>旧版本信息:ohos.permission.INTERNET|类名:request;<br>方法or属性:declare request<br>新版本信息:|@ohos.request.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:DriverExtensionAbility;<br>方法or属性:context: DriverExtensionContext;|@ohos.app.ability.DriverExtensionAbility.d.ts|
|新增|NA|类名:DriverExtensionAbility;<br>方法or属性:onInit(want: Want): void;|@ohos.app.ability.DriverExtensionAbility.d.ts|
|新增|NA|类名:DriverExtensionAbility;<br>方法or属性:onRelease(): void;|@ohos.app.ability.DriverExtensionAbility.d.ts|
|新增|NA|类名:DriverExtensionAbility;<br>方法or属性:onConnect(want: Want): rpc.RemoteObject \| Promise\<rpc.RemoteObject>;|@ohos.app.ability.DriverExtensionAbility.d.ts|
|新增|NA|类名:DriverExtensionAbility;<br>方法or属性:onDisconnect(want: Want): void \| Promise\<void>;|@ohos.app.ability.DriverExtensionAbility.d.ts|
|新增|NA|类名:DriverExtensionAbility;<br>方法or属性:onDump(params: Array\<string>): Array\<string>;|@ohos.app.ability.DriverExtensionAbility.d.ts|
|新增|NA|类名:deviceManager;<br>方法or属性:function queryDevices(busType?: number): Array\<Readonly\<Device>>;|@ohos.driver.deviceManager.d.ts|
|新增|NA|类名:deviceManager;<br>方法or属性:function bindDevice(deviceId: number, onDisconnect: AsyncCallback\<number>,<br><br> callback: AsyncCallback\<{deviceId: number, remote: rpc.IRemoteObject}>): void;|@ohos.driver.deviceManager.d.ts|
|新增|NA|类名:deviceManager;<br>方法or属性:function bindDevice(deviceId: number, onDisconnect: AsyncCallback\<number>): Promise\<{deviceId: number,<br><br> remote: rpc.IRemoteObject}>;|@ohos.driver.deviceManager.d.ts|
|新增|NA|类名:deviceManager;<br>方法or属性:function unbindDevice(deviceId: number, callback: AsyncCallback\<number>): void;|@ohos.driver.deviceManager.d.ts|
|新增|NA|类名:deviceManager;<br>方法or属性:function unbindDevice(deviceId: number): Promise\<number>;|@ohos.driver.deviceManager.d.ts|
|新增|NA|类名:BusType;<br>方法or属性:USB = 1|@ohos.driver.deviceManager.d.ts|
|新增|NA|类名:Device;<br>方法or属性:busType: BusType;|@ohos.driver.deviceManager.d.ts|
|新增|NA|类名:Device;<br>方法or属性:deviceId: number;|@ohos.driver.deviceManager.d.ts|
|新增|NA|类名:Device;<br>方法or属性:description: string;|@ohos.driver.deviceManager.d.ts|
|新增|NA|类名:USBDevice;<br>方法or属性:vendorId: number;|@ohos.driver.deviceManager.d.ts|
|新增|NA|类名:USBDevice;<br>方法or属性:productId: number;|@ohos.driver.deviceManager.d.ts|
|新增|NA|类名:DriverExtensionContext;<br>方法or属性:updateDriverState(): void;|DriverExtensionContext.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:geoLocationManager;<br>方法or属性:function on(type: 'locatingRequiredDataChange', config: LocatingRequiredDataConfig, callback: Callback\<Array\<LocatingRequiredData>>): void;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:geoLocationManager;<br>方法or属性:function off(type: 'locatingRequiredDataChange', callback?: Callback\<Array\<LocatingRequiredData>>): void;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:geoLocationManager;<br>方法or属性:function getLocatingRequiredData(config: LocatingRequiredDataConfig): Promise\<Array\<LocatingRequiredData>>;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredDataConfig;<br>方法or属性:type: LocatingRequiredDataType;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredDataConfig;<br>方法or属性:needStartScan: boolean;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredDataConfig;<br>方法or属性:scanInterval?: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredDataConfig;<br>方法or属性:scanTimeout?: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredData;<br>方法or属性:wifiData?: WifiScanInfo;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredData;<br>方法or属性:bluetoothData?: BluetoothScanInfo;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:WifiScanInfo;<br>方法or属性:ssid: string;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:WifiScanInfo;<br>方法or属性:bssid: string;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:WifiScanInfo;<br>方法or属性:rssi: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:BluetoothScanInfo;<br>方法or属性:rssi: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:WifiScanInfo;<br>方法or属性:frequency: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:WifiScanInfo;<br>方法or属性:timestamp: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:BluetoothScanInfo;<br>方法or属性:timestamp: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:BluetoothScanInfo;<br>方法or属性:deviceName: string;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:BluetoothScanInfo;<br>方法or属性:macAddress: string;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredDataType;<br>方法or属性:WIFI = 1|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredDataType;<br>方法or属性:BLUETOOTH|@ohos.geoLocationManager.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:SuggestionType;<br>方法or属性:SUGGESTION_TYPE_NONE = 0|@ohos.i18n.d.ts|
|新增|NA|类名:SuggestionType;<br>方法or属性:SUGGESTION_TYPE_RELATED = 1|@ohos.i18n.d.ts|
|新增|NA|类名:SuggestionType;<br>方法or属性:SUGGESTION_TYPE_SIM = 2|@ohos.i18n.d.ts|
|新增|NA|类名:SortOptions;<br>方法or属性:locale?: string;|@ohos.i18n.d.ts|
|新增|NA|类名:SortOptions;<br>方法or属性:isUseLocalName?: boolean;|@ohos.i18n.d.ts|
|新增|NA|类名:SortOptions;<br>方法or属性:isSuggestedFirst?: boolean;|@ohos.i18n.d.ts|
|新增|NA|类名:LocaleItem;<br>方法or属性:id: string;|@ohos.i18n.d.ts|
|新增|NA|类名:LocaleItem;<br>方法or属性:suggestionType: SuggestionType;|@ohos.i18n.d.ts|
|新增|NA|类名:LocaleItem;<br>方法or属性:displayName: string;|@ohos.i18n.d.ts|
|新增|NA|类名:LocaleItem;<br>方法or属性:localName?: string;|@ohos.i18n.d.ts|
|新增|NA|类名:TimeZoneCityItem;<br>方法or属性:zoneId: string;|@ohos.i18n.d.ts|
|新增|NA|类名:TimeZoneCityItem;<br>方法or属性:cityId: string;|@ohos.i18n.d.ts|
|新增|NA|类名:TimeZoneCityItem;<br>方法or属性:cityDisplayName: string;|@ohos.i18n.d.ts|
|新增|NA|类名:TimeZoneCityItem;<br>方法or属性:offset: number;|@ohos.i18n.d.ts|
|新增|NA|类名:TimeZoneCityItem;<br>方法or属性:zoneDisplayName: string;|@ohos.i18n.d.ts|
|新增|NA|类名:TimeZoneCityItem;<br>方法or属性:rawOffset?: number;|@ohos.i18n.d.ts|
|新增|NA|类名:SystemLocaleManager;<br>方法or属性:constructor();|@ohos.i18n.d.ts|
|新增|NA|类名:SystemLocaleManager;<br>方法or属性:getLanguageInfoArray(languages: Array\<string>, options?: SortOptions): Array\<LocaleItem>;|@ohos.i18n.d.ts|
|新增|NA|类名:SystemLocaleManager;<br>方法or属性:getRegionInfoArray(regions: Array\<string>, options?: SortOptions): Array\<LocaleItem>;|@ohos.i18n.d.ts|
|新增|NA|类名:SystemLocaleManager;<br>方法or属性:static getTimeZoneCityItemArray(): Array\<TimeZoneCityItem>;|@ohos.i18n.d.ts|
|新增|NA|类名:resourceManager;<br>方法or属性:export function getSystemResourceManager(): ResourceManager;|@ohos.resourceManager.d.ts|
|新增|NA|类名:ResourceManager;<br>方法or属性:getColor(resId: number, callback: _AsyncCallback\<number>): void;|@ohos.resourceManager.d.ts|
|新增|NA|类名:ResourceManager;<br>方法or属性:getColor(resId: number): Promise\<number>;|@ohos.resourceManager.d.ts|
|新增|NA|类名:ResourceManager;<br>方法or属性:getColor(resource: Resource, callback: _AsyncCallback\<number>): void;|@ohos.resourceManager.d.ts|
|新增|NA|类名:ResourceManager;<br>方法or属性:getColor(resource: Resource): Promise\<number>;|@ohos.resourceManager.d.ts|
|新增|NA|类名:ResourceManager;<br>方法or属性:getColorByName(resName: string, callback: _AsyncCallback\<number>): void;|@ohos.resourceManager.d.ts|
|新增|NA|类名:ResourceManager;<br>方法or属性:getColorByName(resName: string): Promise\<number>;|@ohos.resourceManager.d.ts|
|新增|NA|类名:ResourceManager;<br>方法or属性:getColorSync(resId: number) : number;|@ohos.resourceManager.d.ts|
|新增|NA|类名:ResourceManager;<br>方法or属性:getColorSync(resource: Resource) : number;|@ohos.resourceManager.d.ts|
|新增|NA|类名:ResourceManager;<br>方法or属性:getColorByNameSync(resName: string) : number;|@ohos.resourceManager.d.ts|
|新增|NA|类名:ResourceManager;<br>方法or属性:addResource(path: string) : void;|@ohos.resourceManager.d.ts|
|新增|NA|类名:ResourceManager;<br>方法or属性:removeResource(path: string) : void;|@ohos.resourceManager.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|删除|类名:InputMethodSetting;<br>方法or属性:on(type: 'imeShow' \| 'imeHide', callback: (info: Array\<InputWindowInfo>) => void): void;|NA|@ohos.inputMethod.d.ts|
|删除|类名:InputMethodSetting;<br>方法or属性:off(type: 'imeShow' \| 'imeHide', callback?: (info: Array\<InputWindowInfo>) => void): void;|NA|@ohos.inputMethod.d.ts|
|删除|类名:InputMethodController;<br>方法or属性:on(type: 'deleteLeft' \| 'deleteRight', callback: (length: number) => void): void;|NA|@ohos.inputMethod.d.ts|
|删除|类名:InputMethodController;<br>方法or属性:on(type: 'sendKeyboardStatus', callback: (keyBoardStatus: KeyboardStatus) => void): void;|NA|@ohos.inputMethod.d.ts|
|删除|类名:InputMethodController;<br>方法or属性:off(type: 'selectByRange'): void;|NA|@ohos.inputMethod.d.ts|
|删除|类名:InputMethodController;<br>方法or属性:off(type: 'selectByMovement'): void;|NA|@ohos.inputMethod.d.ts|
|删除|类名:InputMethodController;<br>方法or属性:off(type: 'insertText'): void;|NA|@ohos.inputMethod.d.ts|
|删除|类名:InputMethodController;<br>方法or属性:off(type: 'deleteLeft' \| 'deleteRight'): void;|NA|@ohos.inputMethod.d.ts|
|删除|类名:InputMethodController;<br>方法or属性:off(type: 'sendKeyboardStatus'): void;|NA|@ohos.inputMethod.d.ts|
|删除|类名:InputMethodController;<br>方法or属性:off(type: 'sendFunctionKey'): void;|NA|@ohos.inputMethod.d.ts|
|删除|类名:InputMethodController;<br>方法or属性:off(type: 'moveCursor'): void;|NA|@ohos.inputMethod.d.ts|
|删除|类名:InputMethodController;<br>方法or属性:off(type: 'handleExtendAction'): void;|NA|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodSetting;<br>方法or属性:on(type: 'imeShow', callback: (info: Array\<InputWindowInfo>) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodSetting;<br>方法or属性:on(type: 'imeHide', callback: (info: Array\<InputWindowInfo>) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodSetting;<br>方法or属性:off(type: 'imeShow', callback?: (info: Array\<InputWindowInfo>) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodSetting;<br>方法or属性:off(type: 'imeHide', callback?: (info: Array\<InputWindowInfo>) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:on(type: 'deleteLeft', callback: (length: number) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:on(type: 'deleteRight', callback: (length: number) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:on(type: 'sendKeyboardStatus', callback: (keyboardStatus: KeyboardStatus) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:on(type: 'getLeftTextOfCursor', callback: (length: number) => string): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:on(type: 'getRightTextOfCursor', callback: (length: number) => string): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:on(type: 'getTextIndexAtCursor', callback: () => number): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'selectByRange', callback?: Callback\<Range>): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'selectByMovement', callback?: Callback\<Movement>): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'insertText', callback?: (text: string) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'deleteLeft', callback?: (length: number) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'deleteRight', callback?: (length: number) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'sendKeyboardStatus', callback?: (keyboardStatus: KeyboardStatus) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'sendFunctionKey', callback?: (functionKey: FunctionKey) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'moveCursor', callback?: (direction: Direction) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'handleExtendAction', callback?: (action: ExtendAction) => void): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'getLeftTextOfCursor', callback?: (length: number) => string): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'getRightTextOfCursor', callback?: (length: number) => string): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'getTextIndexAtCursor', callback?: () => number): void;|@ohos.inputMethod.d.ts|
|新增|NA|类名:TextConfig;<br>方法or属性:cursorInfo?: CursorInfo;|@ohos.inputMethod.d.ts|
|新增|NA|类名:TextConfig;<br>方法or属性:selection?: Range;|@ohos.inputMethod.d.ts|
|新增|NA|类名:TextConfig;<br>方法or属性:windowId?: number;|@ohos.inputMethod.d.ts|
|新增|NA|类名:KeyboardDelegate;<br>方法or属性:on(type: 'keyEvent', callback: (event: InputKeyEvent) => boolean): void;|@ohos.inputMethodEngine.d.ts|
|新增|NA|类名:KeyboardDelegate;<br>方法or属性:on(type: 'editorAttributeChanged', callback: (attr: EditorAttribute) => void): void;|@ohos.inputMethodEngine.d.ts|
|新增|NA|类名:KeyboardDelegate;<br>方法or属性:off(type: 'keyEvent', callback?: (event: InputKeyEvent) => boolean): void;|@ohos.inputMethodEngine.d.ts|
|新增|NA|类名:KeyboardDelegate;<br>方法or属性:off(type: 'editorAttributeChanged', callback?: (attr: EditorAttribute) => void): void;|@ohos.inputMethodEngine.d.ts|
|新增|NA|类名:wallpaper;<br>方法or属性:function setCustomWallpaper(source: string, wallpaperType: WallpaperType, callback: AsyncCallback\<void>): void;|@ohos.wallpaper.d.ts|
|新增|NA|类名:wallpaper;<br>方法or属性:function setCustomWallpaper(source: string, wallpaperType: WallpaperType): Promise\<void>;|@ohos.wallpaper.d.ts|
|新增|NA|类名:WallpaperExtensionAbility;<br>方法or属性:onCreate(want: object): void;|@ohos.WallpaperExtensionAbility.d.ts|
|新增|NA|类名:WallpaperExtensionAbility;<br>方法or属性:onWallpaperChange(wallpaperType: number): void;|@ohos.WallpaperExtensionAbility.d.ts|
|新增|NA|类名:WallpaperExtensionAbility;<br>方法or属性:onDestroy(): void;|@ohos.WallpaperExtensionAbility.d.ts|
|错误码有变化|类名:wallpaper;<br>方法or属性:function off(<br><br> type: 'wallpaperChange',<br><br> callback?: (wallpaperType: WallpaperType, resourceType: WallpaperResourceType, uri?: string) => void<br><br> ): void;<br>旧版本信息:202|类名:wallpaper;<br>方法or属性:function off(<br><br> type: 'wallpaperChange',<br><br> callback?: (wallpaperType: WallpaperType, resourceType: WallpaperResourceType, uri?: string) => void<br><br> ): void;<br>新版本信息:401,202|@ohos.wallpaper.d.ts|
|type有变化|类名:InputMethodProperty;<br>方法or属性:readonly labelId?: number;<br>旧版本信息:|类名:InputMethodProperty;<br>方法or属性:readonly labelId?: number;<br>新版本信息:?number|@ohos.inputMethod.d.ts|
|type有变化|类名:InputMethodProperty;<br>方法or属性:readonly iconId?: number;<br>旧版本信息:|类名:InputMethodProperty;<br>方法or属性:readonly iconId?: number;<br>新版本信息:?number|@ohos.inputMethod.d.ts|
|type有变化|类名:Movement;<br>方法or属性:direction: Direction;<br>旧版本信息:number|类名:Movement;<br>方法or属性:direction: Direction;<br>新版本信息:Direction|@ohos.inputMethod.d.ts|
|type有变化|类名:TextConfig;<br>方法or属性:inputAttribute: InputAttribute;<br>旧版本信息:|类名:TextConfig;<br>方法or属性:inputAttribute: InputAttribute;<br>新版本信息:InputAttribute|@ohos.inputMethod.d.ts|
|type有变化|类名:Movement;<br>方法or属性:direction: Direction;<br>旧版本信息:number|类名:Movement;<br>方法or属性:direction: Direction;<br>新版本信息:Direction|@ohos.inputMethodEngine.d.ts|
|type有变化|类名:InputMethodSubtype;<br>方法or属性:readonly labelId?: number;<br>旧版本信息:|类名:InputMethodSubtype;<br>方法or属性:readonly labelId?: number;<br>新版本信息:?number|@ohos.InputMethodSubtype.d.ts|
|函数有变化|类名:Panel;<br>方法or属性:on(type: 'show' \| 'hide', callback: () => void): void;|类名:Panel;<br>方法or属性:on(type: 'show', callback: () => void): void;|@ohos.inputMethodEngine.d.ts|
|函数有变化|类名:Panel;<br>方法or属性:on(type: 'show' \| 'hide', callback: () => void): void;|类名:Panel;<br>方法or属性:on(type: 'hide', callback: () => void): void;|@ohos.inputMethodEngine.d.ts|
|函数有变化|类名:Panel;<br>方法or属性:off(type: 'show' \| 'hide', callback?: () => void): void;|类名:Panel;<br>方法or属性:off(type: 'show', callback?: () => void): void;|@ohos.inputMethodEngine.d.ts|
|函数有变化|类名:Panel;<br>方法or属性:off(type: 'show' \| 'hide', callback?: () => void): void;|类名:Panel;<br>方法or属性:off(type: 'hide', callback?: () => void): void;|@ohos.inputMethodEngine.d.ts|
|函数有变化|类名:wallpaper;<br>方法or属性:function on(<br><br> type: 'wallpaperChange',<br><br> callback: (wallpaperType: WallpaperType, resourceType: WallpaperResourceType) => void<br><br> ): void;|类名:wallpaper;<br>方法or属性:function on(<br><br> type: 'wallpaperChange',<br><br> callback: (wallpaperType: WallpaperType, resourceType: WallpaperResourceType, uri?: string) => void<br><br> ): void;|@ohos.wallpaper.d.ts|
|函数有变化|类名:wallpaper;<br>方法or属性:function off(<br><br> type: 'wallpaperChange',<br><br> callback?: (wallpaperType: WallpaperType, resourceType: WallpaperResourceType) => void<br><br> ): void;|类名:wallpaper;<br>方法or属性:function off(<br><br> type: 'wallpaperChange',<br><br> callback?: (wallpaperType: WallpaperType, resourceType: WallpaperResourceType, uri?: string) => void<br><br> ): void;|@ohos.wallpaper.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:CooperateMsg;<br>方法or属性:COOPERATE_SESSION_DISCONNECTED = 7|@ohos.cooperate.d.ts|
|新增|NA|类名:dragInteraction;<br>方法or属性:function on(type: 'drag', callback: Callback\<DragState>): void;|@ohos.deviceStatus.dragInteraction.d.ts|
|新增|NA|类名:dragInteraction;<br>方法or属性:function off(type: 'drag', callback?: Callback\<DragState>): void;|@ohos.deviceStatus.dragInteraction.d.ts|
|新增|NA|类名:DragState;<br>方法or属性:MSG_DRAG_STATE_START = 1|@ohos.deviceStatus.dragInteraction.d.ts|
|新增|NA|类名:DragState;<br>方法or属性:MSG_DRAG_STATE_STOP = 2|@ohos.deviceStatus.dragInteraction.d.ts|
|新增|NA|类名:DragState;<br>方法or属性:MSG_DRAG_STATE_CANCEL = 3|@ohos.deviceStatus.dragInteraction.d.ts|
|函数有变化|类名:CooperateMsg;<br>方法or属性:COOPERATE_PREPARE|类名:CooperateMsg;<br>方法or属性:COOPERATE_PREPARE = 0|@ohos.cooperate.d.ts|
|函数有变化|类名:CooperateMsg;<br>方法or属性:COOPERATE_UNPREPARE|类名:CooperateMsg;<br>方法or属性:COOPERATE_UNPREPARE = 1|@ohos.cooperate.d.ts|
|函数有变化|类名:CooperateMsg;<br>方法or属性:COOPERATE_ACTIVATE|类名:CooperateMsg;<br>方法or属性:COOPERATE_ACTIVATE = 2|@ohos.cooperate.d.ts|
|函数有变化|类名:CooperateMsg;<br>方法or属性:COOPERATE_ACTIVATE_SUCCESS|类名:CooperateMsg;<br>方法or属性:COOPERATE_ACTIVATE_SUCCESS = 3|@ohos.cooperate.d.ts|
|函数有变化|类名:CooperateMsg;<br>方法or属性:COOPERATE_ACTIVATE_FAIL|类名:CooperateMsg;<br>方法or属性:COOPERATE_ACTIVATE_FAIL = 4|@ohos.cooperate.d.ts|
|函数有变化|类名:CooperateMsg;<br>方法or属性:COOPERATE_DEACTIVATE_SUCCESS|类名:CooperateMsg;<br>方法or属性:COOPERATE_DEACTIVATE_SUCCESS = 5|@ohos.cooperate.d.ts|
|函数有变化|类名:CooperateMsg;<br>方法or属性:COOPERATE_DEACTIVATE_FAIL|类名:CooperateMsg;<br>方法or属性:COOPERATE_DEACTIVATE_FAIL = 6|@ohos.cooperate.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:ResourceType;<br>方法or属性:RUNNING_LOCK = 1 \<\< 7|@ohos.resourceschedule.backgroundTaskManager.d.ts|
|新增|NA|类名:ResourceType;<br>方法or属性:SENSOR = 1 \<\< 8|@ohos.resourceschedule.backgroundTaskManager.d.ts|
|废弃版本有变化|类名:particleAbility;<br>方法or属性:function startBackgroundRunning(id: number, request: NotificationRequest): Promise\<void>;<br>旧版本信息:|类名:particleAbility;<br>方法or属性:function startBackgroundRunning(id: number, request: NotificationRequest): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.resourceschedule.backgroundTaskManager/backgroundTaskManager#startBackgroundRunning|@ohos.ability.particleAbility.d.ts|
|废弃版本有变化|类名:particleAbility;<br>方法or属性:function cancelBackgroundRunning(): Promise\<void>;<br>旧版本信息:|类名:particleAbility;<br>方法or属性:function cancelBackgroundRunning(): Promise\<void>;<br>新版本信息:9<br>代替接口: ohos.resourceschedule.backgroundTaskManager/backgroundTaskManager#stopBackgroundRunning|@ohos.ability.particleAbility.d.ts|
|权限有变化|类名:particleAbility;<br>方法or属性:function startBackgroundRunning(id: number, request: NotificationRequest): Promise\<void>;<br>旧版本信息:|类名:particleAbility;<br>方法or属性:function startBackgroundRunning(id: number, request: NotificationRequest): Promise\<void>;<br>新版本信息:ohos.permission.KEEP_BACKGROUND_RUNNING|@ohos.ability.particleAbility.d.ts|
|model有变化|类名:particleAbility;<br>方法or属性:function startBackgroundRunning(id: number, request: NotificationRequest): Promise\<void>;<br>旧版本信息:|类名:particleAbility;<br>方法or属性:function startBackgroundRunning(id: number, request: NotificationRequest): Promise\<void>;<br>新版本信息:FAModelOnly|@ohos.ability.particleAbility.d.ts|
|model有变化|类名:particleAbility;<br>方法or属性:function cancelBackgroundRunning(): Promise\<void>;<br>旧版本信息:|类名:particleAbility;<br>方法or属性:function cancelBackgroundRunning(): Promise\<void>;<br>新版本信息:FAModelOnly|@ohos.ability.particleAbility.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:UIElementInfo;<br>方法or属性:readonly bundleName: string;|@ohos.UiTest.d.ts|
|新增|NA|类名:UIElementInfo;<br>方法or属性:readonly type: string;|@ohos.UiTest.d.ts|
|新增|NA|类名:UIElementInfo;<br>方法or属性:readonly text: string;|@ohos.UiTest.d.ts|
|新增|NA|类名:UIEventObserver;<br>方法or属性:once(type: 'toastShow', callback: Callback\<UIElementInfo>): void;|@ohos.UiTest.d.ts|
|新增|NA|类名:UIEventObserver;<br>方法or属性:once(type: 'dialogShow', callback: Callback\<UIElementInfo>): void;|@ohos.UiTest.d.ts|
|新增|NA|类名:Driver;<br>方法or属性:createUIEventObserver(): UIEventObserver;|@ohos.UiTest.d.ts|
|type有变化|类名:WindowFilter;<br>方法or属性:bundleName?: string;<br>旧版本信息:string?|类名:WindowFilter;<br>方法or属性:bundleName?: string;<br>新版本信息:?string|@ohos.UiTest.d.ts|
|type有变化|类名:WindowFilter;<br>方法or属性:title?: string;<br>旧版本信息:string?|类名:WindowFilter;<br>方法or属性:title?: string;<br>新版本信息:?string|@ohos.UiTest.d.ts|
|type有变化|类名:WindowFilter;<br>方法or属性:focused?: boolean;<br>旧版本信息:boolean?|类名:WindowFilter;<br>方法or属性:focused?: boolean;<br>新版本信息:?boolean|@ohos.UiTest.d.ts|
|type有变化|类名:WindowFilter;<br>方法or属性:actived?: boolean;<br>旧版本信息:boolean?|类名:WindowFilter;<br>方法or属性:actived?: boolean;<br>新版本信息:?boolean|@ohos.UiTest.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|错误码有变化|类名:usbManager;<br>方法or属性:function setCurrentFunctions(funcs: FunctionType): Promise\<void>;<br>旧版本信息:401|类名:usbManager;<br>方法or属性:function setCurrentFunctions(funcs: FunctionType): Promise\<void>;<br>新版本信息:401,14400002|@ohos.usbManager.d.ts|
# ArkUI子系统LocalStorage类接口ChangeLog
## cl.LocalStorage.1 get接口返回类型变更
**变更影响**
返回类型从get<T>(propName: string): T变更为get<T>(propName: string): T | undefined
应用不需要进行适配。
## cl.LocalStorage.2 setOrCreate参数newValue变成必选
**变更影响**
原接口声明:
```js
setOrCreate<T>(propName: string, newValue?: T): boolean
```
现接口声明:
```js
setOrCreate<T>(propName: string, newValue: T): boolean
```
第二个参数newValue变为必选。
如果应用调用这个接口没有指定newValue参数,在替换新的sdk后会编译不过,需要手动指定newValue。
**适配指导**
```js
let storage = new LocalStorage();
storage.setOrCreate('propA', 'hello');
```
## cl.LocalStorage.3 link参数和返回类型变更
**变更影响**
原接口声明:
```js
link<T>(propName: string, linkUser?: T, subscribersName?: string): T
```
现接口声明:
```js
link<T>(propName: string): SubscribedAbstractProperty<T>
```
1. link第二三个参数为框架内部调用,不应对外开发,所以将接口变更为一个参数;
2. 返回类型T变更为SubscribedAbstractProperty;
**适配指导**
```js
let storage = new LocalStorage({"PropA": "47"});
let linA = storage.link("PropA");
linA.set(50);
```
## cl.LocalStorage.4 setAndLink参数和返回类型变更
**变更影响**
原接口声明:
```js
setAndLink<T>(propName: string, defaultValue: T, linkUser?: T, subscribersName?: string): T
```
现接口声明:
```js
setAndLink<T>(propName: string, defaultValue: T): SubscribedAbstractProperty<T>
```
1. setAndLink第三四个参数为框架内部调用,不应对外开发,所以将接口变更为2个参数;
2. 返回类型T变更为SubscribedAbstractProperty;
**适配指导**
```js
let storage = new LocalStorage({"PropA": "47"});
let linA = storage.setAndLink("PropA", "48")
linA.set(50);
```
## cl.LocalStorage.5 prop参数和返回类型变更
**变更影响**
原接口声明:
```js
prop<T>(propName: string, propUser?: T, subscribersName?: string): T
```
现接口声明:
```js
prop<S>(propName: string): SubscribedAbstractProperty<S>
```
1. prop第二三个参数为框架内部调用,不应对外开发,所以将接口变更为1个参数;
2. 返回类型T变更为SubscribedAbstractProperty;
**适配指导**
```js
let storage = new LocalStorage({"PropA": "47"});
let propA = storage.prop("PropA");
propA.set(51); // one-way sync
```
## cl.LocalStorage.6 setAndProp参数和返回类型变更
**变更影响**
原接口声明:
```js
setAndProp<T>(propName: string, defaultValue: T, propUser?: T, subscribersName?: string): T
```
现接口声明:
```js
setAndProp<S>(propName: string, defaultValue: S): SubscribedAbstractProperty<S>
```
1. setAndProp第三四个参数为框架内部调用,不应对外开发,所以将接口变更为2个参数;
2. 返回类型T变更为SubscribedAbstractProperty;
**适配指导**
```js
let storage = new LocalStorage({"PropA": "47"});
let propA = storage.setAndProp("PropA", "48");
propA.set(51); // one-way sync
```
\ No newline at end of file
# 用户IAM子系统Changelog
## cl.useriam.1 API9返回值命名变更
用户IAM API9的返回值枚举类类名发生变更,从 ResultCodeV9 更名为 UserAuthResultCode
**变更影响**
基于此版本以前开发的应用不受影响,以后的需适配错误码的类名,否则会影响业务逻辑。
**关键接口/组件变更**
无接口/组件变更
**适配指导**
需要修改返回值调用类名从 ResultCodeV9 改为 UserAuthResultCode
\ No newline at end of file
# 分布式调度子系统ChangeLog
## cl.DistributedManagerService.1 continuationManager接口新增DATASYNC权限校验
此前版本continuationManager接口未对调用方进行校验,不符合OpenHarmony的API接口规范。
已做出以下变更:调用方使用continuationManager前需提前申请"ohos.permission.DISTRIBUTED_DATASYNC"权限。
**变更影响**
基于此前版本开发的应用,需提前申请"ohos.permission.DISTRIBUTED_DATASYNC"权限,否则会影响原有业务逻辑。
**关键的接口/组件变更**
涉及接口
- continuationManager.registerContinuation;
- continuationManager.on;
- continuationManager.off;
- continuationManager.unregisterContinuation;
- continuationManager.updateContinuationState;
- continuationManager.startContinuationDeviceManager;
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册