Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
d3c9aef1
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d3c9aef1
编写于
3月 30, 2022
作者:
Z
zengyawen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docs
Signed-off-by:
N
zengyawen
<
zengyawen1@huawei.com
>
上级
6075bedd
变更
40
展开全部
隐藏空白更改
内联
并排
Showing
40 changed file
with
5384 addition
and
611 deletion
+5384
-611
zh-cn/application-dev/application-dev-website.md
zh-cn/application-dev/application-dev-website.md
+211
-119
zh-cn/application-dev/reference/apis/Readme-CN.md
zh-cn/application-dev/reference/apis/Readme-CN.md
+2
-18
zh-cn/application-dev/website.md
zh-cn/application-dev/website.md
+195
-115
zh-cn/release-notes/api-change/v3.1-Release/changelog-v3.1-release.md
...e-notes/api-change/v3.1-Release/changelog-v3.1-release.md
+295
-8
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ability.md
...lease-notes/api-change/v3.1-Release/js-apidiff-ability.md
+165
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-access-control.md
...otes/api-change/v3.1-Release/js-apidiff-access-control.md
+0
-14
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md
...notes/api-change/v3.1-Release/js-apidiff-accessibility.md
+47
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-account.md
...lease-notes/api-change/v3.1-Release/js-apidiff-account.md
+108
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ace.md
...n/release-notes/api-change/v3.1-Release/js-apidiff-ace.md
+49
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-battery.md
...lease-notes/api-change/v3.1-Release/js-apidiff-battery.md
+16
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md
...elease-notes/api-change/v3.1-Release/js-apidiff-bundle.md
+60
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md
...e-notes/api-change/v3.1-Release/js-apidiff-communicate.md
+459
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-complier-and-runtime.md
...pi-change/v3.1-Release/js-apidiff-complier-and-runtime.md
+375
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-config-policy.md
...notes/api-change/v3.1-Release/js-apidiff-config-policy.md
+0
-14
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md
...n/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md
+78
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md
...es/api-change/v3.1-Release/js-apidiff-distributed-data.md
+107
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-hardware.md
...pi-change/v3.1-Release/js-apidiff-distributed-hardware.md
+1
-1
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md
...-change/v3.1-Release/js-apidiff-event-and-notification.md
+33
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md
...tes/api-change/v3.1-Release/js-apidiff-file-management.md
+54
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md
...e-notes/api-change/v3.1-Release/js-apidiff-geolocation.md
+111
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-global.md
...elease-notes/api-change/v3.1-Release/js-apidiff-global.md
+103
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-graphic.md
...lease-notes/api-change/v3.1-Release/js-apidiff-graphic.md
+823
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-misc.md
.../release-notes/api-change/v3.1-Release/js-apidiff-misc.md
+214
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md
...s/api-change/v3.1-Release/js-apidiff-multi-modal-input.md
+14
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md
...se-notes/api-change/v3.1-Release/js-apidiff-multimedia.md
+419
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-network.md
...lease-notes/api-change/v3.1-Release/js-apidiff-network.md
+182
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-recovery.md
...ease-notes/api-change/v3.1-Release/js-apidiff-recovery.md
+0
-14
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md
.../api-change/v3.1-Release/js-apidiff-resource-scheduler.md
+87
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-security.md
...ease-notes/api-change/v3.1-Release/js-apidiff-security.md
+243
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md
...elease-notes/api-change/v3.1-Release/js-apidiff-sensor.md
+108
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-settings.md
...ease-notes/api-change/v3.1-Release/js-apidiff-settings.md
+84
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-soft-bus.md
...ease-notes/api-change/v3.1-Release/js-apidiff-soft-bus.md
+39
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md
...ase-notes/api-change/v3.1-Release/js-apidiff-telephony.md
+226
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md
...lease-notes/api-change/v3.1-Release/js-apidiff-unitest.md
+49
-0
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-update.md
...elease-notes/api-change/v3.1-Release/js-apidiff-update.md
+0
-14
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-usb.md
...n/release-notes/api-change/v3.1-Release/js-apidiff-usb.md
+69
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md
...api-change/v3.1-Release/js-apidiff-user-authentication.md
+61
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-v3.1-release.md
...-notes/api-change/v3.1-Release/js-apidiff-v3.1-release.md
+0
-4
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-window.md
...elease-notes/api-change/v3.1-Release/js-apidiff-window.md
+93
-10
zh-cn/release-notes/api-change/v3.1-Release/native-apidiff-v3.1-release.md
...es/api-change/v3.1-Release/native-apidiff-v3.1-release.md
+204
-10
未找到文件。
zh-cn/application-dev/application-dev-website.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/application-dev/reference/apis/Readme-CN.md
浏览文件 @
d3c9aef1
...
...
@@ -3,45 +3,31 @@
-
Ability框架
-
[
@ohos.ability.dataUriUtils (DataUriUtils模块)
](
js-apis-DataUriUtils.md
)
-
[
@ohos.ability.errorCode (ErrorCode)
](
js-apis-ability-error
c
ode.md
)
-
[
@ohos.ability.errorCode (ErrorCode)
](
js-apis-ability-error
C
ode.md
)
-
[
@ohos.ability.wantConstant (wantConstant)
](
js-apis-ability-wantConstant.md
)
-
[
@ohos.application.Ability (Ability)
](
js-apis-application-ability.md
)
-
[
@ohos.application.AbilityConstant (AbilityConstant)
](
js-apis-application-abilityConstant.md
)
-
[
@ohos.application.abilityDelegatorRegistry (AbilityDelegatorRegistry)
](
js-apis-abilityDelegatorRegistry.md
)
-
[
@ohos.application.AbilityStage (AbilityStage)
](
js-apis-application-abilitystage.md
)
-
[
@ohos.application.appManager (appManager)
](
js-apis-appmanager.md
)
-
[
@ohos.application.Configuration (Configuration)
](
js-apis-configuration.md
)
-
[
@ohos.application.ConfigurationConstant (ConfigurationConstant)
](
js-apis-configurationconstant.md
)
-
[
@ohos.application.DataShareExtensionAbility (DataShareExtensionAbility)
](
js-apis-application-DataShareExtensionAbility.md
)
-
[
@ohos.ability.featureAbility (FeatureAbility模块)
](
js-apis-featureAbility.md
)
-
[
@ohos.application.formBindingData (卡片数据绑定类)
](
js-apis-formbindingdata.md
)
-
[
@ohos.application.FormExtension (FormExtension)
](
js-apis-formextension.md
)
-
[
@ohos.application.formError (FormError)
](
js-apis-formerror.md
)
-
[
@ohos.application.formHost (FormHost)
](
js-apis-formhost.md
)
-
[
@ohos.application.formInfo (FormInfo)
](
js-apis-formInfo.md
)
-
[
@ohos.application.missionManager (missionManager)
](
js-apis-missionManager.md
)
-
[
@ohos.application.formProvider (FormProvider)
](
js-apis-formprovider.md
)
-
[
@ohos.ability.particleAbility (particleAbility模块)
](
js-apis-particleAbility.md
)
-
[
@ohos.application.ServiceExtensionAbility (ServiceExtensionAbility)
](
js-apis-service-extension-ability.md
)
-
[
@ohos.application.StartOptions (StartOptions)
](
js-apis-application-StartOptions.md
)
-
[
@ohos.application.StaticSubscriberExtensionAbility (StaticSubscriberExtensionAbility)
](
js-apis-application-staticSubscriberExtensionAbility.md
)
-
[
@ohos.application.uriPermissionManager (uriPermissionManager)
](
js-apis-uripermissionmanager.md
)
-
[
@ohos.application.Want (Want)
](
js-apis-application-Want.md
)
-
[
@ohos.wantAgent (WantAgent模块)
](
js-apis-wantAgent.md
)
-
ability/
[
dataAbilityHelper (DataAbilityHelper模块)
](
js-apis-dataAbilityHelper.md
)
-
app/
[
context (Context模块)
](
js-apis-Context.md
)
-
application/
[
AbilityContext (AbilityContext)
](
js-apis-ability-context.md
)
-
application/
[
abilityDelegator (AbilityDelegator)
](
js-apis-application-abilityDelegator.md
)
-
application/
[
abilityDelegatorArgs (AbilityDelegatorArgs)
](
js-apis-application-abilityDelegatorArgs.md
)
-
application/
[
abilityMonitor (AbilityMonitor)
](
js-apis-application-abilityMonitor.md
)
-
application/
[
AbilityRunningInfo (AbilityRunningInfo)
](
js-apis-abilityrunninginfo.md
)
-
application/
[
AbilityStageContext (AbilityStageContext)
](
js-apis-abilitystagecontext.md
)
-
application/
[
Context (Context)
](
js-apis-application-context.md
)
-
application/
[
ExtensionContext (ExtensionContext)
](
js-apis-extension-context.md
)
-
application/
[
ExtensionRunningInfo (ExtensionRunningInfo)
](
js-apis-extensionrunninginfo.md
)
-
application/
[
FormExtensionContext (FormExtensionContext)
](
js-apis-formextensioncontext.md
)
-
application/
[
MissionSnapshot (MissionSnapshot)
](
js-apis-application-MissionSnapshot.md
)
-
application/
[
PermissionRequestResult (PermissionRequestResult)
](
js-apis-permissionrequestresult.md
)
-
application/
[
ProcessRunningInfo (ProcessRunningInfo)
](
js-apis-processrunninginfo.md
)
-
application/
[
ServiceExtensionContext (ServiceExtensionContext)
](
js-apis-service-extension-context.md
)
-
application/
[
shellCmdResult (ShellCmdResult)
](
js-apis-application-shellCmdResult.md
)
...
...
@@ -51,7 +37,6 @@
-
[
@ohos.events.emitter (Emitter)
](
js-apis-emitter.md
)
-
[
@ohos.notification (Notification模块)
](
js-apis-notification.md
)
-
[
@ohos.reminderAgent (后台代理提醒)
](
js-apis-reminderAgent.md
)
-
application/
[
EventHub (EventHub)
](
js-apis-eventhub.md
)
-
应用程序包管理
-
[
@ohos.bundle (Bundle模块)
](
js-apis-Bundle.md
)
...
...
@@ -220,5 +205,4 @@
-
[
@system.sensor (传感器)
](
js-apis-system-sensor.md
)
-
[
@system.storage (数据存储)
](
js-apis-system-storage.md
)
-
[
@system.vibrator (振动)
](
js-apis-system-vibrate.md
)
-
[
console (日志打印)
](
js-apis-logs.md
)
-
[
console (日志打印)
](
js-apis-logs.md
)
\ No newline at end of file
zh-cn/application-dev/website.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/changelog-v3.1-release.md
浏览文件 @
d3c9aef1
# ChangeLog
**关键的接口/组件变更**
## XXX子系统
### cl.rpc.1 sendRequest返回值类型变更
## 包管理子系统
### 结构体BundleInfo
#### 变更前:
BundleInfo结构体中包含了abilityInfo和hapModuleInfo这两个属性。
#### 变更后
BundleInfo结构体中将abilityInfo和hapModuleInfo这两个属性修改为abilityInfos和hapModuleInfos。
#### 变更影响
无
#### 关键的接口/组件变更
无
#### 适配指导
如果代码中有使用到上述已删除的属性,需要适配新的结构体。
### 结构体AbilityInfo
#### 变更前:
AbilityInfo结构体中包含了formEntity、minFormHeight、defaultFormHeight、minFormWidth、defaultFormWidth和customizeData属性。
#### 变更后
AbilityInfo结构体中删除了formEntity、minFormHeight、defaultFormHeight、minFormWidth、defaultFormWidth和customizeData属性,其中customizeData修改为metaData。
#### 变更影响
无
#### 关键的接口/组件变更
无
#### 适配指导
如果代码中有使用到上述已删除的属性,需要适配新的结构体。
### 结构体ApplicationInfo
#### 变更前:
ApplicationInfo结构体中包含了customizeData这个属性。
#### 变更后
AbilityInfo结构体中删除了customizeData,修改为metaData。
#### 变更影响
无
#### 关键的接口/组件变更
无
#### 适配指导
如果代码中有使用到上述已删除的属性,需要适配新的结构体。
### 接口getAllShortcutInfo
#### 变更前:
该接口查询快捷信息。
#### 变更后
该接口已废弃,改为系统API,不支持三方应用。
#### 变更影响
使用该接口的代码需要删除。
#### 关键的接口/组件变更
无
#### 适配指导
无
### 接口checkPermission
#### 变更前:
该接口查询权限的授权状态。
#### 变更后
该接口已废弃,包管理子系统不提供该接口。
#### 变更影响
使用该接口的代码需要删除。
#### 关键的接口/组件变更
无
#### 适配指导
调用Context提供的权限查询接口。
```
C++
import featureAbility from '@ohos.ability.featureAbility'
import bundle from '@ohos.bundle'
var context = featureAbility.getContext();
bundle.getBundleInfo('com.context.test', 1, (datainfo) =>{
context.verifyPermission("com.example.permission", datainfo.uid);
});
```
## 软总线子系统
### 结构体MessageOption
#### 变更前:
MessageOption结构体中
`TF_WAIT_TIME == 4`
。
#### 变更后
MessageOption结构体中
`TF_WAIT_TIME == 8`
。
#### 变更影响
RPC 同步调用默认等待时间从4秒变为8秒。
#### 关键的接口/组件变更
无
#### 适配指导
涉及RPC通信的代码,可以根据业务情况设置等待时间:
`setWaitTime(waitTime: number): void`
。
### 接口queryLocalInterface
#### 变更前:
接口返回值为
`IRemoteBroker`
。
#### 变更后
接口返回值为
`IRemoteObject`
。
#### 变更影响
……
使用该接口的代码,接口返回值类型为
`IRemoteObject`
。
#### 关键的接口/组件变更
**模块**
**接口**
**变更后接口**
……
无
#### 适配指导
……
```
import FA from "@ohos.ability.featureAbility";
let proxy;
let connect = {
onConnect: function(elementName, remoteProxy) {
console.log("RpcClient: js onConnect called.");
proxy = remoteProxy;
},
onDisconnect: function (elementName) {
console.log("RpcClient: onDisconnect");
},
onFailed: function() {
console.log("RpcClient: onFailed");
}
};
let want = {
"bundleName":"com.ohos.server",
"abilityName":"com.ohos.server.MainAbility",
};
FA.connectAbility(want, connect);
let broker = proxy.queryLocalInterface("testObject");
console.log("RpcClient: queryLocalInterface is " + broker);
```
### 接口readCharArray
#### 变更前:
`readCharArray(dataIn: boolean[]) : void`
: 入参类型为bool数组。
`readCharArray(): boolean[]`
: 返回值为bool数组。
#### 变更后
`readCharArray(dataIn: boolean[]) : void`
: 入参类型为number数组。
`readCharArray(): boolean[]`
: 返回值为number数组。
#### 变更影响
使用该接口的代码入参、返回值类型从
`boolean[]`
转为
`number[]`
。
#### 关键的接口/组件变更
无
#### 适配指导
```
let data = rpc.MessageParcel.create();
let result = data.writeCharArray(['a', 'b', 'c']);
console.log("RpcClient: writeCharArray is " + result);
let array = new Array(3);
data.readCharArray(array);
```
```
let data = rpc.MessageParcel.create();
let result = data.writeCharArray(['a', 'b', 'c']);
console.log("RpcClient: writeCharArray is " + result);
let array = data.readCharArray();
console.log("RpcClient: readCharArray is " + array);
```
### 接口sendRequest
#### 变更前:
该接口返回值为
`boolean`
。
#### 变更后
该接口返回值为
`Promise<SendRequestResult>`
。
#### 变更影响
使用该接口的代码返回值类型为期约
`Promise<SendRequestResult>`
。
#### 关键的接口/组件变更
无
#### 适配指导
```
import FA from "@ohos.ability.featureAbility";
let proxy;
let connect = {
onConnect: function(elementName, remoteProxy) {
console.log("RpcClient: js onConnect called.");
proxy = remoteProxy;
},
onDisconnect: function(elementName) {
console.log("RpcClient: onDisconnect");
},
onFailed: function() {
console.log("RpcClient: onFailed");
}
};
let want = {
"bundleName": "com.ohos.server",
"abilityName": "com.ohos.server.MainAbility",
};
FA.connectAbility(want, connect);
let option = new rpc.MessageOption();
let data = rpc.MessageParcel.create();
let reply = rpc.MessageParcel.create();
data.writeInt(1);
data.writeString("hello");
proxy.sendRequest(1, data, reply, option)
.then(function(result) {
if (result.errCode === 0) {
console.log("sendRequest got result");
result.reply.readException();
let msg = result.reply.readString();
console.log("RPCTest: reply msg: " + msg);
} else {
console.log("RPCTest: sendRequest failed, errCode: " + result.errCode);
}
}).catch(function(e) {
console.log("RPCTest: sendRequest got exception: " + e.message);
}).finally (() => {
console.log("RPCTest: sendRequest ends, reclaim parcel");
data.reclaim();
reply.reclaim();
});
```
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ability.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
元能力
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
元能力
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| featureability | FeatureAbility | static getDeviceList(flag: number): Promise
<Result>
; | 新增 |
| customizeData | CustomizeData | extra: string; | 新增 |
| applicationInfo | ApplicationInfo | readonly entityType: string; | 新增 |
| applicationInfo | ApplicationInfo | readonly uid: number; | 新增 |
| applicationInfo | ApplicationInfo | readonly accessTokenId: number; | 新增 |
| applicationInfo | ApplicationInfo | readonly removable: boolean; | 新增 |
| applicationInfo | ApplicationInfo | readonly metaData: Map
<string
,
Array
<
CustomizeData
>
>; | 新增 |
| applicationInfo | ApplicationInfo | readonly codePath: string; | 新增 |
| applicationInfo | ApplicationInfo | readonly moduleInfos: Array
<ModuleInfo>
; | 新增 |
| shellCmdResult | ShellCmdResult | exitCode: number; | 新增 |
| shellCmdResult | ShellCmdResult | stdResult: String; | 新增 |
| ProcessRunningInfo | ProcessRunningInfo | bundleNames: Array
<string>
; | 新增 |
| ProcessRunningInfo | ProcessRunningInfo | processName: string; | 新增 |
| ProcessRunningInfo | ProcessRunningInfo | uid: number; | 新增 |
| ProcessRunningInfo | ProcessRunningInfo | pid: number; | 新增 |
| BaseContext | BaseContext | stageMode: boolean; | 新增 |
| abilityDelegatorArgs | AbilityDelegatorArgs | testRunnerClassName: string; | 新增 |
| abilityDelegatorArgs | AbilityDelegatorArgs | testCaseNames: string; | 新增 |
| abilityDelegatorArgs | AbilityDelegatorArgs | parameters: {[key: string]: string}; | 新增 |
| abilityDelegatorArgs | AbilityDelegatorArgs | bundleName: string; | 新增 |
| abilityDelegator | AbilityDelegator | executeShellCommand(cmd: string, callback: AsyncCallback
<ShellCmdResult>
): void;
<br>
executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback
<ShellCmdResult>
): void;
<br>
executeShellCommand(cmd: string, timeoutSecs?: number): Promise
<ShellCmdResult>
; | 新增 |
| abilityDelegator | AbilityDelegator | print(msg: string, callback: AsyncCallback
<void>
): void;
<br>
print(msg: string): Promise
<void>
; | 新增 |
| context | Context | printDrawnCompleted(callback: AsyncCallback
<void>
): void;
<br>
printDrawnCompleted(): Promise
<void>
; | 新增 |
| context | Context | isUpdatingConfigurations(callback: AsyncCallback
<boolean>
): void;
<br>
isUpdatingConfigurations(): Promise
<boolean>
; | 新增 |
| context | Context | getAbilityInfo(callback: AsyncCallback
<AbilityInfo>
): void
<br>
getAbilityInfo(): Promise
<AbilityInfo>
; | 新增 |
| context | Context | getApplicationContext(): Context; | 新增 |
| context | Context | getAppVersionInfo(callback: AsyncCallback
<AppVersionInfo>
): void
<br>
getAppVersionInfo(): Promise
<AppVersionInfo>
; | 新增 |
| context | Context | getHapModuleInfo(callback: AsyncCallback
<HapModuleInfo>
): void
<br>
getHapModuleInfo(): Promise
<HapModuleInfo>
; | 新增 |
| context | Context | getAppType(callback: AsyncCallback
<string>
): void
<br>
getAppType(): Promise
<string>
; | 新增 |
| context | Context | getOrCreateDistributedDir(): Promise
<string>
;
<br>
getOrCreateDistributedDir(callback: AsyncCallback
<string>
): void; | 新增 |
| context | Context | getCacheDir(callback: AsyncCallback
<string>
): void;
<br>
getCacheDir(): Promise
<string>
; | 新增 |
| context | Context | getFilesDir(callback: AsyncCallback
<string>
): void;
<br>
getFilesDir(): Promise
<string>
; | 新增 |
| context | Context | setWakeUpScreen(wakeUp: boolean, callback: AsyncCallback
<void>
): void
<br>
setWakeUpScreen(wakeUp: boolean): Promise
<void>
; | 新增 |
| context | Context | setShowOnLockScreen(show: boolean, callback: AsyncCallback
<void>
): void
<br>
setShowOnLockScreen(show: boolean): Promise
<void>
; | 新增 |
| context | Context | setDisplayOrientation(orientation: DisplayOrientation, callback: AsyncCallback
<void>
): void
<br>
setDisplayOrientation(orientation: DisplayOrientation): Promise
<void>
; | 新增 |
| context | Context | getDisplayOrientation(callback: AsyncCallback
<DisplayOrientation>
): void
<br>
getDisplayOrientation(): Promise
<DisplayOrientation>
; | 新增 |
| appVersionInfo | AppVersionInfo | readonly versionName: string; | 新增 |
| appVersionInfo | AppVersionInfo | readonly versionCode: number; | 新增 |
| appVersionInfo | AppVersionInfo | readonly appName: string; | 新增 |
| dataAbilityHelper | PacMap | [key: string]: number
\|
string
\|
boolean
\|
Array
<string
\|
number
\|
boolean
>
\|
null; | 新增 |
| dataAbilityHelper | DataAbilityHelper | executeBatch(uri: string, operations: Array
<DataAbilityOperation>
, callback: AsyncCallback
<Array
<
DataAbilityResult
>
>): void;
<br>
executeBatch(uri: string, operations: Array
<DataAbilityOperation>
): Promise
<Array
<
DataAbilityResult
>
>; | 新增 |
| dataAbilityHelper | DataAbilityHelper | call(uri: string, method: string, arg: string, extras: PacMap, callback: AsyncCallback
<PacMap>
): void;
<br>
call(uri: string, method: string, arg: string, extras: PacMap): Promise
<PacMap>
; | 新增 |
| ohos.application.Want | Want | entities?: Array
<string>
; | 新增 |
| ohos.application.Want | Want | parameters?: {[key: string]: any}; | 新增 |
| ohos.application.Want | Want | action?: string; | 新增 |
| ohos.application.Want | Want | flags?: number; | 新增 |
| ohos.application.Want | Want | type?: string; | 新增 |
| ohos.application.Want | Want | uri?: string; | 新增 |
| ohos.application.Want | Want | abilityName?: string; | 新增 |
| ohos.application.Want | Want | bundleName?: string; | 新增 |
| ohos.application.Want | Want | deviceId?: string; | 新增 |
| ohos.application.testRunner | TestRunner | onRun(): void; | 新增 |
| ohos.application.testRunner | TestRunner | onPrepare(): void; | 新增 |
| ohos.application.formProvider | formProvider | function updateForm(formId: string, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback
<void>
): void;
<br>
function updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise
<void>
; | 新增 |
| ohos.application.formProvider | formProvider | function setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback
<void>
): void;
<br>
function setFormNextRefreshTime(formId: string, minute: number): Promise
<void>
; | 新增 |
| ohos.application.formInfo | FormParam | TEMPORARY_KEY = "ohos.extra.param.key.form_temporary" | 新增 |
| ohos.application.formInfo | FormParam | HEIGHT_KEY = "ohos.extra.param.key.form_height" | 新增 |
| ohos.application.formInfo | FormParam | WIDTH_KEY = "ohos.extra.param.key.form_width" | 新增 |
| ohos.application.formInfo | FormParam | MODULE_NAME_KEY = "ohos.extra.param.key.module_name" | 新增 |
| ohos.application.formInfo | FormParam | NAME_KEY = "ohos.extra.param.key.form_name" | 新增 |
| ohos.application.formInfo | FormParam | DIMENSION_KEY = "ohos.extra.param.key.form_dimension" | 新增 |
| ohos.application.formInfo | FormState | READY = 1 | 新增 |
| ohos.application.formInfo | FormState | DEFAULT = 0 | 新增 |
| ohos.application.formInfo | FormState | UNKNOWN = -1 | 新增 |
| ohos.application.formInfo | FormStateInfo | want: Want; | 新增 |
| ohos.application.formInfo | FormStateInfo | formState: FormState; | 新增 |
| ohos.application.formInfo | ColorMode | MODE_LIGHT = 1 | 新增 |
| ohos.application.formInfo | ColorMode | MODE_DARK = 0 | 新增 |
| ohos.application.formInfo | ColorMode | MODE_AUTO = -1 | 新增 |
| ohos.application.formInfo | FormType | JS = 1 | 新增 |
| ohos.application.formInfo | FormInfo | customizeData: {[key: string]: [value: string]}; | 新增 |
| ohos.application.formInfo | FormInfo | supportDimensions: Array
<number>
; | 新增 |
| ohos.application.formInfo | FormInfo | defaultDimension: number; | 新增 |
| ohos.application.formInfo | FormInfo | updateDuration: number; | 新增 |
| ohos.application.formInfo | FormInfo | formConfigAbility: string; | 新增 |
| ohos.application.formInfo | FormInfo | scheduledUpdateTime: string; | 新增 |
| ohos.application.formInfo | FormInfo | relatedBundleName: string; | 新增 |
| ohos.application.formInfo | FormInfo | formVisibleNotify: boolean; | 新增 |
| ohos.application.formInfo | FormInfo | updateEnabled: boolean; | 新增 |
| ohos.application.formInfo | FormInfo | isDefault: boolean; | 新增 |
| ohos.application.formInfo | FormInfo | colorMode: ColorMode; | 新增 |
| ohos.application.formInfo | FormInfo | jsComponentName: string; | 新增 |
| ohos.application.formInfo | FormInfo | type: FormType; | 新增 |
| ohos.application.formInfo | FormInfo | description: string; | 新增 |
| ohos.application.formInfo | FormInfo | name: string; | 新增 |
| ohos.application.formInfo | FormInfo | abilityName: string; | 新增 |
| ohos.application.formInfo | FormInfo | moduleName: string; | 新增 |
| ohos.application.formInfo | FormInfo | bundleName: string; | 新增 |
| ohos.application.formError | FormError | ERR_IN_RECOVERY = 36 | 新增 |
| ohos.application.formError | FormError | ERR_FORM_DUPLICATE_ADDED = 31 | 新增 |
| ohos.application.formError | FormError | ERR_SYSTEM_RESPONSES_FAILED = 30 | 新增 |
| ohos.application.formError | FormError | ERR_FORM_FA_NOT_INSTALLED = 20 | 新增 |
| ohos.application.formError | FormError | ERR_FORM_NO_SUCH_DIMENSION = 19 | 新增 |
| ohos.application.formError | FormError | ERR_FORM_NO_SUCH_ABILITY = 18 | 新增 |
| ohos.application.formError | FormError | ERR_FORM_NO_SUCH_MODULE = 17 | 新增 |
| ohos.application.formError | FormError | ERR_MAX_SYSTEM_TEMP_FORMS = 16 | 新增 |
| ohos.application.formError | FormError | ERR_MAX_FORMS_PER_CLIENT = 15 | 新增 |
| ohos.application.formError | FormError | ERR_PROVIDER_DEL_FAIL = 14 | 新增 |
| ohos.application.formError | FormError | ERR_OPERATION_FORM_NOT_SELF = 13 | 新增 |
| ohos.application.formError | FormError | ERR_MAX_INSTANCES_PER_FORM = 12 | 新增 |
| ohos.application.formError | FormError | ERR_MAX_SYSTEM_FORMS = 11 | 新增 |
| ohos.application.formError | FormError | ERR_BIND_PROVIDER_FAILED = 10 | 新增 |
| ohos.application.formError | FormError | ERR_NOT_EXIST_ID = 9 | 新增 |
| ohos.application.formError | FormError | ERR_CFG_NOT_MATCH_ID = 8 | 新增 |
| ohos.application.formError | FormError | ERR_ADD_INVALID_PARAM = 7 | 新增 |
| ohos.application.formError | FormError | ERR_GET_LAYOUT_FAILED = 6 | 新增 |
| ohos.application.formError | FormError | ERR_GET_BUNDLE_FAILED = 5 | 新增 |
| ohos.application.formError | FormError | ERR_GET_INFO_FAILED = 4 | 新增 |
| ohos.application.formError | FormError | ERR_PERMISSION_DENY = 2 | 新增 |
| ohos.application.formError | FormError | ERR_COMMON = 1 | 新增 |
| ohos.application.formBindingData | FormBindingData | data: Object | 新增 |
| ohos.application.formBindingData | formBindingData | function createFormBindingData(obj?: Object
\|
string): FormBindingData; | 新增 |
| ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_LIGHT = 1 | 新增 |
| ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_DARK = 0 | 新增 |
| ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_NOT_SET = -1 | 新增 |
| ohos.application.Configuration | Configuration | colorMode: ConfigurationConstant.ColorMode; | 新增 |
| ohos.application.Configuration | Configuration | language: string; | 新增 |
| ohos.application.appManager | appManager | function getAppMemorySize(): Promise
<number>
;
<br>
function getAppMemorySize(callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.application.appManager | appManager | function isRamConstrainedDevice(): Promise
<boolean>
;
<br>
function isRamConstrainedDevice(callback: AsyncCallback
<boolean>
): void; | 新增 |
| ohos.application.appManager | appManager | function getProcessRunningInfos(): Promise
<Array
<
ProcessRunningInfo
>
>;
<br>
function getProcessRunningInfos(callback: AsyncCallback
<Array
<
ProcessRunningInfo
>
>): void; | 新增 |
| ohos.application.appManager | appManager | function isRunningInStabilityTest(callback: AsyncCallback
<boolean>
): void;
<br>
function isRunningInStabilityTest(): Promise
<boolean>
; | 新增 |
| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | DESTROY | 新增 |
| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | BACKGROUND | 新增 |
| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | FOREGROUND | 新增 |
| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | CREATE | 新增 |
| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | UNINITIALIZED | 新增 |
| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry | function getArguments(): AbilityDelegatorArgs; | 新增 |
| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry | function getAbilityDelegator(): AbilityDelegator; | 新增 |
| ohos.abilityAccessCtrl | GrantStatus | PERMISSION_GRANTED = 0 | 新增 |
| ohos.abilityAccessCtrl | GrantStatus | PERMISSION_DENIED = -1 | 新增 |
| ohos.abilityAccessCtrl | AtManager | verifyAccessToken(tokenID: number, permissionName: string): Promise
<GrantStatus>
; | 新增 |
| ohos.abilityAccessCtrl | abilityAccessCtrl | function createAtManager(): AtManager; | 新增 |
| ohos.ability.wantConstant | Action | ACTION_APP_ACCOUNT_OAUTH = "ohos.account.appAccount.action.oauth" | 新增 |
| ohos.ability.wantConstant | Action | ACTION_VIDEO_CAPTURE = "ohos.want.action.videoCapture" | 新增 |
| ohos.ability.wantConstant | Action | ACTION_IMAGE_CAPTURE = "ohos.want.action.imageCapture" | 新增 |
| ohos.ability.particleAbility | ErrorCode | INVALID_PARAMETER = -1 | 新增 |
| ohos.ability.particleAbility | particleAbility | function disconnectAbility(connection: number, callback:AsyncCallback
<void>
): void;
<br>
function disconnectAbility(connection: number): Promise
<void>
; | 新增 |
| ohos.ability.particleAbility | particleAbility | function connectAbility(request: Want, options:ConnectOptions): number; | 新增 |
| ohos.ability.particleAbility | particleAbility | function cancelBackgroundRunning(callback: AsyncCallback
<void>
): void;
<br>
function cancelBackgroundRunning(): Promise
<void>
; | 新增 |
| ohos.ability.particleAbility | particleAbility | function startBackgroundRunning(id: number, request: NotificationRequest, callback: AsyncCallback
<void>
): void;
<br>
function startBackgroundRunning(id: number, request: NotificationRequest): Promise
<void>
; | 新增 |
| ohos.ability.featureAbility | featureAbility | function getWindow(callback: AsyncCallback
<window.Window>
): void;
<br>
function getWindow(): Promise
<window.Window>
; | 新增 |
| ohos.ability.errorCode | ErrorCode | NO_ERROR = 0 | 新增 |
| ohos.ability.errorCode | ErrorCode | INVALID_PARAMETER = -1 | 新增 |
| ohos.ability.errorCode | ErrorCode | ABILITY_NOT_FOUND = -2 | 新增 |
| ohos.ability.errorCode | ErrorCode | PERMISSION_DENY = -3 | 新增 |
| lifecycle | LifecycleData | call?(method: string, arg: string, extras: PacMap, callback: AsyncCallback
<PacMap>
): void; | 新增 |
| lifecycle | LifecycleData | executeBatch?(ops: Array
<DataAbilityOperation>
, callback: AsyncCallback
<Array
<
DataAbilityResult
>
>): void; | 新增 |
| lifecycle | LifecycleService | onReconnect?(want: Want): void; | 新增 |
| lifecycle | LifecycleApp | onMemoryLevel?(level: number): void; | 新增 |
| lifecycle | LifecycleApp | onNewWant?(want: Want): void; | 新增 |
| lifecycle | LifecycleApp | onActive?(): void; | 新增 |
| lifecycle | LifecycleApp | onInactive?(): void; | 新增 |
| lifecycle | LifecycleApp | onRestoreAbilityState?(inState: PacMap): void; | 新增 |
| lifecycle | LifecycleApp | onSaveAbilityState?(outState: PacMap): void; | 新增 |
| lifecycle | LifecycleForm | onAcquireFormState?(want: Want): formInfo.FormState; | 新增 |
| lifecycle | LifecycleForm | onDestroy?(formId: string): void; | 新增 |
| lifecycle | LifecycleForm | onEvent?(formId: string, message: string): void; | 新增 |
| lifecycle | LifecycleForm | onVisibilityChange?(newStatus: { [key: string]: number }): void; | 新增 |
| lifecycle | LifecycleForm | onUpdate?(formId: string): void; | 新增 |
| lifecycle | LifecycleForm | onCastToNormal?(formId: string): void; | 新增 |
| lifecycle | LifecycleForm | onCreate?(want: Want): formBindingData.FormBindingData; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-access-control.md
已删除
100644 → 0
浏览文件 @
6075bedd
# xxx子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
无障碍
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
无障碍
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.accessibility | EventInfo | itemCount?: number; | 新增 |
| ohos.accessibility | EventInfo | endIndex?: number; | 新增 |
| ohos.accessibility | EventInfo | currentIndex?: number; | 新增 |
| ohos.accessibility | EventInfo | beginIndex?: number; | 新增 |
| ohos.accessibility | EventInfo | lastContent?: string; | 新增 |
| ohos.accessibility | EventInfo | contents?: Array
<string>
; | 新增 |
| ohos.accessibility | EventInfo | textMoveUnit?: TextMoveUnit; | 新增 |
| ohos.accessibility | EventInfo | triggerAction: Action; | 新增 |
| ohos.accessibility | EventInfo | description?: string; | 新增 |
| ohos.accessibility | EventInfo | pageId ?: number; | 新增 |
| ohos.accessibility | EventInfo | componentType?: string; | 新增 |
| ohos.accessibility | EventInfo | bundleName: string; | 新增 |
| ohos.accessibility | EventInfo | windowUpdateType?: WindowUpdateType; | 新增 |
| ohos.accessibility | EventInfo | type: EventType; | 新增 |
| ohos.accessibility | EventInfo | constructor(jsonObject); | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly eventTypes: Array
<EventType>
; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly description: string; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly capabilities: Array
<Capability>
; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly abilityTypes: Array
<AbilityType>
; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly bundleName: string; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly name: string; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly id: string; | 新增 |
| ohos.accessibility | CaptionsStyle | windowColor: number
\|
string; | 新增 |
| ohos.accessibility | CaptionsStyle | backgroundColor: number
\|
string; | 新增 |
| ohos.accessibility | CaptionsStyle | fontEdgeType: CaptionsFontEdgeType; | 新增 |
| ohos.accessibility | CaptionsStyle | fontColor: number
\|
string; | 新增 |
| ohos.accessibility | CaptionsStyle | fontScale: number; | 新增 |
| ohos.accessibility | CaptionsStyle | fontFamily: CaptionsFontFamily; | 新增 |
| ohos.accessibility | CaptionsManager | off(type: 'styleChange', callback?: Callback
<CaptionsStyle>
): void; | 新增 |
| ohos.accessibility | CaptionsManager | off(type: 'enableChange', callback?: Callback
<boolean>
): void; | 新增 |
| ohos.accessibility | CaptionsManager | on(type: 'styleChange', callback: Callback
<CaptionsStyle>
): void; | 新增 |
| ohos.accessibility | CaptionsManager | on(type: 'enableChange', callback: Callback
<boolean>
): void; | 新增 |
| ohos.accessibility | CaptionsManager | style: CaptionsStyle; | 新增 |
| ohos.accessibility | CaptionsManager | enabled: boolean; | 新增 |
| ohos.accessibility | accessibility | function getCaptionsManager(): CaptionsManager; | 新增 |
| ohos.accessibility | accessibility | function off(type: 'touchGuideStateChange', callback?: Callback
<boolean>
): void; | 新增 |
| ohos.accessibility | accessibility | function off(type: 'accessibilityStateChange', callback?: Callback
<boolean>
): void; | 新增 |
| ohos.accessibility | accessibility | function on(type: 'touchGuideStateChange', callback: Callback
<boolean>
): void; | 新增 |
| ohos.accessibility | accessibility | function on(type: 'accessibilityStateChange', callback: Callback
<boolean>
): void; | 新增 |
| ohos.accessibility | accessibility | function sendEvent(event: EventInfo, callback: AsyncCallback
<void>
): void;
<br>
function sendEvent(event: EventInfo): Promise
<void>
; | 新增 |
| ohos.accessibility | accessibility | function getAbilityLists(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback
<Array
<
AccessibilityAbilityInfo
>
>): void;
<br>
function getAbilityLists(abilityType: AbilityType, stateType: AbilityState): Promise
<Array
<
AccessibilityAbilityInfo
>
>; | 新增 |
| ohos.accessibility | accessibility | function isOpenTouchGuide(callback: AsyncCallback
<boolean>
): void;
<br>
function isOpenTouchGuide(): Promise
<boolean>
; | 新增 |
| ohos.accessibility | accessibility | function isOpenAccessibility(callback: AsyncCallback
<boolean>
): void;
<br>
function isOpenAccessibility(): Promise
<boolean>
; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-account.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
账号
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
账号
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.account.osAccount | OsAccountType | GUEST | 新增 |
| ohos.account.osAccount | OsAccountType | NORMAL | 新增 |
| ohos.account.osAccount | OsAccountType | ADMIN = 0 | 新增 |
| ohos.account.osAccount | DomainAccountInfo | accountName: string; | 新增 |
| ohos.account.osAccount | DomainAccountInfo | domain: string; | 新增 |
| ohos.account.osAccount | OsAccountInfo | domainInfo: DomainAccountInfo; | 新增 |
| ohos.account.osAccount | OsAccountInfo | distributedInfo: distributedAccount.DistributedInfo; | 新增 |
| ohos.account.osAccount | OsAccountInfo | isCreateCompleted: boolean; | 新增 |
| ohos.account.osAccount | OsAccountInfo | isActived: boolean; | 新增 |
| ohos.account.osAccount | OsAccountInfo | serialNumber: number; | 新增 |
| ohos.account.osAccount | OsAccountInfo | lastLoginTime: number; | 新增 |
| ohos.account.osAccount | OsAccountInfo | createTime: number; | 新增 |
| ohos.account.osAccount | OsAccountInfo | photo: string; | 新增 |
| ohos.account.osAccount | OsAccountInfo | isVerified: boolean; | 新增 |
| ohos.account.osAccount | OsAccountInfo | constraints: Array
<string>
; | 新增 |
| ohos.account.osAccount | OsAccountInfo | type: OsAccountType; | 新增 |
| ohos.account.osAccount | OsAccountInfo | localName: string; | 新增 |
| ohos.account.osAccount | OsAccountInfo | localId: number; | 新增 |
| ohos.account.osAccount | AccountManager | getSerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback
<number>
): void;
<br>
getSerialNumberByOsAccountLocalId(localId: number): Promise
<number>
; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback
<number>
): void;
<br>
getOsAccountLocalIdBySerialNumber(serialNumber: number): Promise
<number>
; | 新增 |
| ohos.account.osAccount | AccountManager | getDistributedVirtualDeviceId(callback: AsyncCallback
<string>
): void;
<br>
getDistributedVirtualDeviceId(): Promise
<string>
; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountTypeFromProcess(callback: AsyncCallback
<OsAccountType>
): void;
<br>
getOsAccountTypeFromProcess(): Promise
<OsAccountType>
; | 新增 |
| ohos.account.osAccount | AccountManager | queryCurrentOsAccount(callback: AsyncCallback
<OsAccountInfo>
): void;
<br>
queryCurrentOsAccount(): Promise
<OsAccountInfo>
; | 新增 |
| ohos.account.osAccount | AccountManager | queryActivatedOsAccountIds(callback: AsyncCallback
<Array
<
number
>
>): void;
<br>
queryActivatedOsAccountIds(): Promise
<Array
<
number
>
>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountAllConstraints(localId: number, callback: AsyncCallback
<Array
<
string
>
>): void;
<br>
getOsAccountAllConstraints(localId: number): Promise
<Array
<
string
>
>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback
<number>
): void;
<br>
getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise
<number>
; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback
<number>
): void;
<br>
getOsAccountLocalIdFromUid(uid: number): Promise
<number>
; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromProcess(callback: AsyncCallback
<number>
): void;
<br>
getOsAccountLocalIdFromProcess(): Promise
<number>
; | 新增 |
| ohos.account.osAccount | AccountManager | getCreatedOsAccountsCount(callback: AsyncCallback
<number>
): void;
<br>
getCreatedOsAccountsCount(): Promise
<number>
; | 新增 |
| ohos.account.osAccount | AccountManager | isOsAccountVerified(callback: AsyncCallback
<boolean>
): void;
<br>
isOsAccountVerified(localId: number, callback: AsyncCallback
<boolean>
): void;
<br>
isOsAccountVerified(localId?: number): Promise
<boolean>
; | 新增 |
| ohos.account.osAccount | AccountManager | isTestOsAccount(callback: AsyncCallback
<boolean>
): void;
<br>
isTestOsAccount(): Promise
<boolean>
; | 新增 |
| ohos.account.osAccount | AccountManager | isOsAccountConstraintEnable(localId: number, constraint: string, callback: AsyncCallback
<boolean>
): void;
<br>
isOsAccountConstraintEnable(localId: number, constraint: string): Promise
<boolean>
; | 新增 |
| ohos.account.osAccount | AccountManager | isOsAccountActived(localId: number, callback: AsyncCallback
<boolean>
): void;
<br>
isOsAccountActived(localId: number): Promise
<boolean>
; | 新增 |
| ohos.account.osAccount | AccountManager | isMultiOsAccountEnable(callback: AsyncCallback
<boolean>
): void;
<br>
isMultiOsAccountEnable(): Promise
<boolean>
; | 新增 |
| ohos.account.osAccount | osAccount | function getAccountManager(): AccountManager; | 新增 |
| ohos.account.appAccount | Authenticator | authenticate(name: string, authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | 新增 |
| ohos.account.appAccount | Authenticator | addAccountImplicitly(authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | 新增 |
| ohos.account.appAccount | AuthenticatorCallback | onRequestRedirected: (request: Want) => void; | 新增 |
| ohos.account.appAccount | AuthenticatorCallback | onResult: (code: number, result: {[key: string]: any}) => void; | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_PERMISSION_DENIED = 10018 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_OAUTH_UNSUPPORT_AUTH_TYPE = 10017 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_OAUTH_UNSUPPORT_ACTION = 10016 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_OAUTH_TOKEN_TOO_MANY = 10015 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_OAUTH_TOKEN_NOT_EXIST = 10014 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_OAUTH_TIMEOUT = 10013 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_OAUTH_SESSION_NOT_EXIST = 10012 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_OAUTH_SERVICE_EXCEPTION = 10011 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_OAUTH_SERVICE_BUSY = 10010 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_OAUTH_LIST_TOO_LARGE = 10009 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_OAUTH_CANCELED = 10008 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_OAUTH_AUTHENTICATOR_NOT_EXIST = 10007 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_NETWORK_EXCEPTION = 10006 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_INVALID_RESPONSE = 10005 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_INVALID_REQUEST = 10004 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_INVALID_PASSWORD = 10003 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_APP_ACCOUNT_SERVICE_EXCEPTION = 10002 | 新增 |
| ohos.account.appAccount | ResultCode | ERROR_ACCOUNT_NOT_EXIST = 10001 | 新增 |
| ohos.account.appAccount | ResultCode | SUCCESS = 0 | 新增 |
| ohos.account.appAccount | Constants | KEY_CALLER_BUNDLE_NAME = "callerBundleName" | 新增 |
| ohos.account.appAccount | Constants | KEY_CALLER_UID = "callerUid" | 新增 |
| ohos.account.appAccount | Constants | KEY_CALLER_PID = "callerPid" | 新增 |
| ohos.account.appAccount | Constants | KEY_SESSION_ID = "sessionId" | 新增 |
| ohos.account.appAccount | Constants | KEY_AUTH_TYPE = "authType" | 新增 |
| ohos.account.appAccount | Constants | KEY_ACTION = "action" | 新增 |
| ohos.account.appAccount | Constants | KEY_TOKEN = "token" | 新增 |
| ohos.account.appAccount | Constants | KEY_OWNER = "owner" | 新增 |
| ohos.account.appAccount | Constants | KEY_NAME = "name" | 新增 |
| ohos.account.appAccount | Constants | ACTION_AUTHENTICATE = "authenticate" | 新增 |
| ohos.account.appAccount | Constants | ACTION_ADD_ACCOUNT_IMPLICITLY = "addAccountImplicitly" | 新增 |
| ohos.account.appAccount | AuthenticatorInfo | labelId: number; | 新增 |
| ohos.account.appAccount | AuthenticatorInfo | iconId: number; | 新增 |
| ohos.account.appAccount | AuthenticatorInfo | owner: string; | 新增 |
| ohos.account.appAccount | OAuthTokenInfo | token: string; | 新增 |
| ohos.account.appAccount | OAuthTokenInfo | authType: string; | 新增 |
| ohos.account.appAccount | AppAccountInfo | name: string; | 新增 |
| ohos.account.appAccount | AppAccountInfo | owner: string; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAuthenticatorInfo(owner: string, callback: AsyncCallback
<AuthenticatorInfo>
): void;
<br>
getAuthenticatorInfo(owner: string): Promise
<AuthenticatorInfo>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAuthenticatorCallback(sessionId: string, callback: AsyncCallback
<AuthenticatorCallback>
): void;
<br>
getAuthenticatorCallback(sessionId: string): Promise
<AuthenticatorCallback>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | getOAuthList(name: string, authType: string, callback: AsyncCallback
<Array
<
string
>
>): void;
<br>
getOAuthList(name: string, authType: string): Promise
<Array
<
string
>
>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAllOAuthTokens(name: string, owner: string, callback: AsyncCallback
<Array
<
OAuthTokenInfo
>
>): void;
<br>
getAllOAuthTokens(name: string, owner: string): Promise
<Array
<
OAuthTokenInfo
>
>; | 新增 |
| ohos.account.appAccount | AppAccountManager | checkOAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback
<boolean>
): void;
<br>
checkOAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise
<boolean>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean, callback: AsyncCallback
<void>
): void;
<br>
setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | deleteOAuthToken(name: string, owner: string, authType: string, token: string, callback: AsyncCallback
<void>
): void;
<br>
deleteOAuthToken(name: string, owner: string, authType: string, token: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | setOAuthToken(name: string, authType: string, token: string, callback: AsyncCallback
<void>
): void;
<br>
setOAuthToken(name: string, authType: string, token: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | getOAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback
<string>
): void;
<br>
getOAuthToken(name: string, owner: string, authType: string): Promise
<string>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | authenticate(name: string, owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | 新增 |
| ohos.account.appAccount | AppAccountManager | off(type: 'change', callback?: Callback
<Array
<
AppAccountInfo
>
>): void; | 新增 |
| ohos.account.appAccount | AppAccountManager | on(type: 'change', owners: Array
<string>
, callback: Callback
<Array
<
AppAccountInfo
>
>): void; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAssociatedData(name: string, key: string, callback: AsyncCallback
<string>
): void;
<br>
getAssociatedData(name: string, key: string): Promise
<string>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAccountExtraInfo(name: string, callback: AsyncCallback
<string>
): void;
<br>
getAccountExtraInfo(name: string): Promise
<string>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAccountCredential(name: string, credentialType: string, callback: AsyncCallback
<string>
): void;
<br>
getAccountCredential(name: string, credentialType: string): Promise
<string>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAllAccounts(owner: string, callback: AsyncCallback
<Array
<
AppAccountInfo
>
>): void;
<br>
getAllAccounts(owner: string): Promise
<Array
<
AppAccountInfo
>
>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAllAccessibleAccounts(callback: AsyncCallback
<Array
<
AppAccountInfo
>
>): void;
<br>
getAllAccessibleAccounts(): Promise
<Array
<
AppAccountInfo
>
>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback
<void>
): void;
<br>
setAssociatedData(name: string, key: string, value: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback
<void>
): void;
<br>
setAppAccountSyncEnable(name: string, isEnable: boolean): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback
<void>
): void;
<br>
setAccountExtraInfo(name: string, extraInfo: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAccountCredential(name: string, credentialType: string, credential: string, callback: AsyncCallback
<void>
): void;
<br>
setAccountCredential(name: string, credentialType: string, credential: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | checkAppAccountSyncEnable(name: string, callback: AsyncCallback
<boolean>
): void;
<br>
checkAppAccountSyncEnable(name: string): Promise
<boolean>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | enableAppAccess(name: string, bundleName: string, callback: AsyncCallback
<void>
): void;
<br>
enableAppAccess(name: string, bundleName: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | disableAppAccess(name: string, bundleName: string, callback: AsyncCallback
<void>
): void;
<br>
disableAppAccess(name: string, bundleName: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | deleteAccount(name: string, callback: AsyncCallback
<void>
): void;
<br>
deleteAccount(name: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | addAccountImplicitly(owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | 新增 |
| ohos.account.appAccount | AppAccountManager | addAccount(name: string, callback: AsyncCallback
<void>
): void;
<br>
addAccount(name: string, extraInfo: string, callback: AsyncCallback
<void>
): void;
<br>
addAccount(name: string, extraInfo?: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | appAccount | function createAppAccountManager(): AppAccountManager; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ace.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
ArkUI
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
ArkUI
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 组件类型 | 组件名称 | 变更类型 | 变更说明 |
| ---------- | ----------------------------- | -------- | ------------------------------------------------------------ |
| 通用事件 | 焦点事件 onFocus/onBlur | 新增 | 新增焦点事件。 |
| 通用事件 | 鼠标事件 onHover/onMouse | 新增 | 新增鼠标事件。 |
| 通用事件 | 组件区域变化事件 onAreaChange | 新增 | 新增组件区域(包括大小和位置)变化事件。 |
| 通用属性 | 设置多态样式 stateStyles | 新增 | 新增组件多态样式设置。 |
| 通用属性 | 触摸热区设置 responseRegion | 新增 | 新增组件触摸热区设置。 |
| 通用属性 | 点击控制 touchable | 新增 | 新增设置组件是否可以被触摸。 |
| 通用属性 | 焦点控制 focusable | 新增 | 新增设置当前组件是否可以获焦。 |
| 通用属性 | Popup控制 bindPopup | 新增 | 新增popup自定义布局能力。 |
| 通用属性 | Menu控制 bindMenu | 新增 | 新增menu自定义布局能力。 |
| 通用属性 | 悬浮态效果 hoverEffect | 新增 | 新增设置当前组件悬停态下的悬浮效果。 |
| 通用手势 | SwipeGesture | 新增 | 新增滑动手势。 |
| 基础组件 | Image | 新增 | 新增syncLoad属性设置是否同步加载。 |
| 基础组件 | Swiper | 新增 | 新增cachedCount属性设置预加载子组件个数。 |
| 基础组件 | Swiper | 新增 | 新增disableSwipe属性禁用组件滑动切换功能。 |
| 基础组件 | Slider | 新增 | 新增垂直方向的滑动条。 |
| 基础组件 | TabContent | 新增 | 新增tabbar属性自定义布局能力。 |
| 基础组件 | Marquee | 新增 | 新增跑马灯组件。 |
| 基础组件 | Gauge | 新增 | 新增数据量规图表组件。 |
| 基础组件 | PluginComponent | 新增 | 新增插件组件。 |
| 基础组件 | TextArea | 新增 | 新增输入区域组件。 |
| 基础组件 | TextInput | 新增 | 新增输入框组件。 |
| 基础组件 | Toggle | 新增 | 新增状态组件。 |
| 容器组件 | List | 新增 | 新增列表项拖拽事件。 |
| 容器组件 | ScrollBar | 新增 | 新增滚动条组件。 |
| 容器组件 | Navigation | 新增 | 新增页面导航组件。 |
| 容器组件 | Stepper | 新增 | 新增步骤导航器组件。 |
| 容器组件 | StepperItem | 新增 | 新增步骤导航器导航项组件。 |
| 画布组件 | Canvas | 新增 | 新增画布组件。 |
| 画布组件 | Lottie | 新增 | 新增Lottie库的支持。 |
| 全局UI方法 | ActionSheet | 新增 | 新增列表选择弹窗。 |
| 基础组件 | Web | 新增 | 新增加载网页组件。 |
| 基础组件 | Checkbox | 新增 | 新增多选框组件,通常用于某选项的打开或关闭。 |
| 基础组件 | CheckboxGroup | 新增 | 新增多选框群组组件,用于控制多选框全选或者不全选状态。 |
| 基础组件 | DatePicker | 新增 | 新增选择日期的滑动选择器组件。 |
| 基础组件 | TextPicker | 新增 | 新增文本类滑动选择器组件。 |
| 基础组件 | PatternLock | 新增 | 新增图案密码锁组件,以宫格图案的方式输入密码,用于密码验证。 |
| 基础组件 | RichText | 新增 | 新增富文本组件,解析并显示HTML格式文本。 |
| 基础组件 | Search | 新增 | 新增搜索框组件,用于提供用户搜索内容的输入区域。 |
| 基础组件 | Select | 新增 | 新增下拉选择菜单组件,可以让用户在多个选项之间选择。 |
| 基础组件 | TextClock | 新增 | 新增文本时钟组件。 |
| 容器组件 | Refresh | 新增 | 新增下拉刷新容器组件。 |
| 容器组件 | SideBarContainer | 新增 | 新增侧边栏容器组件。 |
| 全局UI方法 | TextPickerDialog | 新增 | 新增文本滑动选择器弹窗。 |
| 全局UI方法 | TimePickerDialog | 新增 | 新增时间滑动选择器弹窗。 |
| 全局UI方法 | DatePickerDialog | 新增 | 新增日期滑动选择器弹窗。 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-battery.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
电源服务
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
电源服务
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.thermal | thermal | function getThermalLevel(): ThermalLevel; | 新增 |
| ohos.thermal | thermal | function unsubscribeThermalLevel(callback?: AsyncCallback
<void>
): void; | 新增 |
| ohos.thermal | thermal | function subscribeThermalLevel(callback: AsyncCallback
<ThermalLevel>
): void; | 新增 |
| ohos.thermal | ThermalLevel | EMERGENCY = 6 | 新增 |
| ohos.thermal | ThermalLevel | WARNING = 5 | 新增 |
| ohos.thermal | ThermalLevel | OVERHEATED = 4 | 新增 |
| ohos.thermal | ThermalLevel | HOT = 3 | 新增 |
| ohos.thermal | ThermalLevel | WARM = 2 | 新增 |
| ohos.thermal | ThermalLevel | NORMAL = 1 | 新增 |
| ohos.thermal | ThermalLevel | COOL = 0 | 新增 |
| ohos.runninglock | runningLock | function createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback
<RunningLock>
): void;
<br>
function createRunningLock(name: string, type: RunningLockType): Promise
<RunningLock>
; | 新增 |
| ohos.runninglock | runningLock | function isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback
<boolean>
): void;
<br>
function isRunningLockTypeSupported(type: RunningLockType): Promise
<boolean>
; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
包管理
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
包管理
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| shortcutInfo | ShortcutInfo | readonly labelId: number; | 新增 |
| shortcutInfo | ShortcutInfo | readonly iconId: number; | 新增 |
| launcherAbilityInfo | LauncherAbilityInfo | readonly installTime : number; | 新增 |
| launcherAbilityInfo | LauncherAbilityInfo | readonly userId: number; | 新增 |
| launcherAbilityInfo | LauncherAbilityInfo | readonly iconId: number; | 新增 |
| launcherAbilityInfo | LauncherAbilityInfo | readonly labelId: number; | 新增 |
| launcherAbilityInfo | LauncherAbilityInfo | readonly elementName : ElementName; | 新增 |
| launcherAbilityInfo | LauncherAbilityInfo | readonly applicationInfo: ApplicationInfo; | 新增 |
| bundleInfo | BundleInfo | readonly reqPermissionStates: Array
<number>
; | 新增 |
| bundleInfo | BundleInfo | readonly hapModuleInfos: Array
<HapModuleInfo>
; | 新增 |
| bundleInfo | BundleInfo | readonly abilityInfos: Array
<AbilityInfo>
; | 新增 |
| abilityInfo | AbilityInfo | readonly enabled: boolean; | 新增 |
| abilityInfo | AbilityInfo | readonly metaData: Array
<CustomizeData>
; | 新增 |
| ohos.zlib | zlib | function unzipFile(inFile:string, outFile:string, options: Options): Promise
<void>
; | 新增 |
| ohos.zlib | zlib | function zipFile(inFile:string, outFile:string, options: Options): Promise
<void>
; | 新增 |
| ohos.zlib | Options | strategy?: CompressStrategy; | 新增 |
| ohos.zlib | Options | memLevel?: MemLevel; | 新增 |
| ohos.zlib | Options | level?: CompressLevel; | 新增 |
| ohos.zlib | MemLevel | MEM_LEVEL_DEFAULT = 8 | 新增 |
| ohos.zlib | MemLevel | MEM_LEVEL_MAX = 9 | 新增 |
| ohos.zlib | MemLevel | MEM_LEVEL_MIN = 1 | 新增 |
| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_FIXED = 4 | 新增 |
| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_RLE = 3 | 新增 |
| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_HUFFMAN_ONLY = 2 | 新增 |
| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_FILTERED = 1 | 新增 |
| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_DEFAULT_STRATEGY = 0 | 新增 |
| ohos.zlib | CompressLevel | COMPRESS_LEVEL_DEFAULT_COMPRESSION = -1 | 新增 |
| ohos.zlib | CompressLevel | COMPRESS_LEVEL_BEST_COMPRESSION = 9 | 新增 |
| ohos.zlib | CompressLevel | COMPRESS_LEVEL_BEST_SPEED = 1 | 新增 |
| ohos.zlib | CompressLevel | COMPRESS_LEVEL_NO_COMPRESSION = 0 | 新增 |
| ohos.zlib | ErrorCode | ERROR_CODE_ERRNO = -1 | 新增 |
| ohos.zlib | ErrorCode | ERROR_CODE_OK = 0 | 新增 |
| ohos.bundle | bundle | function isApplicationEnabled(bundleName: string, callback: AsyncCallback
<boolean>
): void;
<br>
function isApplicationEnabled(bundleName: string): Promise
<boolean>
; | 新增 |
| ohos.bundle | bundle | function isAbilityEnabled(info: AbilityInfo, callback: AsyncCallback
<boolean>
): void;
<br>
function isAbilityEnabled(info: AbilityInfo): Promise
<boolean>
; | 新增 |
| ohos.bundle | bundle | function getAbilityIcon(bundleName: string, abilityName: string, callback: AsyncCallback
<image.PixelMap>
): void;
<br>
function getAbilityIcon(bundleName: string, abilityName: string): Promise
<image.PixelMap>
; | 新增 |
| ohos.bundle | bundle | function getAbilityLabel(bundleName: string, abilityName: string, callback: AsyncCallback
<string>
): void;
<br>
function getAbilityLabel(bundleName: string, abilityName: string): Promise
<string>
; | 新增 |
| ohos.bundle | bundle | function getNameForUid(uid: number, callback: AsyncCallback
<string>
) : void
<br>
function getNameForUid(uid: number) : Promise
<string>
; | 新增 |
| ohos.bundle | bundle | function getAbilityInfo(bundleName: string, abilityName: string, callback: AsyncCallback
<AbilityInfo>
): void;
<br>
function getAbilityInfo(bundleName: string, abilityName: string): Promise
<AbilityInfo>
; | 新增 |
| ohos.bundle | InstallErrorCode | STATUS_UNINSTALL_PERMISSION_DENIED = 0x45 | 新增 |
| ohos.bundle | InstallErrorCode | STATUS_INSTALL_PERMISSION_DENIED = 0x44 | 新增 |
| ohos.bundle | InstallErrorCode | STATUS_GRANT_REQUEST_PERMISSIONS_FAILED = 0x43 | 新增 |
| ohos.bundle | InstallErrorCode | STATUS_FAILED_NO_SPACE_LEFT = 0x42 | 新增 |
| ohos.bundle | InstallErrorCode | STATUS_RECOVER_FAILURE_INVALID = 0x0D | 新增 |
| ohos.bundle | BundleOptions | userId?: number; | 新增 |
| ohos.bundle | ColorMode | LIGHT_MODE = 1 | 新增 |
| ohos.bundle | ColorMode | DARK_MODE = 0 | 新增 |
| ohos.bundle | ColorMode | AUTO_MODE = -1 | 新增 |
| ohos.bundle | BundleFlag | GET_APPLICATION_INFO_WITH_DISABLE = 0x00000200 | 新增 |
| ohos.bundle | BundleFlag | GET_ABILITY_INFO_WITH_DISABLE = 0x00000100 | 新增 |
| ohos.bundle | BundleFlag | GET_ABILITY_INFO_SYSTEMAPP_ONLY = 0x00000080 | 新增 |
| ohos.bundle | BundleFlag | GET_APPLICATION_INFO_WITH_METADATA = 0x00000040 | 新增 |
| ohos.bundle | BundleFlag | GET_ABILITY_INFO_WITH_METADATA = 0x00000020 | 新增 |
| ohos.bundle | BundleFlag | GET_ALL_APPLICATION_INFO = 0xFFFF0000 | 新增 |
| ohos.bundle | BundleFlag | GET_BUNDLE_WITH_REQUESTED_PERMISSION = 0x00000010 | 新增 |
| ohos.bundle | BundleFlag | GET_ABILITY_INFO_WITH_APPLICATION = 0x00000004 | 新增 |
| ohos.bundle | BundleFlag | GET_ABILITY_INFO_WITH_PERMISSION = 0x00000002 | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-complier-and-runtime.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-config-policy.md
已删除
100644 → 0
浏览文件 @
6075bedd
# xxx子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
DFX
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XX
X子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
DF
X子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.hiTraceMeter | hiTraceMeter | function traceByValue(name: string, count: number): void; | 新增 |
| ohos.hiTraceMeter | hiTraceMeter | function finishTrace(name: string, taskId: number): void; | 新增 |
| ohos.hiTraceMeter | hiTraceMeter | function startTrace(name: string, taskId: number): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain | function enableFlag(id: HiTraceId, flag: HiTraceFlag): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain | function isFlagEnabled(id: HiTraceId, flag: HiTraceFlag): boolean; | 新增 |
| ohos.hiTraceChain | hiTraceChain | function isValid(id: HiTraceId): boolean; | 新增 |
| ohos.hiTraceChain | hiTraceChain | function tracepoint(mode: HiTraceCommunicationMode, type: HiTraceTracepointType, id: HiTraceId, msg?: string): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain | function createSpan(): HiTraceId; | 新增 |
| ohos.hiTraceChain | hiTraceChain | function clearId(): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain | function setId(id: HiTraceId): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain | function getId(): HiTraceId; | 新增 |
| ohos.hiTraceChain | hiTraceChain | function end(id: HiTraceId): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain | function begin(name: string, flags: number = HiTraceFlag.DEFAULT): HiTraceId; | 新增 |
| ohos.hiTraceChain | HiTraceId | flags?: number; | 新增 |
| ohos.hiTraceChain | HiTraceId | parentSpanId?: number; | 新增 |
| ohos.hiTraceChain | HiTraceId | spanId?: number; | 新增 |
| ohos.hiTraceChain | HiTraceId | chainId: bigint; | 新增 |
| ohos.hiTraceChain | HiTraceCommunicationMode | DEVICE = 3 | 新增 |
| ohos.hiTraceChain | HiTraceCommunicationMode | PROCESS = 2 | 新增 |
| ohos.hiTraceChain | HiTraceCommunicationMode | THREAD = 1 | 新增 |
| ohos.hiTraceChain | HiTraceCommunicationMode | DEFAULT = 0 | 新增 |
| ohos.hiTraceChain | HiTraceTracepointType | GENERAL = 4 | 新增 |
| ohos.hiTraceChain | HiTraceTracepointType | SR = 3 | 新增 |
| ohos.hiTraceChain | HiTraceTracepointType | SS = 2 | 新增 |
| ohos.hiTraceChain | HiTraceTracepointType | CR = 1 | 新增 |
| ohos.hiTraceChain | HiTraceTracepointType | CS = 0 | 新增 |
| ohos.hiTraceChain | HiTraceFlag | D2D_TP_INFO = 1 << 6 | 新增 |
| ohos.hiTraceChain | HiTraceFlag | FAILURE_TRIGGER = 1 << 5 | 新增 |
| ohos.hiTraceChain | HiTraceFlag | DISABLE_LOG = 1 << 4 | 新增 |
| ohos.hiTraceChain | HiTraceFlag | NO_BE_INFO = 1 << 3 | 新增 |
| ohos.hiTraceChain | HiTraceFlag | TP_INFO = 1 << 2 | 新增 |
| ohos.hiTraceChain | HiTraceFlag | DONOT_CREATE_SPAN = 1 << 1 | 新增 |
| ohos.hiTraceChain | HiTraceFlag | INCLUDE_ASYNC = 1 | 新增 |
| ohos.hiTraceChain | HiTraceFlag | DEFAULT = 0 | 新增 |
| ohos.hilog | LogLevel | FATAL = 7 | 新增 |
| ohos.hilog | LogLevel | ERROR = 6 | 新增 |
| ohos.hilog | LogLevel | WARN = 5 | 新增 |
| ohos.hilog | LogLevel | INFO = 4 | 新增 |
| ohos.hilog | LogLevel | DEBUG = 3 | 新增 |
| ohos.hilog | hilog | function isLoggable(domain: number, tag: string, level: LogLevel) : boolean; | 新增 |
| ohos.hilog | hilog | function fatal(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hilog | hilog | function error(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hilog | hilog | function warn(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hilog | hilog | function info(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hilog | hilog | function debug(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hidebug | hidebug | function dumpHeapData(filename : string) : void; | 新增 |
| ohos.hidebug | hidebug | function stopProfiling() : void; | 新增 |
| ohos.hidebug | hidebug | function startProfiling(filename : string) : void; | 新增 |
| ohos.hidebug | hidebug | function getSharedDirty() : bigint; | 新增 |
| ohos.hidebug | hidebug | function getPss() : bigint; | 新增 |
| ohos.hidebug | hidebug | function getNativeHeapFreeSize() : bigint; | 新增 |
| ohos.hidebug | hidebug | function getNativeHeapAllocatedSize() : bigint; | 新增 |
| ohos.hidebug | hidebug | function getNativeHeapSize() : bigint; | 新增 |
| ohos.hichecker | hichecker | function contains(rule: bigint) : boolean; | 新增 |
| ohos.hichecker | hichecker | function getRule() : bigint; | 新增 |
| ohos.hichecker | hichecker | function removeRule(rule: bigint) : void; | 新增 |
| ohos.hichecker | hichecker | function addRule(rule: bigint) : void; | 新增 |
| ohos.hichecker | hichecker | const RULE_CHECK_ABILITY_CONNECTION_LEAK: 8589934592n; | 新增 |
| ohos.hichecker | hichecker | const RULE_THREAD_CHECK_SLOW_PROCESS: 1n; | 新增 |
| ohos.hichecker | hichecker | const RULE_CAUTION_TRIGGER_CRASH: 4611686018427387904n; | 新增 |
| ohos.hichecker | hichecker | const RULE_CAUTION_PRINT_LOG: 9223372036854775808n; | 新增 |
| ohos.faultLogger | FaultLogInfo | fullLog: string; | 新增 |
| ohos.faultLogger | FaultLogInfo | summary: string; | 新增 |
| ohos.faultLogger | FaultLogInfo | module: string; | 新增 |
| ohos.faultLogger | FaultLogInfo | reason: string; | 新增 |
| ohos.faultLogger | FaultLogInfo | timestamp: number; | 新增 |
| ohos.faultLogger | FaultLogInfo | type: FaultType; | 新增 |
| ohos.faultLogger | FaultLogInfo | uid: number; | 新增 |
| ohos.faultLogger | FaultLogInfo | pid: number; | 新增 |
| ohos.faultLogger | FaultLogger | function querySelfFaultLog(faultType: FaultType, callback: AsyncCallback
<Array
<
FaultLogInfo
>
>) : void;
<br>
function querySelfFaultLog(faultType: FaultType) : Promise
<Array
<
FaultLogInfo
>
>; | 新增 |
| ohos.faultLogger | FaultType | APP_FREEZE = 4 | 新增 |
| ohos.faultLogger | FaultType | JS_CRASH = 3 | 新增 |
| ohos.faultLogger | FaultType | CPP_CRASH = 2 | 新增 |
| ohos.faultLogger | FaultType | NO_SPECIFIC = 0 | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
分布式数据管理
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
分布式数据管理
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.data.rdb | RdbPredicates | inAllDevices(): RdbPredicates; | 新增 |
| ohos.data.rdb | RdbPredicates | inDevices(devices: Array
<string>
): RdbPredicates; | 新增 |
| ohos.data.rdb | RdbStore | off(event:'dataChange', type: SubscribeType, observer: Callback
<Array
<
string
>
>): void; | 新增 |
| ohos.data.rdb | RdbStore | on(event: 'dataChange', type: SubscribeType, observer: Callback
<Array
<
string
>
>): void; | 新增 |
| ohos.data.rdb | RdbStore | sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback
<Array
<[
string
,
number
]
>
>): void;
<br>
sync(mode: SyncMode, predicates: RdbPredicates): Promise
<Array
<[
string
,
number
]
>
>; | 新增 |
| ohos.data.rdb | RdbStore | obtainDistributedTableName(device: string, table: string, callback: AsyncCallback
<string>
): void;
<br>
obtainDistributedTableName(device: string, table: string): Promise
<string>
; | 新增 |
| ohos.data.rdb | RdbStore | setDistributedTables(tables: Array
<string>
, callback: AsyncCallback
<void>
): void;
<br>
setDistributedTables(tables: Array
<string>
): Promise
<void>
; | 新增 |
| ohos.data.rdb | RdbStore | rollBack():void; | 新增 |
| ohos.data.rdb | RdbStore | commit():void; | 新增 |
| ohos.data.rdb | RdbStore | beginTransaction():void; | 新增 |
| ohos.data.rdb | RdbStore | querySql(sql: string, bindArgs: Array
<ValueType>
, callback: AsyncCallback
<ResultSet>
): void;
<br>
querySql(sql: string, bindArgs?: Array
<ValueType>
): Promise
<ResultSet>
; | 新增 |
| ohos.data.rdb | SubscribeType | SUBSCRIBE_TYPE_REMOTE = 0 | 新增 |
| ohos.data.rdb | SyncMode | SYNC_MODE_PULL = 1 | 新增 |
| ohos.data.rdb | SyncMode | SYNC_MODE_PUSH = 0 | 新增 |
| ohos.data.distributedDataObject | DistributedObject | off(type: 'status', callback?: Callback
<
{
sessionId:
string
,
deviceId:
string
,
status:
'
online
'
\|
'
offline
'
}
>
): void; | 新增 |
| ohos.data.distributedDataObject | DistributedObject | on(type: 'status', callback: Callback
<
{
sessionId:
string
,
networkId:
string
,
status:
'
online
'
\|
'
offline
'
}
>
): void; | 新增 |
| ohos.data.distributedDataObject | DistributedObject | off(type: 'change', callback?: Callback
<
{
sessionId:
string
,
fields:
Array
<
string
>
}>): void; | 新增 |
| ohos.data.distributedDataObject | DistributedObject | on(type: 'change', callback: Callback
<
{
sessionId:
string
,
fields:
Array
<
string
>
}>): void; | 新增 |
| ohos.data.distributedDataObject | DistributedObject | setSessionId(sessionId?: string): boolean; | 新增 |
| ohos.data.distributedDataObject | distributedDataObject | function genSessionId(): string; | 新增 |
| ohos.data.distributedDataObject | distributedDataObject | function createDistributedObject(source: object): DistributedObject; | 新增 |
| ohos.data.distributedData | KVManager | off(event: 'distributedDataServiceDie', deathCallback?: Callback
<void>
): void; | 新增 |
| ohos.data.distributedData | KVManager | on(event: 'distributedDataServiceDie', deathCallback: Callback
<void>
): void; | 新增 |
| ohos.data.distributedData | KVManager | getAllKVStoreId(appId: string, callback: AsyncCallback
<string
[]
>
): void;
<br>
getAllKVStoreId(appId: string): Promise
<string
[]
>
; | 新增 |
| ohos.data.distributedData | KVManager | deleteKVStore(appId: string, storeId: string, callback: AsyncCallback
<void>
): void;
<br>
deleteKVStore(appId: string, storeId: string): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVManager | closeKVStore(appId: string, storeId: string, kvStore: KVStore, callback: AsyncCallback
<void>
): void;
<br>
closeKVStore(appId: string, storeId: string, kvStore: KVStore): Promise
<void>
; | 新增 |
| ohos.data.distributedData | DeviceKVStore | off(event: 'syncComplete', syncCallback?: Callback
<Array
<[
string
,
number
]
>
>): void; | 新增 |
| ohos.data.distributedData | DeviceKVStore | on(event: 'syncComplete', syncCallback: Callback
<Array
<[
string
,
number
]
>
>): void; | 新增 |
| ohos.data.distributedData | DeviceKVStore | sync(deviceIdList: string[], mode: SyncMode, allowedDelayMs?: number): void; | 新增 |
| ohos.data.distributedData | DeviceKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback
<void>
): void;
<br>
removeDeviceData(deviceId: string): Promise
<void>
; | 新增 |
| ohos.data.distributedData | DeviceKVStore | getResultSize(query: Query, callback: AsyncCallback
<number>
): void;
<br>
getResultSize(query: Query): Promise
<number>
;
<br>
getResultSize(deviceId: string, query: Query, callback: AsyncCallback
<number>
): void;
<br>
getResultSize(deviceId: string, query: Query): Promise
<number>
; | 新增 |
| ohos.data.distributedData | DeviceKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback
<void>
): void;
<br>
closeResultSet(resultSet: KvStoreResultSet): Promise
<void>
; | 新增 |
| ohos.data.distributedData | DeviceKVStore | getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback
<KvStoreResultSet>
): void;
<br>
getResultSet(deviceId: string, keyPrefix: string): Promise
<KvStoreResultSet>
;
<br>
getResultSet(query: Query, callback: AsyncCallback
<KvStoreResultSet>
): void;
<br>
getResultSet(query: Query): Promise
<KvStoreResultSet>
;
<br>
getResultSet(deviceId: string, query: Query, callback: AsyncCallback
<KvStoreResultSet>
): void;
<br>
getResultSet(deviceId: string, query: Query): Promise
<KvStoreResultSet>
; | 新增 |
| ohos.data.distributedData | DeviceKVStore | getEntries(deviceId: string, keyPrefix: string, callback: AsyncCallback
<Entry
[]
>
): void;
<br>
getEntries(deviceId: string, keyPrefix: string): Promise
<Entry
[]
>
;
<br>
getEntries(query: Query, callback: AsyncCallback
<Entry
[]
>
): void;
<br>
getEntries(query: Query): Promise
<Entry
[]
>
;
<br>
getEntries(deviceId: string, query: Query, callback: AsyncCallback
<Entry
[]
>
): void;
<br>
getEntries(deviceId: string, query: Query): Promise
<Entry
[]
>
; | 新增 |
| ohos.data.distributedData | DeviceKVStore | get(deviceId: string, key: string, callback: AsyncCallback
<boolean
\|
string
\|
number
\|
Uint8Array
>
): void;
<br>
get(deviceId: string, key: string): Promise
<boolean
\|
string
\|
number
\|
Uint8Array
>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | getSecurityLevel(callback: AsyncCallback
<SecurityLevel>
): void;
<br>
getSecurityLevel(): Promise
<SecurityLevel>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | setSyncParam(defaultAllowedDelayMs: number, callback: AsyncCallback
<void>
): void;
<br>
setSyncParam(defaultAllowedDelayMs: number): Promise
<void>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | off(event: 'syncComplete', syncCallback?: Callback
<Array
<[
string
,
number
]
>
>): void; | 新增 |
| ohos.data.distributedData | SingleKVStore | on(event: 'syncComplete', syncCallback: Callback
<Array
<[
string
,
number
]
>
>): void; | 新增 |
| ohos.data.distributedData | SingleKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback
<void>
): void;
<br>
removeDeviceData(deviceId: string): Promise
<void>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | getResultSize(query: Query, callback: AsyncCallback
<number>
): void;
<br>
getResultSize(query: Query): Promise
<number>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback
<void>
): void;
<br>
closeResultSet(resultSet: KvStoreResultSet): Promise
<void>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | getResultSet(keyPrefix: string, callback: AsyncCallback
<KvStoreResultSet>
): void;
<br>
getResultSet(keyPrefix: string): Promise
<KvStoreResultSet>
;
<br>
getResultSet(query: Query, callback: AsyncCallback
<KvStoreResultSet>
): void;
<br>
getResultSet(query: Query): Promise
<KvStoreResultSet>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | getEntries(keyPrefix: string, callback: AsyncCallback
<Entry
[]
>
): void;
<br>
getEntries(keyPrefix: string): Promise
<Entry
[]
>
;
<br>
getEntries(query: Query, callback: AsyncCallback
<Entry
[]
>
): void;
<br>
getEntries(query: Query): Promise
<Entry
[]
>
; | 新增 |
| ohos.data.distributedData | KVStore | setSyncRange(localLabels: string[], remoteSupportLabels: string[], callback: AsyncCallback
<void>
): void;
<br>
setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | enableSync(enabled: boolean, callback: AsyncCallback
<void>
): void;
<br>
enableSync(enabled: boolean): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | rollback(callback: AsyncCallback
<void>
): void;
<br>
rollback(): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | commit(callback: AsyncCallback
<void>
): void;
<br>
commit(): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | startTransaction(callback: AsyncCallback
<void>
): void;
<br>
startTransaction(): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | deleteBatch(keys: string[], callback: AsyncCallback
<void>
): void;
<br>
deleteBatch(keys: string[]): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | putBatch(entries: Entry[], callback: AsyncCallback
<void>
): void;
<br>
putBatch(entries: Entry[]): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | off(event:'dataChange', observer?: Callback
<ChangeNotification>
): void; | 新增 |
| ohos.data.distributedData | Query | getSqlLike():string; | 新增 |
| ohos.data.distributedData | Query | deviceId(deviceId:string):Query; | 新增 |
| ohos.data.distributedData | Query | setSuggestIndex(index: string): Query; | 新增 |
| ohos.data.distributedData | Query | prefixKey(prefix: string): Query; | 新增 |
| ohos.data.distributedData | Query | endGroup(): Query; | 新增 |
| ohos.data.distributedData | Query | beginGroup(): Query; | 新增 |
| ohos.data.distributedData | Query | isNotNull(field: string): Query; | 新增 |
| ohos.data.distributedData | Query | limit(total: number, offset: number): Query; | 新增 |
| ohos.data.distributedData | Query | orderByDesc(field: string): Query; | 新增 |
| ohos.data.distributedData | Query | orderByAsc(field: string): Query; | 新增 |
| ohos.data.distributedData | Query | or(): Query; | 新增 |
| ohos.data.distributedData | Query | and(): Query; | 新增 |
| ohos.data.distributedData | Query | unlike(field: string, value: string): Query; | 新增 |
| ohos.data.distributedData | Query | like(field: string, value: string): Query; | 新增 |
| ohos.data.distributedData | Query | notInString(field: string, valueList: string[]): Query; | 新增 |
| ohos.data.distributedData | Query | notInNumber(field: string, valueList: number[]): Query; | 新增 |
| ohos.data.distributedData | Query | inString(field: string, valueList: string[]): Query; | 新增 |
| ohos.data.distributedData | Query | inNumber(field: string, valueList: number[]): Query; | 新增 |
| ohos.data.distributedData | Query | isNull(field: string): Query; | 新增 |
| ohos.data.distributedData | Query | lessThanOrEqualTo(field: string, value: number
\|
string): Query; | 新增 |
| ohos.data.distributedData | Query | greaterThanOrEqualTo(field: string, value: number
\|
string): Query; | 新增 |
| ohos.data.distributedData | Query | lessThan(field: string, value: number
\|
string): Query; | 新增 |
| ohos.data.distributedData | Query | greaterThan(field: string, value: number
\|
string
\|
boolean): Query; | 新增 |
| ohos.data.distributedData | Query | notEqualTo(field: string, value: number
\|
string
\|
boolean): Query; | 新增 |
| ohos.data.distributedData | Query | equalTo(field: string, value: number
\|
string
\|
boolean): Query; | 新增 |
| ohos.data.distributedData | Query | reset(): Query; | 新增 |
| ohos.data.distributedData | Query | constructor() | 新增 |
| ohos.data.distributedData | KvStoreResultSet | getEntry(): Entry; | 新增 |
| ohos.data.distributedData | KvStoreResultSet | isAfterLast(): boolean; | 新增 |
| ohos.data.distributedData | KvStoreResultSet | isBeforeFirst(): boolean; | 新增 |
| ohos.data.distributedData | KvStoreResultSet | isLast(): boolean; | 新增 |
| ohos.data.distributedData | KvStoreResultSet | isFirst(): boolean; | 新增 |
| ohos.data.distributedData | KvStoreResultSet | moveToPosition(position: number): boolean; | 新增 |
| ohos.data.distributedData | KvStoreResultSet | move(offset: number): boolean; | 新增 |
| ohos.data.distributedData | KvStoreResultSet | moveToPrevious(): boolean; | 新增 |
| ohos.data.distributedData | KvStoreResultSet | moveToNext(): boolean; | 新增 |
| ohos.data.distributedData | KvStoreResultSet | moveToLast(): boolean; | 新增 |
| ohos.data.distributedData | KvStoreResultSet | moveToFirst(): boolean; | 新增 |
| ohos.data.distributedData | KvStoreResultSet | getPosition(): number; | 新增 |
| ohos.data.distributedData | KvStoreResultSet | getCount(): number; | 新增 |
| ohos.data.distributedData | FieldNode | type: number; | 新增 |
| ohos.data.distributedData | FieldNode | nullable: boolean; | 新增 |
| ohos.data.distributedData | FieldNode | default: string; | 新增 |
| ohos.data.distributedData | FieldNode | appendChild(child: FieldNode): boolean; | 新增 |
| ohos.data.distributedData | FieldNode | constructor(name: string) | 新增 |
| ohos.data.distributedData | Schema | skip: number; | 新增 |
| ohos.data.distributedData | Schema | mode: number; | 新增 |
| ohos.data.distributedData | Schema | indexes: Array
<string>
; | 新增 |
| ohos.data.distributedData | Schema | root: FieldNode; | 新增 |
| ohos.data.distributedData | Schema | constructor() | 新增 |
| ohos.data.distributedData | Options | schema?: Schema; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-hardware.md
浏览文件 @
d3c9aef1
#
JS API Diff
#
分布式硬件子系统JS API变更
OpenHarmony 3.1 LTS版本相较于OpenHarmony 3.1 Beta版本的API变更如下:
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
事件通知
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
事件通知
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| notificationUserInput | NotificationUserInput | inputKey: string; | 新增 |
| notificationTemplate | NotificationTemplate | data: {[key: string]: Object}; | 新增 |
| notificationTemplate | NotificationTemplate | name: string; | 新增 |
| notificationRequest | DistributedOptions | supportOperateDevices?: Array
<string>
; | 新增 |
| notificationRequest | DistributedOptions | supportDisplayDevices?: Array
<string>
; | 新增 |
| notificationRequest | DistributedOptions | isDistributed?: boolean; | 新增 |
| notificationRequest | NotificationRequest | readonly notificationFlags?: NotificationFlags; | 新增 |
| notificationRequest | NotificationRequest | distributedOption?: DistributedOptions; | 新增 |
| notificationRequest | NotificationRequest | template?: NotificationTemplate; | 新增 |
| notificationRequest | NotificationRequest | readonly creatorUserId?: number; | 新增 |
| notificationRequest | NotificationRequest | groupName?: string; | 新增 |
| notificationActionButton | NotificationActionButton | userInput?: NotificationUserInput; | 新增 |
| ohos.notification | notification | function isDistributedEnabled(callback: AsyncCallback
<boolean>
): void;
<br>
function isDistributedEnabled(): Promise
<boolean>
; | 新增 |
| ohos.notification | notification | function requestEnableNotification(callback: AsyncCallback
<void>
): void;
<br>
function requestEnableNotification(): Promise
<void>
; | 新增 |
| ohos.notification | notification | function isSupportTemplate(templateName: string, callback: AsyncCallback
<boolean>
): void;
<br>
function isSupportTemplate(templateName: string): Promise
<boolean>
; | 新增 |
| ohos.notification | notification | function cancelGroup(groupName: string, callback: AsyncCallback
<void>
): void;
<br>
function cancelGroup(groupName: string): Promise
<void>
; | 新增 |
| ohos.events.emitter | EventPriority | IDLE | 新增 |
| ohos.events.emitter | EventPriority | LOW | 新增 |
| ohos.events.emitter | EventPriority | HIGH | 新增 |
| ohos.events.emitter | EventPriority | IMMEDIATE = 0 | 新增 |
| ohos.events.emitter | InnerEvent | priority?: EventPriority; | 新增 |
| ohos.events.emitter | InnerEvent | eventId: number; | 新增 |
| ohos.events.emitter | EventData | data?: {[key: string]: any}; | 新增 |
| ohos.events.emitter | emitter | function emit(event: InnerEvent, data?: EventData): void; | 新增 |
| ohos.events.emitter | emitter | function off(eventId: number): void; | 新增 |
| ohos.events.emitter | emitter | function once(event: InnerEvent, callback: Callback
<EventData>
): void; | 新增 |
| ohos.events.emitter | emitter | function on(event: InnerEvent, callback: Callback
<EventData>
): void; | 新增 |
| ohos.commonEvent | Support | COMMON_EVENT_SPLIT_SCREEN = "common.event.SPLIT_SCREEN" | 新增 |
| ohos.commonEvent | Support | COMMON_EVENT_THERMAL_LEVEL_CHANGED = "usual.event.THERMAL_LEVEL_CHANGED" | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
文件管理
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
文件管理
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.statfs | Statfs | function getTotalBytes(path: string, callback: AsyncCallback
<number>
): void;
<br>
function getTotalBytes(path: string): Promise
<number>
; | 新增 |
| ohos.statfs | Statfs | function getFreeBytes(path: string, callback: AsyncCallback
<number>
): void;
<br>
function getFreeBytes(path: string): Promise
<number>
; | 新增 |
| ohos.fileio | Watcher | stop(): Promise
<void>
;
<br>
stop(callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | ReadOut | buffer: ArrayBuffer; | 新增 |
| ohos.fileio | ReadOut | offset: number; | 新增 |
| ohos.fileio | ReadOut | bytesRead: number; | 新增 |
| ohos.fileio | Stream | read(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }): Promise
<ReadOut>
;
<br>
read(buffer: ArrayBuffer, callback: AsyncCallback
<ReadOut>
): void;
<br>
read(buffer: ArrayBuffer, options: { position?: number; offset?: number; length?: number; }, callback: AsyncCallback
<ReadOut>
): void; | 新增 |
| ohos.fileio | Stream | write(buffer: ArrayBuffer
\|
string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise
<number>
;
<br>
write(buffer: ArrayBuffer
\|
string, callback: AsyncCallback
<number>
): void;
<br>
write(buffer: ArrayBuffer
\|
string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.fileio | Stream | flush(): Promise
<void>
;
<br>
flush(callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | Stream | close(): Promise
<void>
;
<br>
close(callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | Dir | close(): Promise
<void>
;
<br>
close(callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | Dir | read(): Promise
<Dirent>
;
<br>
read(callback: AsyncCallback
<Dirent>
): void; | 新增 |
| ohos.fileio | fileIO | function createWatcher(filename: string, events: number, callback: AsyncCallback
<number>
): Watcher; | 新增 |
| ohos.fileio | fileIO | function write(fd: number, buffer: ArrayBuffer
\|
string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise
<number>
;
<br>
function write(fd: number, buffer: ArrayBuffer
\|
string, callback: AsyncCallback
<number>
): void;
<br>
function write(fd: number, buffer: ArrayBuffer
\|
string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.fileio | fileIO | function unlink(path: string): Promise
<void>
;
<br>
function unlink(path: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function truncate(path: string, len?: number): Promise
<void>
;
<br>
function truncate(path: string, callback: AsyncCallback
<void>
): void;
<br>
function truncate(path: string, len: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function symlinkSync(target: string, srcPath: string): void; | 新增 |
| ohos.fileio | fileIO | function symlink(target: string, srcPath: string): Promise
<void>
;
<br>
function symlink(target: string, srcPath: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function stat(path: string): Promise
<Stat>
;
<br>
function stat(path: string, callback: AsyncCallback
<Stat>
): void; | 新增 |
| ohos.fileio | fileIO | function rmdir(path: string): Promise
<void>
;
<br>
function rmdir(path: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function rename(oldPath: string, newPath: string): Promise
<void>
;
<br>
function rename(oldPath: string, newPath: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): Promise
<ReadOut><br>
function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback
<ReadOut>
): void;
<br>
function read(fd: number, buffer: ArrayBuffer, options: { offset?: number; length?: number; position?: number; }, callback: AsyncCallback
<ReadOut>
): void; | 新增 |
| ohos.fileio | fileIO | function readTextSync(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): string;| 新增 |
| ohos.fileio | fileIO | function readText(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): Promise
<string>
;
<br>
function readText(filePath: string, options: { position?: number; length?: number; encoding?: string; }, callback: AsyncCallback
<string>
): void; | 新增 |
| ohos.fileio | fileIO | function opendir(path: string): Promise
<Dir>
;
<br>
function opendir(path: string, callback: AsyncCallback
<Dir>
): void; | 新增 |
| ohos.fileio | fileIO | function open(path: string, flags?: number, mode?: number): Promise
<number>
;
<br>
function open(path: string, callback: AsyncCallback
<number>
): void;
<br>
function open(path: string, flags: number, callback: AsyncCallback
<number>
): void;
<br>
function open(path: string, flags: number, mode: number, callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.fileio | fileIO | function mkdtempSync(prefix: string): string; | 新增 |
| ohos.fileio | fileIO | function mkdtemp(prefix: string): Promise
<string>
;
<br>
function mkdtemp(prefix: string, callback: AsyncCallback
<string>
): void; | 新增 |
| ohos.fileio | fileIO | function mkdir(path: string, mode?: number): Promise
<void>
;
<br>
function mkdir(path: string, callback: AsyncCallback
<void>
): void;
<br>
function mkdir(path: string, mode: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function lstatSync(path: string): Stat; | 新增 |
| ohos.fileio | fileIO | function lstat(path: string): Promise
<Stat>
;
<br>
function lstat(path: string, callback: AsyncCallback
<Stat>
): void; | 新增 |
| ohos.fileio | fileIO | function lchownSync(path: string, uid: number, gid: number): void; | 新增 |
| ohos.fileio | fileIO | function lchown(path: string, uid: number, gid: number): Promise
<void>
;
<br>
function lchown(path: string, uid: number, gid: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function hash(path: string, algorithm: string): Promise
<string>
;
<br>
function hash(path: string, algorithm: string, callback: AsyncCallback
<string>
): void; | 新增 |
| ohos.fileio | fileIO | function fdopenStream(fd: number, mode: string): Promise
<Stream>
;
<br>
function fdopenStream(fd: number, mode: string, callback: AsyncCallback
<Stream>
): void; | 新增 |
| ohos.fileio | fileIO | function fchmod(fd: number, mode: number): Promise
<void>
;
<br>
function fchmod(fd: number, mode: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function fchown(fd: number, uid: number, gid: number): Promise
<void>
;
<br>
function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function fdatasyncSync(fd: number): void; | 新增 |
| ohos.fileio | fileIO | function fdatasync(fd: number): Promise
<void>
;
<br>
function fdatasync(fd: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function fstat(fd: number): Promise
<Stat>
;
<br>
function fstat(fd: number, callback: AsyncCallback
<Stat>
): void; | 新增 |
| ohos.fileio | fileIO | function fsync(fd: number): Promise
<void>
;
<br>
function fsync(fd: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function ftruncate(fd: number, len?: number): Promise
<void>
;
<br>
function ftruncate(fd: number, callback: AsyncCallback
<void>
): void;
<br>
function ftruncate(fd: number, len: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function chmod(path: string, mode: number): Promise
<void>
;
<br>
function chmod(path: string, mode: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function chown(path: string, uid: number, gid: number): Promise
<void>
;
<br>
function chown(path: string, uid: number, gid: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function createStream(path: string, mode: string): Promise
<Stream>
;
<br>
function createStream(path: string, mode: string, callback: AsyncCallback
<Stream>
): void; | 新增 |
| ohos.fileio | fileIO | function copyFile(src: string
\|
number, dest: string
\|
number, mode?: number): Promise
<void>
;
<br>
function copyFile(src: string
\|
number, dest: string
\|
number, callback: AsyncCallback
<void>
): void;
<br>
function copyFile(src: string
\|
number, dest: string
\|
number, mode: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function close(fd: number): Promise
<void>
;
<br>
function close(fd: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | function access(path: string, mode?: number): Promise
<void>
;
<br>
function access(path: string, callback: AsyncCallback
<void>
): void;
<br>
function access(path: string, mode: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.document | document | function show(uri: string, type: string): Promise
<void>
;
<br>
function show(uri: string, type: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.document | document | function choose(types?: string[]): Promise
<string>
;
<br>
function choose(callback: AsyncCallback
<string>
): void;
<br>
function choose(types: string[], callback: AsyncCallback
<string>
): void; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
位置服务
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
位置服务
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.geolocation | LocationCommand | command: string; | 新增 |
| ohos.geolocation | LocationCommand | scenario: LocationRequestScenario; | 新增 |
| ohos.geolocation | LocationPrivacyType | CORE_LOCATION | 新增 |
| ohos.geolocation | LocationPrivacyType | STARTUP | 新增 |
| ohos.geolocation | LocationPrivacyType | OTHERS = 0 | 新增 |
| ohos.geolocation | GeoLocationErrorCode | LOCATION_REQUEST_TIMEOUT_ERROR | 新增 |
| ohos.geolocation | GeoLocationErrorCode | LAST_KNOWN_LOCATION_ERROR | 新增 |
| ohos.geolocation | GeoLocationErrorCode | LOCATION_SWITCH_ERROR | 新增 |
| ohos.geolocation | GeoLocationErrorCode | LOCATOR_ERROR | 新增 |
| ohos.geolocation | GeoLocationErrorCode | GEOCODE_ERROR | 新增 |
| ohos.geolocation | GeoLocationErrorCode | REVERSE_GEOCODE_ERROR | 新增 |
| ohos.geolocation | GeoLocationErrorCode | INPUT_PARAMS_ERROR = 101 | 新增 |
| ohos.geolocation | LocationRequestScenario | NO_POWER | 新增 |
| ohos.geolocation | LocationRequestScenario | DAILY_LIFE_SERVICE | 新增 |
| ohos.geolocation | LocationRequestScenario | CAR_HAILING | 新增 |
| ohos.geolocation | LocationRequestScenario | TRAJECTORY_TRACKING | 新增 |
| ohos.geolocation | LocationRequestScenario | NAVIGATION | 新增 |
| ohos.geolocation | LocationRequestScenario | UNSET = 0x300 | 新增 |
| ohos.geolocation | LocationRequestPriority | FIRST_FIX | 新增 |
| ohos.geolocation | LocationRequestPriority | LOW_POWER | 新增 |
| ohos.geolocation | LocationRequestPriority | ACCURACY | 新增 |
| ohos.geolocation | LocationRequestPriority | UNSET = 0x200 | 新增 |
| ohos.geolocation | Location | additionSize?: number; | 新增 |
| ohos.geolocation | Location | additions?: Array
<string>
; | 新增 |
| ohos.geolocation | Location | timeSinceBoot: number; | 新增 |
| ohos.geolocation | Location | direction: number; | 新增 |
| ohos.geolocation | Location | timeStamp: number; | 新增 |
| ohos.geolocation | Location | speed: number; | 新增 |
| ohos.geolocation | Location | accuracy: number; | 新增 |
| ohos.geolocation | Location | altitude: number; | 新增 |
| ohos.geolocation | Location | longitude: number; | 新增 |
| ohos.geolocation | Location | latitude: number; | 新增 |
| ohos.geolocation | CurrentLocationRequest | timeoutMs?: number; | 新增 |
| ohos.geolocation | CurrentLocationRequest | maxAccuracy?: number; | 新增 |
| ohos.geolocation | CurrentLocationRequest | scenario?: LocationRequestScenario; | 新增 |
| ohos.geolocation | CurrentLocationRequest | priority?: LocationRequestPriority; | 新增 |
| ohos.geolocation | LocationRequest | maxAccuracy?: number; | 新增 |
| ohos.geolocation | LocationRequest | distanceInterval?: number; | 新增 |
| ohos.geolocation | LocationRequest | timeInterval?: number; | 新增 |
| ohos.geolocation | LocationRequest | scenario?: LocationRequestScenario; | 新增 |
| ohos.geolocation | LocationRequest | priority?: LocationRequestPriority; | 新增 |
| ohos.geolocation | GeoAddress | descriptionsSize?: number; | 新增 |
| ohos.geolocation | GeoAddress | descriptions?: Array
<string>
; | 新增 |
| ohos.geolocation | GeoAddress | addressUrl?: string; | 新增 |
| ohos.geolocation | GeoAddress | phoneNumber?: string; | 新增 |
| ohos.geolocation | GeoAddress | postalCode?: string; | 新增 |
| ohos.geolocation | GeoAddress | premises?: string; | 新增 |
| ohos.geolocation | GeoAddress | subRoadName?: string; | 新增 |
| ohos.geolocation | GeoAddress | roadName?: string; | 新增 |
| ohos.geolocation | GeoAddress | subLocality?: string; | 新增 |
| ohos.geolocation | GeoAddress | locality?: string; | 新增 |
| ohos.geolocation | GeoAddress | subAdministrativeArea?: string; | 新增 |
| ohos.geolocation | GeoAddress | administrativeArea?: string; | 新增 |
| ohos.geolocation | GeoAddress | countryName?: string; | 新增 |
| ohos.geolocation | GeoAddress | countryCode?: string; | 新增 |
| ohos.geolocation | GeoAddress | placeName?: string; | 新增 |
| ohos.geolocation | GeoAddress | locale?: string; | 新增 |
| ohos.geolocation | GeoAddress | longitude?: number; | 新增 |
| ohos.geolocation | GeoAddress | latitude?: number; | 新增 |
| ohos.geolocation | GeoCodeRequest | maxLongitude?: number; | 新增 |
| ohos.geolocation | GeoCodeRequest | maxLatitude?: number; | 新增 |
| ohos.geolocation | GeoCodeRequest | minLongitude?: number; | 新增 |
| ohos.geolocation | GeoCodeRequest | minLatitude?: number; | 新增 |
| ohos.geolocation | GeoCodeRequest | maxItems?: number; | 新增 |
| ohos.geolocation | GeoCodeRequest | description: string; | 新增 |
| ohos.geolocation | GeoCodeRequest | locale?: string; | 新增 |
| ohos.geolocation | ReverseGeoCodeRequest | maxItems?: number; | 新增 |
| ohos.geolocation | ReverseGeoCodeRequest | longitude: number; | 新增 |
| ohos.geolocation | ReverseGeoCodeRequest | latitude: number; | 新增 |
| ohos.geolocation | ReverseGeoCodeRequest | locale?: string; | 新增 |
| ohos.geolocation | Geofence | expiration: number; | 新增 |
| ohos.geolocation | Geofence | radius: number; | 新增 |
| ohos.geolocation | Geofence | longitude: number; | 新增 |
| ohos.geolocation | Geofence | latitude: number; | 新增 |
| ohos.geolocation | GeofenceRequest | geofence: Geofence; | 新增 |
| ohos.geolocation | GeofenceRequest | scenario: LocationRequestScenario; | 新增 |
| ohos.geolocation | GeofenceRequest | priority: LocationRequestPriority; | 新增 |
| ohos.geolocation | CachedGnssLocationsRequest | wakeUpCacheQueueFull: boolean; | 新增 |
| ohos.geolocation | CachedGnssLocationsRequest | reportingPeriodSec: number; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | carrierFrequencies: Array
<number>
; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | azimuths: Array
<number>
; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | altitudes: Array
<number>
; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | carrierToNoiseDensitys: Array
<number>
; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | satelliteIds: Array
<number>
; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | satellitesNumber: number; | 新增 |
| ohos.geolocation | geolocation | function sendCommand(command: LocationCommand, callback: AsyncCallback
<boolean>
) : void;
<br>
function sendCommand(command: LocationCommand) : Promise
<boolean>
; | 新增 |
| ohos.geolocation | geolocation | function flushCachedGnssLocations(callback: AsyncCallback
<boolean>
) : void;
<br>
function flushCachedGnssLocations() : Promise
<boolean>
; | 新增 |
| ohos.geolocation | geolocation | function getCachedGnssLocationsSize(callback: AsyncCallback
<number>
) : void;
<br>
function getCachedGnssLocationsSize() : Promise
<number>
; | 新增 |
| ohos.geolocation | geolocation | function isGeoServiceAvailable(callback: AsyncCallback
<boolean>
) : void;
<br>
function isGeoServiceAvailable() : Promise
<boolean>
; | 新增 |
| ohos.geolocation | geolocation | function getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback
<Array
<
GeoAddress
>
>) : void;
<br>
function getAddressesFromLocationName(request: GeoCodeRequest) : Promise
<Array
<
GeoAddress
>
>; | 新增 |
| ohos.geolocation | geolocation | function getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback
<Array
<
GeoAddress
>
>) : void;
<br>
function getAddressesFromLocation(request: ReverseGeoCodeRequest) : Promise
<Array
<
GeoAddress
>
>; | 新增 |
| ohos.geolocation | geolocation | function requestEnableLocation(callback: AsyncCallback
<boolean>
) : void;
<br>
function requestEnableLocation() : Promise
<boolean>
; | 新增 |
| ohos.geolocation | geolocation | function isLocationEnabled(callback: AsyncCallback
<boolean>
) : void;
<br>
function isLocationEnabled() : Promise
<boolean>
; | 新增 |
| ohos.geolocation | geolocation | function getLastLocation(callback: AsyncCallback
<Location>
) : void;
<br>
function getLastLocation() : Promise
<Location>
; | 新增 |
| ohos.geolocation | geolocation | function getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback
<Location>
) : void;
<br>
function getCurrentLocation(callback: AsyncCallback
<Location>
) : void;
<br>
function getCurrentLocation(request?: CurrentLocationRequest) : Promise
<Location>
; | 新增 |
| ohos.geolocation | geolocation | function off(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent) : void; | 新增 |
| ohos.geolocation | geolocation | function on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent) : void; | 新增 |
| ohos.geolocation | geolocation | function off(type: 'nmeaMessageChange', callback?: Callback
<string>
) : void; | 新增 |
| ohos.geolocation | geolocation | function on(type: 'nmeaMessageChange', callback: Callback
<string>
) : void; | 新增 |
| ohos.geolocation | geolocation | function off(type: 'gnssStatusChange', callback?: Callback
<SatelliteStatusInfo>
) : void; | 新增 |
| ohos.geolocation | geolocation | function on(type: 'gnssStatusChange', callback: Callback
<SatelliteStatusInfo>
) : void; | 新增 |
| ohos.geolocation | geolocation | function off(type: 'cachedGnssLocationsReporting', callback?: Callback
<Array
<
Location
>
>) : void; | 新增 |
| ohos.geolocation | geolocation | function on(type: 'cachedGnssLocationsReporting', request: CachedGnssLocationsRequest, callback: Callback
<Array
<
Location
>
>) : void; | 新增 |
| ohos.geolocation | geolocation | function off(type: 'locationServiceState', callback?: Callback
<boolean>
) : void; | 新增 |
| ohos.geolocation | geolocation | function on(type: 'locationServiceState', callback: Callback
<boolean>
) : void; | 新增 |
| ohos.geolocation | geolocation | function off(type: 'locationChange', callback?: Callback
<Location>
) : void; | 新增 |
| ohos.geolocation | geolocation | function on(type: 'locationChange', request: LocationRequest, callback: Callback
<Location>
) : void; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-global.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
全球化
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
全球化
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| rawFileDescriptor | RawFileDescriptor | length: number; | 新增 |
| rawFileDescriptor | RawFileDescriptor | offset: number; | 新增 |
| rawFileDescriptor | RawFileDescriptor | fd: number; | 新增 |
| ohos.resourceManager | ResourceManager | release(); | 新增 |
| ohos.resourceManager | ResourceManager | closeRawFileDescriptor(path: string, callback: AsyncCallback
<void>
): void;
<br>
closeRawFileDescriptor(path: string): Promise
<void>
; | 新增 |
| ohos.resourceManager | ResourceManager | getRawFileDescriptor(path: string, callback: AsyncCallback
<RawFileDescriptor>
): void;
<br>
getRawFileDescriptor(path: string): Promise
<RawFileDescriptor>
; | 新增 |
| ohos.resourceManager | ResourceManager | getRawFile(path: string, callback: AsyncCallback
<Uint8Array>
): void;
<br>
getRawFile(path: string): Promise
<Uint8Array>
; | 新增 |
| ohos.resourceManager | resourceManager | function getResourceManager(callback: AsyncCallback
<ResourceManager>
): void;
<br>
export function getResourceManager(bundleName: string, callback: AsyncCallback
<ResourceManager>
): void;
<br>
export function getResourceManager(): Promise
<ResourceManager>
;
<br>
export function getResourceManager(bundleName: string): Promise
<ResourceManager>
; | 新增 |
| ohos.intl | RelativeTimeFormat | resolvedOptions(): RelativeTimeFormatResolvedOptions; | 新增 |
| ohos.intl | RelativeTimeFormat | formatToParts(value: number, unit: string): Array
<object>
; | 新增 |
| ohos.intl | RelativeTimeFormat | format(value: number, unit: string): string; | 新增 |
| ohos.intl | RelativeTimeFormat | constructor(); | 新增 |
| ohos.intl | RelativeTimeFormatResolvedOptions | numberingSystem: string; | 新增 |
| ohos.intl | RelativeTimeFormatResolvedOptions | numeric: string; | 新增 |
| ohos.intl | RelativeTimeFormatResolvedOptions | style: string; | 新增 |
| ohos.intl | RelativeTimeFormatResolvedOptions | locale: string; | 新增 |
| ohos.intl | RelativeTimeFormatInputOptions | style: string; | 新增 |
| ohos.intl | RelativeTimeFormatInputOptions | numeric: string; | 新增 |
| ohos.intl | RelativeTimeFormatInputOptions | localeMatcher: string; | 新增 |
| ohos.intl | PluralRules | select(n: number): string; | 新增 |
| ohos.intl | PluralRules | constructor(); | 新增 |
| ohos.intl | PluralRulesOptions | maximumSignificantDigits: number; | 新增 |
| ohos.intl | PluralRulesOptions | minimumSignificantDigits: number; | 新增 |
| ohos.intl | PluralRulesOptions | maximumFractionDigits: number; | 新增 |
| ohos.intl | PluralRulesOptions | minimumFractionDigits: number; | 新增 |
| ohos.intl | PluralRulesOptions | minimumIntegerDigits: number; | 新增 |
| ohos.intl | PluralRulesOptions | type: string; | 新增 |
| ohos.intl | PluralRulesOptions | localeMatcher: string; | 新增 |
| ohos.intl | Collator | resolvedOptions(): CollatorOptions; | 新增 |
| ohos.intl | Collator | compare(first: string, second: string): number; | 新增 |
| ohos.intl | Collator | constructor(); | 新增 |
| ohos.intl | CollatorOptions | caseFirst: string; | 新增 |
| ohos.intl | CollatorOptions | numeric: boolean; | 新增 |
| ohos.intl | CollatorOptions | collation: string; | 新增 |
| ohos.intl | CollatorOptions | ignorePunctuation: boolean; | 新增 |
| ohos.intl | CollatorOptions | sensitivity: string; | 新增 |
| ohos.intl | CollatorOptions | usage: string; | 新增 |
| ohos.intl | CollatorOptions | localeMatcher: string; | 新增 |
| ohos.intl | NumberOptions | unitUsage: string | 新增 |
| ohos.intl | LocaleOptions | caseFirst: string; | 新增 |
| ohos.intl | LocaleOptions | numeric: boolean; | 新增 |
| ohos.intl | LocaleOptions | numberingSystem: string; | 新增 |
| ohos.intl | LocaleOptions | hourCycle: string; | 新增 |
| ohos.intl | LocaleOptions | collation: string; | 新增 |
| ohos.intl | LocaleOptions | calendar: string; | 新增 |
| ohos.i18n | TimeZone | getOffset(date?: number): number; | 新增 |
| ohos.i18n | TimeZone | getRawOffset(): number; | 新增 |
| ohos.i18n | TimeZone | getDisplayName(locale?: string, isDST?: boolean): string; | 新增 |
| ohos.i18n | TimeZone | getID(): string; | 新增 |
| ohos.i18n | i18n | function getTimeZone(zoneID?: string): TimeZone; | 新增 |
| ohos.i18n | i18n | function getFirstPreferredLanguage(): string; | 新增 |
| ohos.i18n | i18n | function getPreferredLanguageList(): Array
<string>
; | 新增 |
| ohos.i18n | i18n | function removePreferredLanguage(index: number): boolean; | 新增 |
| ohos.i18n | i18n | function addPreferredLanguage(language: string, index?: number): boolean; | 新增 |
| ohos.i18n | i18n | function set24HourClock(option: boolean): boolean; | 新增 |
| ohos.i18n | i18n | function is24HourClock(): boolean; | 新增 |
| ohos.i18n | Character | getType(char: string): string; | 新增 |
| ohos.i18n | Character | isUpperCase(char: string): boolean; | 新增 |
| ohos.i18n | Character | isLowerCase(char: string): boolean; | 新增 |
| ohos.i18n | Character | isLetter(char: string): boolean; | 新增 |
| ohos.i18n | Character | isIdeograph(char: string): boolean; | 新增 |
| ohos.i18n | Character | isRTL(char: string): boolean; | 新增 |
| ohos.i18n | Character | isWhitespace(char: string): boolean; | 新增 |
| ohos.i18n | Character | isSpaceChar(char: string): boolean; | 新增 |
| ohos.i18n | Character | isDigit(char: string): boolean; | 新增 |
| ohos.i18n | IndexUtil | getIndex(text: string): string; | 新增 |
| ohos.i18n | IndexUtil | addLocale(locale: string): void; | 新增 |
| ohos.i18n | IndexUtil | getIndexList(): Array
<string>
; | 新增 |
| ohos.i18n | i18n | function getInstance(locale?:string): IndexUtil; | 新增 |
| ohos.i18n | BreakIterator | isBoundary(offset: number): boolean; | 新增 |
| ohos.i18n | BreakIterator | getLineBreakText(): string; | 新增 |
| ohos.i18n | BreakIterator | following(offset: number): number; | 新增 |
| ohos.i18n | BreakIterator | setLineBreakText(text: string): void; | 新增 |
| ohos.i18n | BreakIterator | previous(): number; | 新增 |
| ohos.i18n | BreakIterator | next(index?: number): number; | 新增 |
| ohos.i18n | BreakIterator | last(): number; | 新增 |
| ohos.i18n | BreakIterator | first(): number; | 新增 |
| ohos.i18n | BreakIterator | current(): number; | 新增 |
| ohos.i18n | i18n | function getLineInstance(locale: string): BreakIterator; | 新增 |
| ohos.i18n | i18n | function isRTL(locale: string): boolean; | 新增 |
| ohos.i18n | Calendar | isWeekend(date?: Date): boolean; | 新增 |
| ohos.i18n | Calendar | getDisplayName(locale: string): string; | 新增 |
| ohos.i18n | Calendar | get(field: string): number; | 新增 |
| ohos.i18n | Calendar | setMinimalDaysInFirstWeek(value: number): void; | 新增 |
| ohos.i18n | Calendar | getMinimalDaysInFirstWeek(): number; | 新增 |
| ohos.i18n | Calendar | setFirstDayOfWeek(value: number): void; | 新增 |
| ohos.i18n | Calendar | getFirstDayOfWeek(): number; | 新增 |
| ohos.i18n | Calendar | getTimeZone(): string; | 新增 |
| ohos.i18n | Calendar | setTimeZone(timezone: string): void; | 新增 |
| ohos.i18n | Calendar | set(year: number, month: number, date:number, hour?: number, minute?: number, second?: number): void; | 新增 |
| ohos.i18n | Calendar | setTime(date: Date): void;
<br>
setTime(time: number): void; | 新增 |
| ohos.i18n | i18n | function getCalendar(locale: string, type?: string): Calendar; | 新增 |
| ohos.i18n | PhoneNumberFormat | format(number: string): string; | 新增 |
| ohos.i18n | PhoneNumberFormat | isValidNumber(number: string): boolean; | 新增 |
| ohos.i18n | PhoneNumberFormat | constructor(country: string, options?: PhoneNumberFormatOptions); | 新增 |
| ohos.i18n | PhoneNumberFormatOptions | type: string; | 新增 |
| ohos.i18n | UnitInfo | measureSystem: string | 新增 |
| ohos.i18n | UnitInfo | unit: string | 新增 |
| ohos.i18n | Util | unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-graphic.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-misc.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
多模输入
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
多模输入
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.multimodalInput.inputDevice | inputDevice | function getDevice(deviceId: number, callback: AsyncCallback
<InputDeviceData>
): void;
<br>
function getDevice(deviceId: number): Promise
<InputDeviceData>
; | 新增 |
| ohos.multimodalInput.inputDevice | inputDevice | function getDeviceIds(callback: AsyncCallback
<Array
<
number
>
>): void;
<br>
function getDeviceIds(): Promise
<Array
<
number
>
>; | 新增 |
| ohos.multimodalInput.inputDevice | InputDeviceData | axisRanges : Array
<AxisRange>
; | 新增 |
| ohos.multimodalInput.inputDevice | InputDeviceData | sources : Array
<SourceType>
; | 新增 |
| ohos.multimodalInput.inputDevice | InputDeviceData | name: string; | 新增 |
| ohos.multimodalInput.inputDevice | InputDeviceData | id: number; | 新增 |
| ohos.multimodalInput.inputDevice | AxisRange | min: number; | 新增 |
| ohos.multimodalInput.inputDevice | AxisRange | max : number; | 新增 |
| ohos.multimodalInput.inputDevice | AxisRange | axis : AxisType; | 新增 |
| ohos.multimodalInput.inputDevice | AxisRange | source: SourceType; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-network.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
网络管理
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
网络管理
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.net.webSocket | WebSocket | off(type: 'error', callback?: ErrorCallback): void; | 新增 |
| ohos.net.webSocket | WebSocket | on(type: 'error', callback: ErrorCallback): void; | 新增 |
| ohos.net.webSocket | WebSocket | off(type: 'close', callback?: AsyncCallback
<
{
code:
number
,
reason:
string
}
>
): void; | 新增 |
| ohos.net.webSocket | WebSocket | on(type: 'close', callback: AsyncCallback
<
{
code:
number
,
reason:
string
}
>
): void; | 新增 |
| ohos.net.webSocket | WebSocket | off(type: 'message', callback?: AsyncCallback
<string
\|
ArrayBuffer
>
): void; | 新增 |
| ohos.net.webSocket | WebSocket | on(type: 'message', callback: AsyncCallback
<string
\|
ArrayBuffer
>
): void; | 新增 |
| ohos.net.webSocket | WebSocket | off(type: 'open', callback?: AsyncCallback
<Object>
): void; | 新增 |
| ohos.net.webSocket | WebSocket | on(type: 'open', callback: AsyncCallback
<Object>
): void; | 新增 |
| ohos.net.webSocket | WebSocket | close(callback: AsyncCallback
<boolean>
): void;
<br>
close(options: WebSocketCloseOptions, callback: AsyncCallback
<boolean>
): void;
<br>
close(options?: WebSocketCloseOptions): Promise
<boolean>
; | 新增 |
| ohos.net.webSocket | WebSocket | send(data: string
\|
ArrayBuffer, callback: AsyncCallback
<boolean>
): void;
<br>
send(data: string
\|
ArrayBuffer): Promise
<boolean>
; | 新增 |
| ohos.net.webSocket | WebSocket | connect(url: string, callback: AsyncCallback
<boolean>
): void;
<br>
connect(url: string, options: WebSocketRequestOptions, callback: AsyncCallback
<boolean>
): void;
<br>
connect(url: string, options?: WebSocketRequestOptions): Promise
<boolean>
; | 新增 |
| ohos.net.webSocket | WebSocketCloseOptions | reason?: string; | 新增 |
| ohos.net.webSocket | WebSocketCloseOptions | code?: number; | 新增 |
| ohos.net.webSocket | WebSocketRequestOptions | header?: Object; | 新增 |
| ohos.net.webSocket | webSocket | function createWebSocket(): WebSocket; | 新增 |
| ohos.net.socket | TCPSocket | off(type: 'error', callback?: ErrorCallback): void; | 新增 |
| ohos.net.socket | TCPSocket | on(type: 'error', callback: ErrorCallback): void; | 新增 |
| ohos.net.socket | TCPSocket | off(type: 'connect'
\|
'close', callback?: Callback
<void>
): void; | 新增 |
| ohos.net.socket | TCPSocket | off(type: 'connect'
\|
'close', callback?: Callback
<void>
): void; | 新增 |
| ohos.net.socket | TCPSocket | on(type: 'connect'
\|
'close', callback: Callback
<void>
): void; | 新增 |
| ohos.net.socket | TCPSocket | on(type: 'connect'
\|
'close', callback: Callback
<void>
): void; | 新增 |
| ohos.net.socket | TCPSocket | off(type: 'message', callback?: Callback
<
{
message:
ArrayBuffer
,
remoteInfo:
SocketRemoteInfo
}
>
): void; | 新增 |
| ohos.net.socket | TCPSocket | on(type: 'message', callback: Callback
<
{
message:
ArrayBuffer
,
remoteInfo:
SocketRemoteInfo
}
>
): void; | 新增 |
| ohos.net.socket | TCPSocket | setExtraOptions(options: TCPExtraOptions, callback: AsyncCallback
<void>
): void;
<br>
setExtraOptions(options: TCPExtraOptions): Promise
<void>
; | 新增 |
| ohos.net.socket | TCPSocket | getState(callback: AsyncCallback
<SocketStateBase>
): void;
<br>
getState(): Promise
<SocketStateBase>
; | 新增 |
| ohos.net.socket | TCPSocket | getRemoteAddress(callback: AsyncCallback
<NetAddress>
): void;
<br>
getRemoteAddress(): Promise
<NetAddress>
; | 新增 |
| ohos.net.socket | TCPSocket | close(callback: AsyncCallback
<void>
): void;
<br>
close(): Promise
<void>
; | 新增 |
| ohos.net.socket | TCPSocket | send(options: TCPSendOptions, callback: AsyncCallback
<void>
): void;
<br>
send(options: TCPSendOptions): Promise
<void>
; | 新增 |
| ohos.net.socket | TCPSocket | connect(options: TCPConnectOptions, callback: AsyncCallback
<void>
): void;
<br>
connect(options: TCPConnectOptions): Promise
<void>
; | 新增 |
| ohos.net.socket | TCPSocket | bind(address: NetAddress, callback: AsyncCallback
<void>
): void;
<br>
bind(address: NetAddress): Promise
<void>
; | 新增 |
| ohos.net.socket | TCPExtraOptions | socketLinger: {on: boolean, linger: number}; | 新增 |
| ohos.net.socket | TCPExtraOptions | TCPNoDelay?: boolean; | 新增 |
| ohos.net.socket | TCPExtraOptions | OOBInline?: boolean; | 新增 |
| ohos.net.socket | TCPExtraOptions | keepAlive?: boolean; | 新增 |
| ohos.net.socket | TCPSendOptions | encoding?: string; | 新增 |
| ohos.net.socket | TCPSendOptions | data: string
\|
ArrayBuffer; | 新增 |
| ohos.net.socket | TCPConnectOptions | timeout?: number; | 新增 |
| ohos.net.socket | TCPConnectOptions | address: NetAddress; | 新增 |
| ohos.net.socket | UDPSocket | off(type: 'error', callback?: ErrorCallback): void; | 新增 |
| ohos.net.socket | UDPSocket | on(type: 'error', callback: ErrorCallback): void; | 新增 |
| ohos.net.socket | UDPSocket | off(type: 'listening'
\|
'close', callback?: Callback
<void>
): void; | 新增 |
| ohos.net.socket | UDPSocket | off(type: 'listening'
\|
'close', callback?: Callback
<void>
): void; | 新增 |
| ohos.net.socket | UDPSocket | on(type: 'listening'
\|
'close', callback: Callback
<void>
): void; | 新增 |
| ohos.net.socket | UDPSocket | on(type: 'listening'
\|
'close', callback: Callback
<void>
): void; | 新增 |
| ohos.net.socket | UDPSocket | off(type: 'message', callback?: Callback
<
{
message:
ArrayBuffer
,
remoteInfo:
SocketRemoteInfo
}
>
): void; | 新增 |
| ohos.net.socket | UDPSocket | on(type: 'message', callback: Callback
<
{
message:
ArrayBuffer
,
remoteInfo:
SocketRemoteInfo
}
>
): void; | 新增 |
| ohos.net.socket | UDPSocket | setExtraOptions(options: UDPExtraOptions, callback: AsyncCallback
<void>
): void;
<br>
setExtraOptions(options: UDPExtraOptions): Promise
<void>
; | 新增 |
| ohos.net.socket | UDPSocket | getState(callback: AsyncCallback
<SocketStateBase>
): void;
<br>
getState(): Promise
<SocketStateBase>
; | 新增 |
| ohos.net.socket | UDPSocket | close(callback: AsyncCallback
<void>
): void;
<br>
close(): Promise
<void>
; | 新增 |
| ohos.net.socket | UDPSocket | send(options: UDPSendOptions, callback: AsyncCallback
<void>
): void;
<br>
send(options: UDPSendOptions): Promise
<void>
; | 新增 |
| ohos.net.socket | UDPSocket | bind(address: NetAddress, callback: AsyncCallback
<void>
): void;
<br>
bind(address: NetAddress): Promise
<void>
; | 新增 |
| ohos.net.socket | SocketRemoteInfo | size: number; | 新增 |
| ohos.net.socket | SocketRemoteInfo | port: number; | 新增 |
| ohos.net.socket | SocketRemoteInfo | family: 'IPv4'
\|
'IPv6'; | 新增 |
| ohos.net.socket | SocketRemoteInfo | address: string; | 新增 |
| ohos.net.socket | SocketStateBase | isConnected: boolean; | 新增 |
| ohos.net.socket | SocketStateBase | isClose: boolean; | 新增 |
| ohos.net.socket | SocketStateBase | isBound: boolean; | 新增 |
| ohos.net.socket | UDPExtraOptions | broadcast?: boolean; | 新增 |
| ohos.net.socket | ExtraOptionsBase | socketTimeout?: number; | 新增 |
| ohos.net.socket | ExtraOptionsBase | reuseAddress?: boolean; | 新增 |
| ohos.net.socket | ExtraOptionsBase | sendBufferSize?: number; | 新增 |
| ohos.net.socket | ExtraOptionsBase | receiveBufferSize?: number; | 新增 |
| ohos.net.socket | UDPSendOptions | address: NetAddress; | 新增 |
| ohos.net.socket | UDPSendOptions | data: string
\|
ArrayBuffer; | 新增 |
| ohos.net.socket | socket | function constructTCPSocketInstance(): TCPSocket; | 新增 |
| ohos.net.socket | socket | function constructUDPSocketInstance(): UDPSocket; | 新增 |
| ohos.net.socket | socket | import NetAddress = connection.NetAddress; | 新增 |
| ohos.net.http | HttpResponse | cookies: string; | 新增 |
| ohos.net.http | HttpResponse | header: Object; | 新增 |
| ohos.net.http | HttpResponse | responseCode: ResponseCode
\|
number; | 新增 |
| ohos.net.http | HttpResponse | result: string
\|
Object
\|
ArrayBuffer; | 新增 |
| ohos.net.http | ResponseCode | VERSION | 新增 |
| ohos.net.http | ResponseCode | GATEWAY_TIMEOUT | 新增 |
| ohos.net.http | ResponseCode | UNAVAILABLE | 新增 |
| ohos.net.http | ResponseCode | BAD_GATEWAY | 新增 |
| ohos.net.http | ResponseCode | NOT_IMPLEMENTED | 新增 |
| ohos.net.http | ResponseCode | INTERNAL_ERROR = 500 | 新增 |
| ohos.net.http | ResponseCode | UNSUPPORTED_TYPE | 新增 |
| ohos.net.http | ResponseCode | REQ_TOO_LONG | 新增 |
| ohos.net.http | ResponseCode | ENTITY_TOO_LARGE | 新增 |
| ohos.net.http | ResponseCode | PRECON_FAILED | 新增 |
| ohos.net.http | ResponseCode | LENGTH_REQUIRED | 新增 |
| ohos.net.http | ResponseCode | GONE | 新增 |
| ohos.net.http | ResponseCode | CONFLICT | 新增 |
| ohos.net.http | ResponseCode | CLIENT_TIMEOUT | 新增 |
| ohos.net.http | ResponseCode | PROXY_AUTH | 新增 |
| ohos.net.http | ResponseCode | NOT_ACCEPTABLE | 新增 |
| ohos.net.http | ResponseCode | BAD_METHOD | 新增 |
| ohos.net.http | ResponseCode | NOT_FOUND | 新增 |
| ohos.net.http | ResponseCode | FORBIDDEN | 新增 |
| ohos.net.http | ResponseCode | PAYMENT_REQUIRED | 新增 |
| ohos.net.http | ResponseCode | UNAUTHORIZED | 新增 |
| ohos.net.http | ResponseCode | BAD_REQUEST = 400 | 新增 |
| ohos.net.http | ResponseCode | USE_PROXY | 新增 |
| ohos.net.http | ResponseCode | NOT_MODIFIED | 新增 |
| ohos.net.http | ResponseCode | SEE_OTHER | 新增 |
| ohos.net.http | ResponseCode | MOVED_TEMP | 新增 |
| ohos.net.http | ResponseCode | MOVED_PERM | 新增 |
| ohos.net.http | ResponseCode | MULT_CHOICE = 300 | 新增 |
| ohos.net.http | ResponseCode | PARTIAL | 新增 |
| ohos.net.http | ResponseCode | RESET | 新增 |
| ohos.net.http | ResponseCode | NO_CONTENT | 新增 |
| ohos.net.http | ResponseCode | NOT_AUTHORITATIVE | 新增 |
| ohos.net.http | ResponseCode | ACCEPTED | 新增 |
| ohos.net.http | ResponseCode | CREATED | 新增 |
| ohos.net.http | ResponseCode | OK = 200 | 新增 |
| ohos.net.http | RequestMethod | CONNECT = "CONNECT" | 新增 |
| ohos.net.http | RequestMethod | TRACE = "TRACE" | 新增 |
| ohos.net.http | RequestMethod | DELETE = "DELETE" | 新增 |
| ohos.net.http | RequestMethod | PUT = "PUT" | 新增 |
| ohos.net.http | RequestMethod | POST = "POST" | 新增 |
| ohos.net.http | RequestMethod | HEAD = "HEAD" | 新增 |
| ohos.net.http | RequestMethod | GET = "GET" | 新增 |
| ohos.net.http | RequestMethod | OPTIONS = "OPTIONS" | 新增 |
| ohos.net.http | HttpRequest | once(type: "headersReceive", callback: Callback
<Object>
): void; | 新增 |
| ohos.net.http | HttpRequest | off(type: "headersReceive", callback?: Callback
<Object>
): void; | 新增 |
| ohos.net.http | HttpRequest | on(type: "headersReceive", callback: Callback
<Object>
): void; | 新增 |
| ohos.net.http | HttpRequest | off(type: "headerReceive", callback?: AsyncCallback
<Object>
): void; | 新增 |
| ohos.net.http | HttpRequest | on(type: "headerReceive", callback: AsyncCallback
<Object>
): void; | 新增 |
| ohos.net.http | HttpRequest | destroy(): void; | 新增 |
| ohos.net.http | HttpRequest | request(url: string, callback: AsyncCallback
<HttpResponse>
): void;
<br>
request(url: string, options: HttpRequestOptions, callback: AsyncCallback
<HttpResponse>
): void;
<br>
request(url: string, options?: HttpRequestOptions): Promise
<HttpResponse>
; | 新增 |
| ohos.net.http | HttpRequestOptions | connectTimeout?: number; | 新增 |
| ohos.net.http | HttpRequestOptions | readTimeout?: number; | 新增 |
| ohos.net.http | HttpRequestOptions | header?: Object; | 新增 |
| ohos.net.http | HttpRequestOptions | extraData?: string
\|
Object
\|
ArrayBuffer; | 新增 |
| ohos.net.http | HttpRequestOptions | method?: RequestMethod; | 新增 |
| ohos.net.http | http | function createHttp(): HttpRequest; | 新增 |
| ohos.net.connection | NetAddress | port?: number; | 新增 |
| ohos.net.connection | NetAddress | family?: number; | 新增 |
| ohos.net.connection | NetAddress | address: string; | 新增 |
| ohos.net.connection | LinkAddress | prefixLength: number; | 新增 |
| ohos.net.connection | LinkAddress | address: NetAddress; | 新增 |
| ohos.net.connection | RouteInfo | isDefaultRoute: boolean; | 新增 |
| ohos.net.connection | RouteInfo | hasGateway: boolean; | 新增 |
| ohos.net.connection | RouteInfo | gateway: NetAddress; | 新增 |
| ohos.net.connection | RouteInfo | destination: LinkAddress; | 新增 |
| ohos.net.connection | RouteInfo | interface: string; | 新增 |
| ohos.net.connection | ConnectionProperties | mtu: number; | 新增 |
| ohos.net.connection | ConnectionProperties | routes: Array
<RouteInfo>
; | 新增 |
| ohos.net.connection | ConnectionProperties | dnses: Array
<NetAddress>
; | 新增 |
| ohos.net.connection | ConnectionProperties | linkAddresses: Array
<LinkAddress>
; | 新增 |
| ohos.net.connection | ConnectionProperties | domains: string; | 新增 |
| ohos.net.connection | ConnectionProperties | interfaceName: string; | 新增 |
| ohos.net.connection | NetBearType | BEARER_ETHERNET = 3 | 新增 |
| ohos.net.connection | NetBearType | BEARER_WIFI = 1 | 新增 |
| ohos.net.connection | NetBearType | BEARER_CELLULAR = 0 | 新增 |
| ohos.net.connection | NetCap | NET_CAPABILITY_VALIDATED = 16 | 新增 |
| ohos.net.connection | NetCap | NET_CAPABILITY_NOT_VPN = 15 | 新增 |
| ohos.net.connection | NetCap | NET_CAPABILITY_INTERNET = 12 | 新增 |
| ohos.net.connection | NetCap | NET_CAPABILITY_NOT_METERED = 11 | 新增 |
| ohos.net.connection | NetCap | NET_CAPABILITY_MMS = 0 | 新增 |
| ohos.net.connection | NetCapabilities | bearerTypes: Array
<NetBearType>
; | 新增 |
| ohos.net.connection | NetCapabilities | networkCap?: Array
<NetCap>
; | 新增 |
| ohos.net.connection | NetCapabilities | linkDownBandwidthKbps?: number; | 新增 |
| ohos.net.connection | NetCapabilities | linkUpBandwidthKbps?: number; | 新增 |
| ohos.net.connection | NetHandle | getAddressByName(host: string, callback: AsyncCallback
<NetAddress>
): void;
<br>
getAddressByName(host: string): Promise
<NetAddress>
; | 新增 |
| ohos.net.connection | NetHandle | getAddressesByName(host: string, callback: AsyncCallback
<Array
<
NetAddress
>
>): void;
<br>
getAddressesByName(host: string): Promise
<Array
<
NetAddress
>
>; | 新增 |
| ohos.net.connection | NetHandle | netId: number; | 新增 |
| ohos.net.connection | NetSpecifier | bearerPrivateIdentifier?: string; | 新增 |
| ohos.net.connection | NetSpecifier | netCapabilities: NetCapabilities; | 新增 |
| ohos.net.connection | NetConnection | unregister(callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.net.connection | NetConnection | register(callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netUnavailable', callback: Callback
<void>
): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netLost', callback: Callback
<NetHandle>
): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netConnectionPropertiesChange', callback: Callback
<
{
netHandle:
NetHandle
,
connectionProperties:
ConnectionProperties
}
>
): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netCapabilitiesChange', callback: Callback
<
{
netHandle:
NetHandle
,
netCap:
NetCapabilities
}
>
): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netBlockStatusChange', callback: Callback
<
{
netHandle:
NetHandle
,
blocked:
boolean
}
>
): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netAvailable', callback: Callback
<NetHandle>
): void; | 新增 |
| ohos.net.connection | connection | function getAddressesByName(host: string, callback: AsyncCallback
<Array
<
NetAddress
>
>): void;
<br>
function getAddressesByName(host: string): Promise
<Array
<
NetAddress
>
>; | 新增 |
| ohos.net.connection | connection | function reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback
<void>
): void;
<br>
function reportNetDisconnected(netHandle: NetHandle): Promise
<void>
; | 新增 |
| ohos.net.connection | connection | function reportNetConnected(netHandle: NetHandle, callback: AsyncCallback
<void>
): void;
<br>
function reportNetConnected(netHandle: NetHandle): Promise
<void>
; | 新增 |
| ohos.net.connection | connection | function hasDefaultNet(callback: AsyncCallback
<boolean>
): void;
<br>
function hasDefaultNet(): Promise
<boolean>
; | 新增 |
| ohos.net.connection | connection | function getNetCapabilities(netHandle: NetHandle, callback: AsyncCallback
<NetCapabilities>
): void;
<br>
function getNetCapabilities(netHandle: NetHandle): Promise
<NetCapabilities>
; | 新增 |
| ohos.net.connection | connection | function getConnectionProperties(netHandle: NetHandle, callback: AsyncCallback
<ConnectionProperties>
): void;
<br>
function getConnectionProperties(netHandle: NetHandle): Promise
<ConnectionProperties>
; | 新增 |
| ohos.net.connection | connection | function getAllNets(callback: AsyncCallback
<Array
<
NetHandle
>
>): void;
<br>
function getAllNets(): Promise
<Array
<
NetHandle
>
>; | 新增 |
| ohos.net.connection | connection | function getDefaultNet(callback: AsyncCallback
<NetHandle>
): void;
<br>
function getDefaultNet(): Promise
<NetHandle>
; | 新增 |
| ohos.net.connection | connection | function createNetConnection(netSpecifier?: NetSpecifier, timeout?: number): NetConnection; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-recovery.md
已删除
100644 → 0
浏览文件 @
6075bedd
# xxx子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
资源调度
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
资源调度
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.reminderAgent | LocalDateTime | second?: number; | 新增 |
| ohos.reminderAgent | LocalDateTime | minute: number; | 新增 |
| ohos.reminderAgent | LocalDateTime | hour: number; | 新增 |
| ohos.reminderAgent | LocalDateTime | day: number; | 新增 |
| ohos.reminderAgent | LocalDateTime | month: number; | 新增 |
| ohos.reminderAgent | LocalDateTime | year: number; | 新增 |
| ohos.reminderAgent | ReminderRequestTimer | triggerTimeInSeconds: number; | 新增 |
| ohos.reminderAgent | ReminderRequestAlarm | daysOfWeek?: Array
<number>
; | 新增 |
| ohos.reminderAgent | ReminderRequestAlarm | minute: number; | 新增 |
| ohos.reminderAgent | ReminderRequestAlarm | hour: number; | 新增 |
| ohos.reminderAgent | ReminderRequestCalendar | repeatDays?: Array
<number>
; | 新增 |
| ohos.reminderAgent | ReminderRequestCalendar | repeatMonths?: Array
<number>
; | 新增 |
| ohos.reminderAgent | ReminderRequestCalendar | dateTime: LocalDateTime; | 新增 |
| ohos.reminderAgent | ReminderRequest | slotType?: notification.SlotType; | 新增 |
| ohos.reminderAgent | ReminderRequest | notificationId?: number; | 新增 |
| ohos.reminderAgent | ReminderRequest | snoozeContent?: string; | 新增 |
| ohos.reminderAgent | ReminderRequest | expiredContent?: string; | 新增 |
| ohos.reminderAgent | ReminderRequest | content?: string; | 新增 |
| ohos.reminderAgent | ReminderRequest | title?: string; | 新增 |
| ohos.reminderAgent | ReminderRequest | timeInterval?: number; | 新增 |
| ohos.reminderAgent | ReminderRequest | snoozeTimes?: number; | 新增 |
| ohos.reminderAgent | ReminderRequest | ringDuration?: number; | 新增 |
| ohos.reminderAgent | ReminderRequest | maxScreenWantAgent?: MaxScreenWantAgent; | 新增 |
| ohos.reminderAgent | ReminderRequest | wantAgent?: WantAgent; | 新增 |
| ohos.reminderAgent | ReminderRequest | actionButton?: [ActionButton?, ActionButton?]; | 新增 |
| ohos.reminderAgent | ReminderRequest | reminderType: ReminderType; | 新增 |
| ohos.reminderAgent | MaxScreenWantAgent | abilityName: string; | 新增 |
| ohos.reminderAgent | MaxScreenWantAgent | pkgName: string; | 新增 |
| ohos.reminderAgent | WantAgent | abilityName: string; | 新增 |
| ohos.reminderAgent | WantAgent | pkgName: string; | 新增 |
| ohos.reminderAgent | ActionButton | type: ActionButtonType; | 新增 |
| ohos.reminderAgent | ActionButton | title: string; | 新增 |
| ohos.reminderAgent | ReminderType | REMINDER_TYPE_ALARM = 2 | 新增 |
| ohos.reminderAgent | ReminderType | REMINDER_TYPE_CALENDAR = 1 | 新增 |
| ohos.reminderAgent | ReminderType | REMINDER_TYPE_TIMER = 0 | 新增 |
| ohos.reminderAgent | ActionButtonType | ACTION_BUTTON_TYPE_SNOOZE = 1 | 新增 |
| ohos.reminderAgent | ActionButtonType | ACTION_BUTTON_TYPE_CLOSE = 0 | 新增 |
| ohos.reminderAgent | reminderAgent | function removeNotificationSlot(slotType: notification.SlotType, callback: AsyncCallback
<void>
): void;
<br>
function removeNotificationSlot(slotType: notification.SlotType): Promise
<void>
; | 新增 |
| ohos.reminderAgent | reminderAgent | function addNotificationSlot(slot: NotificationSlot, callback: AsyncCallback
<void>
): void;
<br>
function addNotificationSlot(slot: NotificationSlot): Promise
<void>
; | 新增 |
| ohos.reminderAgent | reminderAgent | function cancelAllReminders(callback: AsyncCallback
<void>
): void;
<br>
function cancelAllReminders(): Promise
<void>
; | 新增 |
| ohos.reminderAgent | reminderAgent | function getValidReminders(callback: AsyncCallback
<Array
<
ReminderRequest
>
>): void;
<br>
function getValidReminders(): Promise
<Array
<
ReminderRequest
>
>; | 新增 |
| ohos.reminderAgent | reminderAgent | function cancelReminder(reminderId: number, callback: AsyncCallback
<void>
): void;
<br>
function cancelReminder(reminderId: number): Promise
<void>
; | 新增 |
| ohos.reminderAgent | reminderAgent | function publishReminder(reminderReq: ReminderRequest, callback: AsyncCallback
<number>
): void;
<br>
function publishReminder(reminderReq: ReminderRequest): Promise
<number>
; | 新增 |
| ohos.bundleState | bundleState | function queryCurrentBundleActiveStates(begin: number, end: number, callback: AsyncCallback
<Array
<
BundleActiveState
>
>): void;
<br>
function queryCurrentBundleActiveStates(begin: number, end: number): Promise
<Array
<
BundleActiveState
>
>; | 新增 |
| ohos.bundleState | IntervalType | BY_ANNUALLY = 4 | 新增 |
| ohos.bundleState | IntervalType | BY_MONTHLY = 3 | 新增 |
| ohos.bundleState | IntervalType | BY_WEEKLY = 2 | 新增 |
| ohos.bundleState | IntervalType | BY_DAILY = 1 | 新增 |
| ohos.bundleState | IntervalType | BY_OPTIMIZED = 0 | 新增 |
| ohos.bundleState | BundleActiveInfoResponse | [key: string]: BundleStateInfo; | 新增 |
| ohos.bundleState | bundleState | function queryAppUsagePriorityGroup(callback: AsyncCallback
<number>
): void;
<br>
function queryAppUsagePriorityGroup(): Promise
<number>
; | 新增 |
| ohos.bundleState | bundleState | function isIdleState(bundleName: string, callback: AsyncCallback
<boolean>
): void;
<br>
function isIdleState(bundleName: string): Promise
<boolean>
; | 新增 |
| ohos.bundleState | BundleActiveState | stateType?: number; | 新增 |
| ohos.bundleState | BundleActiveState | stateOccurredTime?: number; | 新增 |
| ohos.bundleState | BundleActiveState | nameOfClass?: string; | 新增 |
| ohos.bundleState | BundleActiveState | indexOfLink?: string; | 新增 |
| ohos.bundleState | BundleActiveState | bundleName?: string; | 新增 |
| ohos.bundleState | BundleActiveState | appUsagePriorityGroup?: number; | 新增 |
| ohos.bundleState | BundleStateInfo | merge(toMerge: BundleStateInfo): void; | 新增 |
| ohos.bundleState | BundleStateInfo | infosEndTime?: number; | 新增 |
| ohos.bundleState | BundleStateInfo | infosBeginTime?: number; | 新增 |
| ohos.bundleState | BundleStateInfo | fgAbilityPrevAccessTime?: number; | 新增 |
| ohos.bundleState | BundleStateInfo | fgAbilityAccessTotalTime?: number; | 新增 |
| ohos.bundleState | BundleStateInfo | bundleName?: string; | 新增 |
| ohos.bundleState | BundleStateInfo | abilitySeenTotalTime?: number; | 新增 |
| ohos.bundleState | BundleStateInfo | abilityPrevSeenTime?: number; | 新增 |
| ohos.bundleState | BundleStateInfo | abilityPrevAccessTime?: number; | 新增 |
| ohos.bundleState | BundleStateInfo | abilityInFgTotalTime?: number; | 新增 |
| ohos.bundleState | BundleStateInfo | id: number; | 新增 |
| ohos.backgroundTaskManager | BackgroundMode | TASK_KEEPING = 9 | 新增 |
| ohos.backgroundTaskManager | BackgroundMode | MULTI_DEVICE_CONNECTION = 6 | 新增 |
| ohos.backgroundTaskManager | BackgroundMode | BLUETOOTH_INTERACTION = 5 | 新增 |
| ohos.backgroundTaskManager | BackgroundMode | LOCATION = 4 | 新增 |
| ohos.backgroundTaskManager | BackgroundMode | AUDIO_RECORDING = 3 | 新增 |
| ohos.backgroundTaskManager | BackgroundMode | AUDIO_PLAYBACK = 2 | 新增 |
| ohos.backgroundTaskManager | BackgroundMode | DATA_TRANSFER = 1 | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager | function stopBackgroundRunning(context: Context, callback: AsyncCallback
<void>
): void;
<br>
function stopBackgroundRunning(context: Context): Promise
<void>
; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager | function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback
<void>
): void;
<br>
function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): Promise
<void>
; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager | function requestSuspendDelay(reason: string, callback: Callback
<void>
): DelaySuspendInfo; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager | function getRemainingDelayTime(requestId: number, callback: AsyncCallback
<number>
): void;
<br>
function getRemainingDelayTime(requestId: number): Promise
<number>
; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager | function cancelSuspendDelay(requestId: number): void; | 新增 |
| ohos.backgroundTaskManager | DelaySuspendInfo | actualDelayTime: number; | 新增 |
| ohos.backgroundTaskManager | DelaySuspendInfo | requestId: number; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-security.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-settings.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-soft-bus.md
浏览文件 @
d3c9aef1
#
xxx
子系统JS API变更
#
分布式软总线
子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
XXX
子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
分布式软总线
子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.rpc | Ashmem | readFromAshmem(size: number, offset: number): number[]; | 新增 |
| ohos.rpc | Ashmem | writeToAshmem(buf: number[], size: number, offset: number): boolean; | 新增 |
| ohos.rpc | Ashmem | setProtection(protectionType: number): boolean; | 新增 |
| ohos.rpc | Ashmem | mapReadOnlyAshmem(): boolean; | 新增 |
| ohos.rpc | Ashmem | mapReadAndWriteAshmem(): boolean; | 新增 |
| ohos.rpc | Ashmem | mapAshmem(mapType: number): boolean; | 新增 |
| ohos.rpc | Ashmem | getAshmemSize(): number; | 新增 |
| ohos.rpc | Ashmem | unmapAshmem(): void; | 新增 |
| ohos.rpc | Ashmem | closeAshmem(): void; | 新增 |
| ohos.rpc | Ashmem | static createAshmemFromExisting(ashmem: Ashmem): Ashmem; | 新增 |
| ohos.rpc | Ashmem | static createAshmem(name: string, size: number): Ashmem; | 新增 |
| ohos.rpc | Ashmem | PROT_WRITE = 2; | 新增 |
| ohos.rpc | Ashmem | PROT_READ = 1; | 新增 |
| ohos.rpc | Ashmem | PROT_NONE = 0; | 新增 |
| ohos.rpc | Ashmem | PROT_EXEC = 4; | 新增 |
| ohos.rpc | IPCSkeleton | static getCallingTokenId(): number; | 新增 |
| ohos.rpc | SendRequestResult | reply: MessageParcel; | 新增 |
| ohos.rpc | SendRequestResult | data: MessageParcel; | 新增 |
| ohos.rpc | SendRequestResult | code: number; | 新增 |
| ohos.rpc | SendRequestResult | errCode: number; | 新增 |
| ohos.rpc | MessageParcel | readRawData(size: number): number[]; | 新增 |
| ohos.rpc | MessageParcel | writeRawData(rawData: number[], size: number): boolean; | 新增 |
| ohos.rpc | MessageParcel | getRawDataCapacity(): number; | 新增 |
| ohos.rpc | MessageParcel | readAshmem(): Ashmem; | 新增 |
| ohos.rpc | MessageParcel | writeAshmem(ashmem: Ashmem): boolean; | 新增 |
| ohos.rpc | MessageParcel | readFileDescriptor(): number; | 新增 |
| ohos.rpc | MessageParcel | writeFileDescriptor(fd: number): boolean; | 新增 |
| ohos.rpc | MessageParcel | containFileDescriptors(): boolean; | 新增 |
| ohos.rpc | MessageParcel | static dupFileDescriptor(fd: number) :number; | 新增 |
| ohos.rpc | MessageParcel | static closeFileDescriptor(fd: number): void; | 新增 |
| ohos.rpc | MessageParcel | readRemoteObjectArray(objects: IRemoteObject[]): void;
<br>
readRemoteObjectArray(): IRemoteObject[]; | 新增 |
| ohos.rpc | MessageParcel | readSequenceableArray(sequenceableArray: Sequenceable[]): void; | 新增 |
| ohos.rpc | MessageParcel | writeRemoteObjectArray(objectArray: IRemoteObject[]): boolean; | 新增 |
| ohos.rpc | MessageParcel | readException(): void; | 新增 |
| ohos.rpc | MessageParcel | writeNoException(): void; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md
0 → 100644
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-update.md
已删除
100644 → 0
浏览文件 @
6075bedd
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-usb.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-v3.1-release.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-window.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
zh-cn/release-notes/api-change/v3.1-Release/native-apidiff-v3.1-release.md
浏览文件 @
d3c9aef1
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录