提交 759a2991 编写于 作者: Y ywx1057076

新增4.0-beta2 diff报告

Signed-off-by: Nywx1057076 <yanpei12@huawei.com>
上级 140cc3ca
因为 它太大了无法显示 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|
因为 它太大了无法显示 source diff 。你可以改为 查看blob
| 操作 | 旧版本 | 新版本 | 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|
|跨平台能力有变化|类名:Metadata;<br>方法or属性:export interface Metadata<br>旧版本信息:|类名:Metadata;<br>方法or属性:export interface Metadata<br>新版本信息:crossplatform|Metadata.d.ts|
|跨平台能力有变化|类名:Metadata;<br>方法or属性:name: string;<br>旧版本信息:|类名:Metadata;<br>方法or属性:name: string;<br>新版本信息:crossplatform|Metadata.d.ts|
|跨平台能力有变化|类名:Metadata;<br>方法or属性:value: string;<br>旧版本信息:|类名:Metadata;<br>方法or属性:value: string;<br>新版本信息:crossplatform|Metadata.d.ts|
|跨平台能力有变化|类名:Metadata;<br>方法or属性:resource: string;<br>旧版本信息:|类名:Metadata;<br>方法or属性:resource: string;<br>新版本信息:crossplatform|Metadata.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|
|跨平台能力有变化|类名:hilog;<br>方法or属性:declare hilog<br>旧版本信息:|类名:hilog;<br>方法or属性:declare hilog<br>新版本信息:crossplatform|@ohos.hilog.d.ts|
|跨平台能力有变化|类名:hiTraceMeter;<br>方法or属性:declare hiTraceMeter<br>旧版本信息:|类名:hiTraceMeter;<br>方法or属性:declare hiTraceMeter<br>新版本信息:crossplatform|@ohos.hiTraceMeter.d.ts|
|跨平台能力有变化|类名:hiTraceMeter;<br>方法or属性:function startTrace(name: string, taskId: number): void;<br>旧版本信息:|类名:hiTraceMeter;<br>方法or属性:function startTrace(name: string, taskId: number): void;<br>新版本信息:crossplatform|@ohos.hiTraceMeter.d.ts|
|跨平台能力有变化|类名:hiTraceMeter;<br>方法or属性:function finishTrace(name: string, taskId: number): void;<br>旧版本信息:|类名:hiTraceMeter;<br>方法or属性:function finishTrace(name: string, taskId: number): void;<br>新版本信息:crossplatform|@ohos.hiTraceMeter.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|
|跨平台能力有变化|类名:DateTimeOptions;<br>方法or属性:year?: string;<br>旧版本信息:|类名:DateTimeOptions;<br>方法or属性:year?: string;<br>新版本信息:crossplatform|@ohos.intl.d.ts|
|跨平台能力有变化|类名:DeviceType;<br>方法or属性:DEVICE_TYPE_TABLET = 0x01<br>旧版本信息:crossplatform|类名:DeviceType;<br>方法or属性:DEVICE_TYPE_TABLET = 0x01<br>新版本信息:|@ohos.resourceManager.d.ts|
|跨平台能力有变化|类名:DeviceType;<br>方法or属性:DEVICE_TYPE_CAR = 0x02<br>旧版本信息:crossplatform|类名:DeviceType;<br>方法or属性:DEVICE_TYPE_CAR = 0x02<br>新版本信息:|@ohos.resourceManager.d.ts|
|跨平台能力有变化|类名:DeviceType;<br>方法or属性:DEVICE_TYPE_PC = 0x03<br>旧版本信息:crossplatform|类名:DeviceType;<br>方法or属性:DEVICE_TYPE_PC = 0x03<br>新版本信息:|@ohos.resourceManager.d.ts|
|跨平台能力有变化|类名:DeviceType;<br>方法or属性:DEVICE_TYPE_TV = 0x04<br>旧版本信息:crossplatform|类名:DeviceType;<br>方法or属性:DEVICE_TYPE_TV = 0x04<br>新版本信息:|@ohos.resourceManager.d.ts|
|跨平台能力有变化|类名:DeviceType;<br>方法or属性:DEVICE_TYPE_WEARABLE = 0x06<br>旧版本信息:crossplatform|类名:DeviceType;<br>方法or属性:DEVICE_TYPE_WEARABLE = 0x06<br>新版本信息:|@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|类名:Pinch;<br>方法or属性:type: ActionType;|@ohos.multimodalInput.gestureEvent.d.ts|
|新增|NA|类名:ThreeFingersSwipe;<br>方法or属性:type: ActionType;|@ohos.multimodalInput.gestureEvent.d.ts|
|新增|NA|类名:FourFingersSwipe;<br>方法or属性:type: ActionType;|@ohos.multimodalInput.gestureEvent.d.ts|
|新增|NA|类名:Pinch;<br>方法or属性:scale: number;|@ohos.multimodalInput.gestureEvent.d.ts|
|新增|NA|类名:ThreeFingersSwipe;<br>方法or属性:x: number;|@ohos.multimodalInput.gestureEvent.d.ts|
|新增|NA|类名:FourFingersSwipe;<br>方法or属性:x: number;|@ohos.multimodalInput.gestureEvent.d.ts|
|新增|NA|类名:ThreeFingersSwipe;<br>方法or属性:y: number;|@ohos.multimodalInput.gestureEvent.d.ts|
|新增|NA|类名:FourFingersSwipe;<br>方法or属性:y: number;|@ohos.multimodalInput.gestureEvent.d.ts|
|新增|NA|类名:ActionType;<br>方法or属性:CANCEL = 0|@ohos.multimodalInput.gestureEvent.d.ts|
|新增|NA|类名:ActionType;<br>方法or属性:BEGIN = 1|@ohos.multimodalInput.gestureEvent.d.ts|
|新增|NA|类名:ActionType;<br>方法or属性:UPDATE = 2|@ohos.multimodalInput.gestureEvent.d.ts|
|新增|NA|类名:ActionType;<br>方法or属性:END = 3|@ohos.multimodalInput.gestureEvent.d.ts|
|新增|NA|类名:inputDevice;<br>方法or属性:function setKeyboardRepeatDelay(delay: number, callback: AsyncCallback\<void>): void;|@ohos.multimodalInput.inputDevice.d.ts|
|新增|NA|类名:inputDevice;<br>方法or属性:function setKeyboardRepeatDelay(delay: number): Promise\<void>;|@ohos.multimodalInput.inputDevice.d.ts|
|新增|NA|类名:inputDevice;<br>方法or属性:function getKeyboardRepeatDelay(callback: AsyncCallback\<number>): void;|@ohos.multimodalInput.inputDevice.d.ts|
|新增|NA|类名:inputDevice;<br>方法or属性:function getKeyboardRepeatDelay(): Promise\<number>;|@ohos.multimodalInput.inputDevice.d.ts|
|新增|NA|类名:inputDevice;<br>方法or属性:function setKeyboardRepeatRate(rate: number, callback: AsyncCallback\<void>): void;|@ohos.multimodalInput.inputDevice.d.ts|
|新增|NA|类名:inputDevice;<br>方法or属性:function setKeyboardRepeatRate(rate: number): Promise\<void>;|@ohos.multimodalInput.inputDevice.d.ts|
|新增|NA|类名:inputDevice;<br>方法or属性:function getKeyboardRepeatRate(callback: AsyncCallback\<number>): void;|@ohos.multimodalInput.inputDevice.d.ts|
|新增|NA|类名:inputDevice;<br>方法or属性:function getKeyboardRepeatRate(): Promise\<number>;|@ohos.multimodalInput.inputDevice.d.ts|
|新增|NA|类名:inputMonitor;<br>方法or属性:function on(type: 'pinch', receiver: Callback\<Pinch>): void;|@ohos.multimodalInput.inputMonitor.d.ts|
|新增|NA|类名:inputMonitor;<br>方法or属性:function on(type: 'threeFingersSwipe', receiver: Callback\<ThreeFingersSwipe>): void;|@ohos.multimodalInput.inputMonitor.d.ts|
|新增|NA|类名:inputMonitor;<br>方法or属性:function on(type: 'fourFingersSwipe', receiver: Callback\<FourFingersSwipe>): void;|@ohos.multimodalInput.inputMonitor.d.ts|
|新增|NA|类名:inputMonitor;<br>方法or属性:function off(type: 'pinch', receiver?: Callback\<Pinch>): void;|@ohos.multimodalInput.inputMonitor.d.ts|
|新增|NA|类名:inputMonitor;<br>方法or属性:function off(type: 'threeFingersSwipe', receiver?: Callback\<ThreeFingersSwipe>): void;|@ohos.multimodalInput.inputMonitor.d.ts|
|新增|NA|类名:inputMonitor;<br>方法or属性:function off(type: 'fourFingersSwipe', receiver?: Callback\<FourFingersSwipe>): void;|@ohos.multimodalInput.inputMonitor.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_UNKNOWN = -1|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_UP = 1|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_DOWN = 2|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_LEFT = 3|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_RIGHT = 4|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_SELECT = 5|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_ESCAPE = 6|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_BACK = 7|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_FORWARD = 8|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_MENU = 9|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_PAGE_UP = 11|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_PAGE_DOWN = 12|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_ZOOM_OUT = 13|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:IntentionCode;<br>方法or属性:INTENTION_ZOOM_IN = 14|@ohos.multimodalInput.intentionCode.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadScrollSwitch(state: boolean, callback: AsyncCallback\<void>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadScrollSwitch(state: boolean): Promise\<void>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadScrollSwitch(callback: AsyncCallback\<boolean>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadScrollSwitch(): Promise\<boolean>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadScrollDirection(state: boolean, callback: AsyncCallback\<void>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadScrollDirection(state: boolean): Promise\<void>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadScrollDirection(callback: AsyncCallback\<boolean>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadScrollDirection(): Promise\<boolean>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadTapSwitch(state: boolean, callback: AsyncCallback\<void>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadTapSwitch(state: boolean): Promise\<void>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadTapSwitch(callback: AsyncCallback\<boolean>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadTapSwitch(): Promise\<boolean>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadPointerSpeed(speed: number, callback: AsyncCallback\<void>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadPointerSpeed(speed: number): Promise\<void>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadPointerSpeed(callback: AsyncCallback\<number>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadPointerSpeed(): Promise\<number>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadPinchSwitch(state: boolean, callback: AsyncCallback\<void>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadPinchSwitch(state: boolean): Promise\<void>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadPinchSwitch(callback: AsyncCallback\<boolean>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadPinchSwitch(): Promise\<boolean>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadSwipeSwitch(state: boolean, callback: AsyncCallback\<void>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadSwipeSwitch(state: boolean): Promise\<void>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadSwipeSwitch(callback: AsyncCallback\<boolean>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadSwipeSwitch(): Promise\<boolean>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadRightClickType(type: RightClickType, callback: AsyncCallback\<void>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function setTouchpadRightClickType(type: RightClickType): Promise\<void>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadRightClickType(callback: AsyncCallback\<RightClickType>): void;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:pointer;<br>方法or属性:function getTouchpadRightClickType(): Promise\<RightClickType>;|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:PointerStyle;<br>方法or属性:HORIZONTAL_TEXT_CURSOR|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:PointerStyle;<br>方法or属性:CURSOR_CROSS|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:PointerStyle;<br>方法or属性:CURSOR_CIRCLE|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:RightClickType;<br>方法or属性:TOUCHPAD_RIGHT_BUTTON = 1|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:RightClickType;<br>方法or属性:TOUCHPAD_LEFT_BUTTON = 2|@ohos.multimodalInput.pointer.d.ts|
|新增|NA|类名:RightClickType;<br>方法or属性:TOUCHPAD_TWO_FINGER_TAP = 3|@ohos.multimodalInput.pointer.d.ts|
|错误码有变化|类名:pointer;<br>方法or属性:function setMousePrimaryButton(primary: PrimaryButton, callback: AsyncCallback\<void>): void;<br>旧版本信息:401|类名:pointer;<br>方法or属性:function setMousePrimaryButton(primary: PrimaryButton, callback: AsyncCallback\<void>): void;<br>新版本信息:202,401|@ohos.multimodalInput.pointer.d.ts|
|错误码有变化|类名:pointer;<br>方法or属性:function setMousePrimaryButton(primary: PrimaryButton): Promise\<void>;<br>旧版本信息:401|类名:pointer;<br>方法or属性:function setMousePrimaryButton(primary: PrimaryButton): Promise\<void>;<br>新版本信息:202,401|@ohos.multimodalInput.pointer.d.ts|
|错误码有变化|类名:pointer;<br>方法or属性:function getMousePrimaryButton(callback: AsyncCallback\<PrimaryButton>): void;<br>旧版本信息:401|类名:pointer;<br>方法or属性:function getMousePrimaryButton(callback: AsyncCallback\<PrimaryButton>): void;<br>新版本信息:202,401|@ohos.multimodalInput.pointer.d.ts|
|错误码有变化|类名:pointer;<br>方法or属性:function getMousePrimaryButton(): Promise\<PrimaryButton>;<br>旧版本信息:401|类名:pointer;<br>方法or属性:function getMousePrimaryButton(): Promise\<PrimaryButton>;<br>新版本信息:202,401|@ohos.multimodalInput.pointer.d.ts|
|错误码有变化|类名:pointer;<br>方法or属性:function setHoverScrollState(state: boolean, callback: AsyncCallback\<void>): void;<br>旧版本信息:401|类名:pointer;<br>方法or属性:function setHoverScrollState(state: boolean, callback: AsyncCallback\<void>): void;<br>新版本信息:202,401|@ohos.multimodalInput.pointer.d.ts|
|错误码有变化|类名:pointer;<br>方法or属性:function setHoverScrollState(state: boolean): Promise\<void>;<br>旧版本信息:401|类名:pointer;<br>方法or属性:function setHoverScrollState(state: boolean): Promise\<void>;<br>新版本信息:202,401|@ohos.multimodalInput.pointer.d.ts|
|错误码有变化|类名:pointer;<br>方法or属性:function getHoverScrollState(callback: AsyncCallback\<boolean>): void;<br>旧版本信息:401|类名:pointer;<br>方法or属性:function getHoverScrollState(callback: AsyncCallback\<boolean>): void;<br>新版本信息:202,401|@ohos.multimodalInput.pointer.d.ts|
|错误码有变化|类名:pointer;<br>方法or属性:function getHoverScrollState(): Promise\<boolean>;<br>旧版本信息:401|类名:pointer;<br>方法or属性:function getHoverScrollState(): Promise\<boolean>;<br>新版本信息:202,401|@ohos.multimodalInput.pointer.d.ts|
|错误码有变化|类名:pointer;<br>方法or属性:function setMouseScrollRows(rows: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:401|类名:pointer;<br>方法or属性:function setMouseScrollRows(rows: number, callback: AsyncCallback\<void>): void;<br>新版本信息:202,401|@ohos.multimodalInput.pointer.d.ts|
|错误码有变化|类名:pointer;<br>方法or属性:function setMouseScrollRows(rows: number): Promise\<void>;<br>旧版本信息:401|类名:pointer;<br>方法or属性:function setMouseScrollRows(rows: number): Promise\<void>;<br>新版本信息:202,401|@ohos.multimodalInput.pointer.d.ts|
|错误码有变化|类名:pointer;<br>方法or属性:function getMouseScrollRows(callback: AsyncCallback\<number>): void;<br>旧版本信息:401|类名:pointer;<br>方法or属性:function getMouseScrollRows(callback: AsyncCallback\<number>): void;<br>新版本信息:202,401|@ohos.multimodalInput.pointer.d.ts|
|错误码有变化|类名:pointer;<br>方法or属性:function getMouseScrollRows(): Promise\<number>;<br>旧版本信息:401|类名:pointer;<br>方法or属性:function getMouseScrollRows(): Promise\<number>;<br>新版本信息:202,401|@ohos.multimodalInput.pointer.d.ts|
|错误码有变化|类名:shortKey;<br>方法or属性:function setKeyDownDuration(businessKey: string, delay: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:401|类名:shortKey;<br>方法or属性:function setKeyDownDuration(businessKey: string, delay: number, callback: AsyncCallback\<void>): void;<br>新版本信息:202,401|@ohos.multimodalInput.shortKey.d.ts|
|错误码有变化|类名:shortKey;<br>方法or属性:function setKeyDownDuration(businessKey: string, delay: number): Promise\<void>;<br>旧版本信息:401|类名:shortKey;<br>方法or属性:function setKeyDownDuration(businessKey: string, delay: number): Promise\<void>;<br>新版本信息:202,401|@ohos.multimodalInput.shortKey.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文件 |
| ---- | ------ | ------ | -------- |
|跨平台能力有变化|类名:Callback;<br>方法or属性:export interface Callback<br>旧版本信息:|类名:Callback;<br>方法or属性:export interface Callback<br>新版本信息:crossplatform|@ohos.base.d.ts|
|跨平台能力有变化|类名:Callback;<br>方法or属性:(data: T): void;<br>旧版本信息:|类名:Callback;<br>方法or属性:(data: T): void;<br>新版本信息:crossplatform|@ohos.base.d.ts|
|跨平台能力有变化|类名:ErrorCallback;<br>方法or属性:export interface ErrorCallback<br>旧版本信息:|类名:ErrorCallback;<br>方法or属性:export interface ErrorCallback<br>新版本信息:crossplatform|@ohos.base.d.ts|
|跨平台能力有变化|类名:ErrorCallback;<br>方法or属性:(err: T): void;<br>旧版本信息:|类名:ErrorCallback;<br>方法or属性:(err: T): void;<br>新版本信息:crossplatform|@ohos.base.d.ts|
|跨平台能力有变化|类名:AsyncCallback;<br>方法or属性:export interface AsyncCallback<br>旧版本信息:|类名:AsyncCallback;<br>方法or属性:export interface AsyncCallback<br>新版本信息:crossplatform|@ohos.base.d.ts|
|跨平台能力有变化|类名:AsyncCallback;<br>方法or属性:(err: BusinessError\<E>, data: T): void;<br>旧版本信息:|类名:AsyncCallback;<br>方法or属性:(err: BusinessError\<E>, data: T): void;<br>新版本信息:crossplatform|@ohos.base.d.ts|
|跨平台能力有变化|类名:BusinessError;<br>方法or属性:export interface BusinessError<br>旧版本信息:|类名:BusinessError;<br>方法or属性:export interface BusinessError<br>新版本信息:crossplatform|@ohos.base.d.ts|
|跨平台能力有变化|类名:BusinessError;<br>方法or属性:code: number;<br>旧版本信息:|类名:BusinessError;<br>方法or属性:code: number;<br>新版本信息:crossplatform|@ohos.base.d.ts|
|跨平台能力有变化|类名:BusinessError;<br>方法or属性:data?: T;<br>旧版本信息:|类名:BusinessError;<br>方法or属性:data?: T;<br>新版本信息:crossplatform|@ohos.base.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generateKeyPair(callback: AsyncCallback\<KeyPair>): void;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generateKeyPair(): Promise\<KeyPair>;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:cert;<br>方法or属性:function createCertExtension(inStream: EncodingBlob, callback: AsyncCallback\<CertExtension>): void;|@ohos.security.cert.d.ts|
|新增|NA|类名:cert;<br>方法or属性:function createCertExtension(inStream: EncodingBlob): Promise\<CertExtension>;|@ohos.security.cert.d.ts|
|新增|NA|类名:CertItemType;<br>方法or属性:CERT_ITEM_TYPE_TBS = 0|@ohos.security.cert.d.ts|
|新增|NA|类名:CertItemType;<br>方法or属性:CERT_ITEM_TYPE_PUBLIC_KEY = 1|@ohos.security.cert.d.ts|
|新增|NA|类名:CertItemType;<br>方法or属性:CERT_ITEM_TYPE_ISSUER_UNIQUE_ID = 2|@ohos.security.cert.d.ts|
|新增|NA|类名:CertItemType;<br>方法or属性:CERT_ITEM_TYPE_SUBJECT_UNIQUE_ID = 3|@ohos.security.cert.d.ts|
|新增|NA|类名:CertItemType;<br>方法or属性:CERT_ITEM_TYPE_EXTENSIONS = 4|@ohos.security.cert.d.ts|
|新增|NA|类名:ExtensionOidType;<br>方法or属性:EXTENSION_OID_TYPE_ALL = 0|@ohos.security.cert.d.ts|
|新增|NA|类名:ExtensionOidType;<br>方法or属性:EXTENSION_OID_TYPE_CRITICAL = 1|@ohos.security.cert.d.ts|
|新增|NA|类名:ExtensionOidType;<br>方法or属性:EXTENSION_OID_TYPE_UNCRITICAL = 2|@ohos.security.cert.d.ts|
|新增|NA|类名:ExtensionEntryType;<br>方法or属性:EXTENSION_ENTRY_TYPE_ENTRY = 0|@ohos.security.cert.d.ts|
|新增|NA|类名:ExtensionEntryType;<br>方法or属性:EXTENSION_ENTRY_TYPE_ENTRY_CRITICAL = 1|@ohos.security.cert.d.ts|
|新增|NA|类名:ExtensionEntryType;<br>方法or属性:EXTENSION_ENTRY_TYPE_ENTRY_VALUE = 2|@ohos.security.cert.d.ts|
|新增|NA|类名:X509Cert;<br>方法or属性:getCertSerialNumber(): bigint;|@ohos.security.cert.d.ts|
|新增|NA|类名:X509Cert;<br>方法or属性:getItem(itemType: CertItemType): DataBlob;|@ohos.security.cert.d.ts|
|新增|NA|类名:CertExtension;<br>方法or属性:getEncoded(): EncodingBlob;|@ohos.security.cert.d.ts|
|新增|NA|类名:CertExtension;<br>方法or属性:getOidList(valueType: ExtensionOidType): DataArray;|@ohos.security.cert.d.ts|
|新增|NA|类名:CertExtension;<br>方法or属性:getEntry(valueType: ExtensionEntryType, oid: DataBlob): DataBlob;|@ohos.security.cert.d.ts|
|新增|NA|类名:CertExtension;<br>方法or属性:checkCA(): number;|@ohos.security.cert.d.ts|
|新增|NA|类名:cryptoFramework;<br>方法or属性:function createAsyKeyGeneratorBySpec(asyKeySpec: AsyKeySpec): AsyKeyGeneratorBySpec;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:PriKey;<br>方法or属性:getAsyKeySpec(itemType: AsyKeySpecItem): bigint \| string \| number;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:PubKey;<br>方法or属性:getAsyKeySpec(itemType: AsyKeySpecItem): bigint \| string \| number;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:Random;<br>方法or属性:generateRandomSync(len: number): DataBlob;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:Random;<br>方法or属性:readonly algName: string;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:readonly algName: string;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:CipherSpecItem;<br>方法or属性:OAEP_MD_NAME_STR = 100|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:CipherSpecItem;<br>方法or属性:OAEP_MGF_NAME_STR = 101|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:CipherSpecItem;<br>方法or属性:OAEP_MGF1_MD_STR = 102|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:CipherSpecItem;<br>方法or属性:OAEP_MGF1_PSRC_UINT8ARR = 103|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:SignSpecItem;<br>方法or属性:PSS_MD_NAME_STR = 100|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:SignSpecItem;<br>方法or属性:PSS_MGF_NAME_STR = 101|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:SignSpecItem;<br>方法or属性:PSS_MGF1_MD_STR = 102|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:SignSpecItem;<br>方法or属性:PSS_SALT_LEN_NUM = 103|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:SignSpecItem;<br>方法or属性:PSS_TRAILER_FIELD_NUM = 104|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:Cipher;<br>方法or属性:setCipherSpec(itemType: CipherSpecItem, itemValue: Uint8Array): void;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:Cipher;<br>方法or属性:getCipherSpec(itemType: CipherSpecItem): string \| Uint8Array;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:Sign;<br>方法or属性:setSignSpec(itemType: SignSpecItem, itemValue: number): void;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:Sign;<br>方法or属性:getSignSpec(itemType: SignSpecItem): string \| number;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:Verify;<br>方法or属性:setVerifySpec(itemType: SignSpecItem, itemValue: number): void;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:Verify;<br>方法or属性:getVerifySpec(itemType: SignSpecItem): string \| number;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:DSA_P_BN = 101|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:DSA_Q_BN = 102|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:DSA_G_BN = 103|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:DSA_SK_BN = 104|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:DSA_PK_BN = 105|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_FP_P_BN = 201|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_A_BN = 202|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_B_BN = 203|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_G_X_BN = 204|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_G_Y_BN = 205|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_N_BN = 206|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_H_NUM = 207|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_SK_BN = 208|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_PK_X_BN = 209|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_PK_Y_BN = 210|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_FIELD_TYPE_STR = 211|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_FIELD_SIZE_NUM = 212|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_CURVE_NAME_STR = 213|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:RSA_N_BN = 301|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:RSA_SK_BN = 302|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:RSA_PK_BN = 303|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecType;<br>方法or属性:COMMON_PARAMS_SPEC = 0|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecType;<br>方法or属性:PRIVATE_KEY_SPEC = 1|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecType;<br>方法or属性:PUBLIC_KEY_SPEC = 2|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpecType;<br>方法or属性:KEY_PAIR_SPEC = 3|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpec;<br>方法or属性:algName: string;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeySpec;<br>方法or属性:specType: AsyKeySpecType;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:DSACommonParamsSpec;<br>方法or属性:p: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECFieldFp;<br>方法or属性:p: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:DSACommonParamsSpec;<br>方法or属性:q: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:DSACommonParamsSpec;<br>方法or属性:g: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:DSAPubKeySpec;<br>方法or属性:params: DSACommonParamsSpec;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:DSAKeyPairSpec;<br>方法or属性:params: DSACommonParamsSpec;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:DSAPubKeySpec;<br>方法or属性:pk: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:DSAKeyPairSpec;<br>方法or属性:pk: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:RSAPubKeySpec;<br>方法or属性:pk: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:RSAKeyPairSpec;<br>方法or属性:pk: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:DSAKeyPairSpec;<br>方法or属性:sk: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECCPriKeySpec;<br>方法or属性:sk: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECCKeyPairSpec;<br>方法or属性:sk: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:RSAKeyPairSpec;<br>方法or属性:sk: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECField;<br>方法or属性:fieldType: string;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:Point;<br>方法or属性:x: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:Point;<br>方法or属性:y: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECCCommonParamsSpec;<br>方法or属性:field: ECField;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECCCommonParamsSpec;<br>方法or属性:a: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECCCommonParamsSpec;<br>方法or属性:b: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECCCommonParamsSpec;<br>方法or属性:g: Point;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECCCommonParamsSpec;<br>方法or属性:n: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:RSACommonParamsSpec;<br>方法or属性:n: bigint;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECCCommonParamsSpec;<br>方法or属性:h: number;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECCPriKeySpec;<br>方法or属性:params: ECCCommonParamsSpec;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECCPubKeySpec;<br>方法or属性:params: ECCCommonParamsSpec;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECCKeyPairSpec;<br>方法or属性:params: ECCCommonParamsSpec;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECCPubKeySpec;<br>方法or属性:pk: Point;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:ECCKeyPairSpec;<br>方法or属性:pk: Point;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:RSAPubKeySpec;<br>方法or属性:params: RSACommonParamsSpec;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:RSAKeyPairSpec;<br>方法or属性:params: RSACommonParamsSpec;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generatePriKey(callback: AsyncCallback\<PriKey>): void;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generatePriKey(): Promise\<PriKey>;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generatePubKey(callback: AsyncCallback\<PubKey>): void;|@ohos.security.cryptoFramework.d.ts|
|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generatePubKey(): Promise\<PubKey>;|@ohos.security.cryptoFramework.d.ts|
|废弃版本有变化|类名:X509Cert;<br>方法or属性:getSerialNumber(): number;<br>旧版本信息:|类名:X509Cert;<br>方法or属性:getSerialNumber(): number;<br>新版本信息:10<br>代替接口: ohos.security.cert.X509Cert.getCertSerialNumber|@ohos.security.cert.d.ts|
|新增(错误码)|类名:Key;<br>方法or属性:getEncoded(): DataBlob;<br>旧版本信息:|类名:Key;<br>方法or属性:getEncoded(): DataBlob;<br>新版本信息:801,17620001,17630001|@ohos.security.cryptoFramework.d.ts|
|错误码有变化|类名:cryptoFramework;<br>方法or属性:function createAsyKeyGenerator(algName: string): AsyKeyGenerator;<br>旧版本信息:401|类名:cryptoFramework;<br>方法or属性:function createAsyKeyGenerator(algName: string): AsyKeyGenerator;<br>新版本信息:401,801,17620001|@ohos.security.cryptoFramework.d.ts|
|错误码有变化|类名:cryptoFramework;<br>方法or属性:function createCipher(transformation: string): Cipher;<br>旧版本信息:401,801|类名:cryptoFramework;<br>方法or属性:function createCipher(transformation: string): Cipher;<br>新版本信息:401,801,17620001|@ohos.security.cryptoFramework.d.ts|
|错误码有变化|类名:cryptoFramework;<br>方法or属性:function createSign(algName: string): Sign;<br>旧版本信息:401|类名:cryptoFramework;<br>方法or属性:function createSign(algName: string): Sign;<br>新版本信息:401,801,17620001|@ohos.security.cryptoFramework.d.ts|
|错误码有变化|类名:cryptoFramework;<br>方法or属性:function createVerify(algName: string): Verify;<br>旧版本信息:401|类名:cryptoFramework;<br>方法or属性:function createVerify(algName: string): Verify;<br>新版本信息:401,801,17620001|@ohos.security.cryptoFramework.d.ts|
|错误码有变化|类名:cryptoFramework;<br>方法or属性:function createKeyAgreement(algName: string): KeyAgreement;<br>旧版本信息:401|类名:cryptoFramework;<br>方法or属性:function createKeyAgreement(algName: string): KeyAgreement;<br>新版本信息:401,801,17620001|@ohos.security.cryptoFramework.d.ts|
|错误码有变化|类名:AsyKeyGenerator;<br>方法or属性:generateKeyPair(callback: AsyncCallback\<KeyPair>): void;<br>旧版本信息:401,17620001|类名:AsyKeyGenerator;<br>方法or属性:generateKeyPair(callback: AsyncCallback\<KeyPair>): void;<br>新版本信息:401,17620001,17630001|@ohos.security.cryptoFramework.d.ts|
|错误码有变化|类名:AsyKeyGenerator;<br>方法or属性:generateKeyPair(): Promise\<KeyPair>;<br>旧版本信息:401,17620001|类名:AsyKeyGenerator;<br>方法or属性:generateKeyPair(): Promise\<KeyPair>;<br>新版本信息:401,17620001,17630001|@ohos.security.cryptoFramework.d.ts|
|错误码有变化|类名:AsyKeyGenerator;<br>方法or属性:convertKey(pubKey: DataBlob, priKey: DataBlob, callback: AsyncCallback\<KeyPair>): void;<br>旧版本信息:401,17620001|类名:AsyKeyGenerator;<br>方法or属性:convertKey(pubKey: DataBlob, priKey: DataBlob, callback: AsyncCallback\<KeyPair>): void;<br>新版本信息:401,17620001,17630001|@ohos.security.cryptoFramework.d.ts|
|错误码有变化|类名:AsyKeyGenerator;<br>方法or属性:convertKey(pubKey: DataBlob, priKey: DataBlob): Promise\<KeyPair>;<br>旧版本信息:401,17620001|类名:AsyKeyGenerator;<br>方法or属性:convertKey(pubKey: DataBlob, priKey: DataBlob): Promise\<KeyPair>;<br>新版本信息:401,17620001,17630001|@ohos.security.cryptoFramework.d.ts|
|type有变化|类名:PermissionUsedRequest;<br>方法or属性:tokenId?: number;<br>旧版本信息:number|类名:PermissionUsedRequest;<br>方法or属性:tokenId?: number;<br>新版本信息:?number|@ohos.privacyManager.d.ts|
|type有变化|类名:PermissionUsedRequest;<br>方法or属性:isRemote?: boolean;<br>旧版本信息:boolean|类名:PermissionUsedRequest;<br>方法or属性:isRemote?: boolean;<br>新版本信息:?boolean|@ohos.privacyManager.d.ts|
|type有变化|类名:PermissionUsedRequest;<br>方法or属性:deviceId?: string;<br>旧版本信息:string|类名:PermissionUsedRequest;<br>方法or属性:deviceId?: string;<br>新版本信息:?string|@ohos.privacyManager.d.ts|
|type有变化|类名:PermissionUsedRequest;<br>方法or属性:bundleName?: string;<br>旧版本信息:string|类名:PermissionUsedRequest;<br>方法or属性:bundleName?: string;<br>新版本信息:?string|@ohos.privacyManager.d.ts|
|type有变化|类名:PermissionUsedRequest;<br>方法or属性:permissionNames?: Array\<Permissions>;<br>旧版本信息:Array\<Permissions>|类名:PermissionUsedRequest;<br>方法or属性:permissionNames?: Array\<Permissions>;<br>新版本信息:?Array\<Permissions>|@ohos.privacyManager.d.ts|
|type有变化|类名:PermissionUsedRequest;<br>方法or属性:beginTime?: number;<br>旧版本信息:number|类名:PermissionUsedRequest;<br>方法or属性:beginTime?: number;<br>新版本信息:?number|@ohos.privacyManager.d.ts|
|type有变化|类名:PermissionUsedRequest;<br>方法or属性:endTime?: number;<br>旧版本信息:number|类名:PermissionUsedRequest;<br>方法or属性:endTime?: number;<br>新版本信息:?number|@ohos.privacyManager.d.ts|
|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:tokenId: number;|类名:PermissionUsedRequest;<br>方法or属性:tokenId?: number;|@ohos.privacyManager.d.ts|
|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:isRemote: boolean;|类名:PermissionUsedRequest;<br>方法or属性:isRemote?: boolean;|@ohos.privacyManager.d.ts|
|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:deviceId: string;|类名:PermissionUsedRequest;<br>方法or属性:deviceId?: string;|@ohos.privacyManager.d.ts|
|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:bundleName: string;|类名:PermissionUsedRequest;<br>方法or属性:bundleName?: string;|@ohos.privacyManager.d.ts|
|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:permissionNames: Array\<Permissions>;|类名:PermissionUsedRequest;<br>方法or属性:permissionNames?: Array\<Permissions>;|@ohos.privacyManager.d.ts|
|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:beginTime: number;|类名:PermissionUsedRequest;<br>方法or属性:beginTime?: number;|@ohos.privacyManager.d.ts|
|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:endTime: number;|类名:PermissionUsedRequest;<br>方法or属性:endTime?: number;|@ohos.privacyManager.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:sensor;<br>方法or属性:function on(type: SensorId.COLOR, callback: Callback\<ColorResponse>, options?: Options): void;|@ohos.sensor.d.ts|
|新增|NA|类名:sensor;<br>方法or属性:function on(type: SensorId.SAR, callback: Callback\<SarResponse>, options?: Options): void;|@ohos.sensor.d.ts|
|新增|NA|类名:sensor;<br>方法or属性:function off(type: SensorId.COLOR, callback?: Callback\<ColorResponse>): void;|@ohos.sensor.d.ts|
|新增|NA|类名:sensor;<br>方法or属性:function off(type: SensorId.SAR, callback?: Callback\<SarResponse>): void;|@ohos.sensor.d.ts|
|新增|NA|类名:SensorId;<br>方法or属性:COLOR = 14|@ohos.sensor.d.ts|
|新增|NA|类名:SensorId;<br>方法or属性:SAR = 15|@ohos.sensor.d.ts|
|新增|NA|类名:ColorResponse;<br>方法or属性:lightIntensity: number;|@ohos.sensor.d.ts|
|新增|NA|类名:ColorResponse;<br>方法or属性:colorTemperature: number;|@ohos.sensor.d.ts|
|新增|NA|类名:SarResponse;<br>方法or属性:absorptionRatio: number;|@ohos.sensor.d.ts|
|新增|NA|类名:VibrateFromFile;<br>方法or属性:type: 'file';|@ohos.vibrator.d.ts|
|新增|NA|类名:VibrateFromFile;<br>方法or属性:hapticFd: HapticFileDescriptor;|@ohos.vibrator.d.ts|
|新增|NA|类名:HapticFileDescriptor;<br>方法or属性:fd: number;|@ohos.vibrator.d.ts|
|新增|NA|类名:HapticFileDescriptor;<br>方法or属性:offset?: number;|@ohos.vibrator.d.ts|
|新增|NA|类名:HapticFileDescriptor;<br>方法or属性:length?: number;|@ohos.vibrator.d.ts|
|废弃版本有变化|类名:vibrator;<br>方法or属性:function vibrate(duration: number): Promise\<void>;<br>旧版本信息:|类名:vibrator;<br>方法or属性:function vibrate(duration: number): Promise\<void>;<br>新版本信息:9<br>代替接口: vibrator#startVibration|@ohos.vibrator.d.ts|
|废弃版本有变化|类名:vibrator;<br>方法or属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\<void>): void;<br>旧版本信息:|类名:vibrator;<br>方法or属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: vibrator#startVibration|@ohos.vibrator.d.ts|
|废弃版本有变化|类名:vibrator;<br>方法or属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\<void>): void;<br>旧版本信息:|类名:vibrator;<br>方法or属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: vibrator#stopVibration|@ohos.vibrator.d.ts|
|错误码有变化|类名:vibrator;<br>方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute, callback: AsyncCallback\<void>): void;<br>旧版本信息:201,401,14600101|类名:vibrator;<br>方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute, callback: AsyncCallback\<void>): void;<br>新版本信息:201,401,801,14600101|@ohos.vibrator.d.ts|
|错误码有变化|类名:vibrator;<br>方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute): Promise\<void>;<br>旧版本信息:201,401,14600101|类名:vibrator;<br>方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute): Promise\<void>;<br>新版本信息:201,401,801,14600101|@ohos.vibrator.d.ts|
|权限有变化|类名:vibrator;<br>方法or属性:function vibrate(duration: number): Promise\<void>;<br>旧版本信息:|类名:vibrator;<br>方法or属性:function vibrate(duration: number): Promise\<void>;<br>新版本信息:ohos.permission.VIBRATE|@ohos.vibrator.d.ts|
|权限有变化|类名:vibrator;<br>方法or属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\<void>): void;<br>旧版本信息:|类名:vibrator;<br>方法or属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\<void>): void;<br>新版本信息:ohos.permission.VIBRATE|@ohos.vibrator.d.ts|
|权限有变化|类名:vibrator;<br>方法or属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\<void>): void;<br>旧版本信息:|类名:vibrator;<br>方法or属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\<void>): void;<br>新版本信息:ohos.permission.VIBRATE|@ohos.vibrator.d.ts|
|权限有变化|类名:VibrateOptions;<br>方法or属性:mode?: 'long' \| 'short';<br>旧版本信息:|类名:VibrateOptions;<br>方法or属性:mode?: 'long' \| 'short';<br>新版本信息:ohos.permission.VIBRATE|@system.vibrator.d.ts|
|权限有变化|类名:VibrateOptions;<br>方法or属性:success: () => void;<br>旧版本信息:|类名:VibrateOptions;<br>方法or属性:success: () => void;<br>新版本信息:ohos.permission.VIBRATE|@system.vibrator.d.ts|
|权限有变化|类名:VibrateOptions;<br>方法or属性:fail?: (data: string, code: number) => void;<br>旧版本信息:|类名:VibrateOptions;<br>方法or属性:fail?: (data: string, code: number) => void;<br>新版本信息:ohos.permission.VIBRATE|@system.vibrator.d.ts|
|权限有变化|类名:VibrateOptions;<br>方法or属性:complete?: () => void;<br>旧版本信息:|类名:VibrateOptions;<br>方法or属性:complete?: () => void;<br>新版本信息:ohos.permission.VIBRATE|@system.vibrator.d.ts|
|type有变化|类名:vibrator;<br>方法or属性:type VibrateEffect = VibrateTime \| VibratePreset \| VibrateFromFile;<br>旧版本信息:|类名:vibrator;<br>方法or属性:type VibrateEffect = VibrateTime \| VibratePreset \| VibrateFromFile;<br>新版本信息:VibrateTime \| VibratePreset \| VibrateFromFile|@ohos.vibrator.d.ts|
|函数有变化|类名:vibrator;<br>方法or属性:type VibrateEffect = VibrateTime \| VibratePreset;|类名:vibrator;<br>方法or属性:type VibrateEffect = VibrateTime \| VibratePreset \| VibrateFromFile;|@ohos.vibrator.d.ts|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|废弃版本有变化|类名:systemParameter;<br>方法or属性:function getSync(key: string, def?: string): string;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:function getSync(key: string, def?: string): string;<br>新版本信息:9<br>代替接口:|@ohos.systemparameter.d.ts|
|废弃版本有变化|类名:systemParameter;<br>方法or属性:function get(key: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:function get(key: string, callback: AsyncCallback\<string>): void;<br>新版本信息:9<br>代替接口:|@ohos.systemparameter.d.ts|
|废弃版本有变化|类名:systemParameter;<br>方法or属性:function get(key: string, def: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:function get(key: string, def: string, callback: AsyncCallback\<string>): void;<br>新版本信息:9<br>代替接口:|@ohos.systemparameter.d.ts|
|废弃版本有变化|类名:systemParameter;<br>方法or属性:function get(key: string, def?: string): Promise\<string>;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:function get(key: string, def?: string): Promise\<string>;<br>新版本信息:9<br>代替接口:|@ohos.systemparameter.d.ts|
|废弃版本有变化|类名:systemParameter;<br>方法or属性:function set(key: string, value: string, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:function set(key: string, value: string, callback: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口:|@ohos.systemparameter.d.ts|
|废弃版本有变化|类名:systemParameter;<br>方法or属性:function set(key: string, value: string): Promise\<void>;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:function set(key: string, value: string): Promise\<void>;<br>新版本信息:9<br>代替接口:|@ohos.systemparameter.d.ts|
|访问级别有变化|类名:systemParameter;<br>方法or属性:function getSync(key: string, def?: string): string;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:function getSync(key: string, def?: string): string;<br>新版本信息:systemapi|@ohos.systemparameter.d.ts|
|访问级别有变化|类名:systemParameter;<br>方法or属性:function get(key: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:function get(key: string, callback: AsyncCallback\<string>): void;<br>新版本信息:systemapi|@ohos.systemparameter.d.ts|
|访问级别有变化|类名:systemParameter;<br>方法or属性:function get(key: string, def: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:function get(key: string, def: string, callback: AsyncCallback\<string>): void;<br>新版本信息:systemapi|@ohos.systemparameter.d.ts|
|访问级别有变化|类名:systemParameter;<br>方法or属性:function get(key: string, def?: string): Promise\<string>;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:function get(key: string, def?: string): Promise\<string>;<br>新版本信息:systemapi|@ohos.systemparameter.d.ts|
|访问级别有变化|类名:systemParameter;<br>方法or属性:function setSync(key: string, value: string): void;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:function setSync(key: string, value: string): void;<br>新版本信息:systemapi|@ohos.systemparameter.d.ts|
|访问级别有变化|类名:systemParameter;<br>方法or属性:function set(key: string, value: string, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:function set(key: string, value: string, callback: AsyncCallback\<void>): void;<br>新版本信息:systemapi|@ohos.systemparameter.d.ts|
|访问级别有变化|类名:systemParameter;<br>方法or属性:function set(key: string, value: string): Promise\<void>;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:function set(key: string, value: string): Promise\<void>;<br>新版本信息:systemapi|@ohos.systemparameter.d.ts|
|访问级别有变化|类名:systemParameterEnhance;<br>方法or属性:function getSync(key: string, def?: string): string;<br>旧版本信息:|类名:systemParameterEnhance;<br>方法or属性:function getSync(key: string, def?: string): string;<br>新版本信息:systemapi|@ohos.systemParameterEnhance.d.ts|
|访问级别有变化|类名:systemParameterEnhance;<br>方法or属性:function get(key: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:systemParameterEnhance;<br>方法or属性:function get(key: string, callback: AsyncCallback\<string>): void;<br>新版本信息:systemapi|@ohos.systemParameterEnhance.d.ts|
|访问级别有变化|类名:systemParameterEnhance;<br>方法or属性:function get(key: string, def: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:systemParameterEnhance;<br>方法or属性:function get(key: string, def: string, callback: AsyncCallback\<string>): void;<br>新版本信息:systemapi|@ohos.systemParameterEnhance.d.ts|
|访问级别有变化|类名:systemParameterEnhance;<br>方法or属性:function get(key: string, def?: string): Promise\<string>;<br>旧版本信息:|类名:systemParameterEnhance;<br>方法or属性:function get(key: string, def?: string): Promise\<string>;<br>新版本信息:systemapi|@ohos.systemParameterEnhance.d.ts|
|访问级别有变化|类名:systemParameterEnhance;<br>方法or属性:function setSync(key: string, value: string): void;<br>旧版本信息:|类名:systemParameterEnhance;<br>方法or属性:function setSync(key: string, value: string): void;<br>新版本信息:systemapi|@ohos.systemParameterEnhance.d.ts|
|访问级别有变化|类名:systemParameterEnhance;<br>方法or属性:function set(key: string, value: string, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:systemParameterEnhance;<br>方法or属性:function set(key: string, value: string, callback: AsyncCallback\<void>): void;<br>新版本信息:systemapi|@ohos.systemParameterEnhance.d.ts|
|访问级别有变化|类名:systemParameterEnhance;<br>方法or属性:function set(key: string, value: string): Promise\<void>;<br>旧版本信息:|类名:systemParameterEnhance;<br>方法or属性:function set(key: string, value: string): Promise\<void>;<br>新版本信息:systemapi|@ohos.systemParameterEnhance.d.ts|
|type有变化|类名:DeviceResponse;<br>方法or属性:brand: string;<br>旧版本信息:|类名:DeviceResponse;<br>方法or属性:brand: string;<br>新版本信息:string|@system.device.d.ts|
|type有变化|类名:DeviceResponse;<br>方法or属性:manufacturer: string;<br>旧版本信息:|类名:DeviceResponse;<br>方法or属性:manufacturer: string;<br>新版本信息:string|@system.device.d.ts|
|type有变化|类名:DeviceResponse;<br>方法or属性:model: string;<br>旧版本信息:|类名:DeviceResponse;<br>方法or属性:model: string;<br>新版本信息:string|@system.device.d.ts|
|type有变化|类名:DeviceResponse;<br>方法or属性:product: string;<br>旧版本信息:|类名:DeviceResponse;<br>方法or属性:product: string;<br>新版本信息:string|@system.device.d.ts|
|type有变化|类名:DeviceResponse;<br>方法or属性:language: string;<br>旧版本信息:|类名:DeviceResponse;<br>方法or属性:language: string;<br>新版本信息:string|@system.device.d.ts|
|type有变化|类名:DeviceResponse;<br>方法or属性:region: string;<br>旧版本信息:|类名:DeviceResponse;<br>方法or属性:region: string;<br>新版本信息:string|@system.device.d.ts|
|type有变化|类名:DeviceResponse;<br>方法or属性:windowWidth: number;<br>旧版本信息:|类名:DeviceResponse;<br>方法or属性:windowWidth: number;<br>新版本信息:number|@system.device.d.ts|
|type有变化|类名:DeviceResponse;<br>方法or属性:windowHeight: number;<br>旧版本信息:|类名:DeviceResponse;<br>方法or属性:windowHeight: number;<br>新版本信息:number|@system.device.d.ts|
|type有变化|类名:DeviceResponse;<br>方法or属性:screenDensity: number;<br>旧版本信息:|类名:DeviceResponse;<br>方法or属性:screenDensity: number;<br>新版本信息:number|@system.device.d.ts|
|type有变化|类名:DeviceResponse;<br>方法or属性:screenShape: 'rect' \| 'circle';<br>旧版本信息:|类名:DeviceResponse;<br>方法or属性:screenShape: 'rect' \| 'circle';<br>新版本信息:'rect' \| 'circle'|@system.device.d.ts|
|type有变化|类名:DeviceResponse;<br>方法or属性:apiVersion: number;<br>旧版本信息:|类名:DeviceResponse;<br>方法or属性:apiVersion: number;<br>新版本信息:number|@system.device.d.ts|
|type有变化|类名:DeviceResponse;<br>方法or属性:deviceType: string;<br>旧版本信息:|类名:DeviceResponse;<br>方法or属性:deviceType: string;<br>新版本信息:string|@system.device.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|
| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:SecureDnsMode;<br>方法or属性:OFF = 0|@ohos.web.webview.d.ts|
|新增|NA|类名:SecureDnsMode;<br>方法or属性:AUTO = 1|@ohos.web.webview.d.ts|
|新增|NA|类名:SecureDnsMode;<br>方法or属性:SECURE_ONLY = 2|@ohos.web.webview.d.ts|
|新增|NA|类名:WebviewController;<br>方法or属性:prefetchPage(url: string, additionalHeaders?: Array\<WebHeader>): void;|@ohos.web.webview.d.ts|
|新增|NA|类名:WebviewController;<br>方法or属性:static prepareForPageLoad(url: string, preconnectable: boolean, numSockets: number): void;|@ohos.web.webview.d.ts|
|废弃版本有变化|类名:SecureDnsMode;<br>方法or属性:Off = 0<br>旧版本信息:|类名:SecureDnsMode;<br>方法or属性:Off = 0<br>新版本信息:10<br>代替接口: SecureDnsMode#OFF|@ohos.web.webview.d.ts|
|废弃版本有变化|类名:SecureDnsMode;<br>方法or属性:Auto = 1<br>旧版本信息:|类名:SecureDnsMode;<br>方法or属性:Auto = 1<br>新版本信息:10<br>代替接口: SecureDnsMode#AUTO|@ohos.web.webview.d.ts|
|废弃版本有变化|类名:SecureDnsMode;<br>方法or属性:SecureOnly = 2<br>旧版本信息:|类名:SecureDnsMode;<br>方法or属性:SecureOnly = 2<br>新版本信息:10<br>代替接口: SecureDnsMode#SECURE_ONLY|@ohos.web.webview.d.ts|
|新增(错误码)|类名:WebStorage;<br>方法or属性:static getOrigins(callback: AsyncCallback\<Array\<WebStorageOrigin>>): void;<br>旧版本信息:|类名:WebStorage;<br>方法or属性:static getOrigins(callback: AsyncCallback\<Array\<WebStorageOrigin>>): void;<br>新版本信息:401,17100012|@ohos.web.webview.d.ts|
|新增(错误码)|类名:WebStorage;<br>方法or属性:static getOriginQuota(origin: string, callback: AsyncCallback\<number>): void;<br>旧版本信息:|类名:WebStorage;<br>方法or属性:static getOriginQuota(origin: string, callback: AsyncCallback\<number>): void;<br>新版本信息:401,17100011|@ohos.web.webview.d.ts|
|新增(错误码)|类名:WebStorage;<br>方法or属性:static getOriginUsage(origin: string, callback: AsyncCallback\<number>): void;<br>旧版本信息:|类名:WebStorage;<br>方法or属性:static getOriginUsage(origin: string, callback: AsyncCallback\<number>): void;<br>新版本信息:401,17100011|@ohos.web.webview.d.ts|
|新增(错误码)|类名:GeolocationPermissions;<br>方法or属性:static getAccessibleGeolocation(origin: string, callback: AsyncCallback\<boolean>): void;<br>旧版本信息:|类名:GeolocationPermissions;<br>方法or属性:static getAccessibleGeolocation(origin: string, callback: AsyncCallback\<boolean>): void;<br>新版本信息:401,17100011|@ohos.web.webview.d.ts|
|新增(错误码)|类名:GeolocationPermissions;<br>方法or属性:static getStoredGeolocation(callback: AsyncCallback\<Array\<string>>): void;<br>旧版本信息:|类名:GeolocationPermissions;<br>方法or属性:static getStoredGeolocation(callback: AsyncCallback\<Array\<string>>): void;<br>新版本信息:401|@ohos.web.webview.d.ts|
|新增(错误码)|类名:WebCookieManager;<br>方法or属性:static saveCookieAsync(callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:WebCookieManager;<br>方法or属性:static saveCookieAsync(callback: AsyncCallback\<void>): void;<br>新版本信息:401|@ohos.web.webview.d.ts|
|新增(错误码)|类名:WebviewController;<br>方法or属性:storeWebArchive(baseName: string, autoName: boolean, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:WebviewController;<br>方法or属性:storeWebArchive(baseName: string, autoName: boolean, callback: AsyncCallback\<string>): void;<br>新版本信息:401,17100001,17100003|@ohos.web.webview.d.ts|
|新增(错误码)|类名:WebviewController;<br>方法or属性:runJavaScript(script: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:WebviewController;<br>方法or属性:runJavaScript(script: string, callback: AsyncCallback\<string>): void;<br>新版本信息:401,17100001|@ohos.web.webview.d.ts|
|新增(错误码)|类名:WebviewController;<br>方法or属性:runJavaScriptExt(script: string, callback: AsyncCallback\<JsMessageExt>): void;<br>旧版本信息:|类名:WebviewController;<br>方法or属性:runJavaScriptExt(script: string, callback: AsyncCallback\<JsMessageExt>): void;<br>新版本信息:401,17100001|@ohos.web.webview.d.ts|
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册