Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
f852f4d6
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看板
未验证
提交
f852f4d6
编写于
9月 23, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 23, 2022
浏览文件
操作
浏览文件
下载
差异文件
!9860 修改文档深耕活动VOD问题——部分需要翻译
Merge pull request !9860 from 时睿/master
上级
42eb6f01
1b60f571
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
3 addition
and
91 deletion
+3
-91
en/release-notes/api-change/v3.2-beta1/js-apidiff-soft-bus.md
...elease-notes/api-change/v3.2-beta1/js-apidiff-soft-bus.md
+0
-43
en/release-notes/api-change/v3.2-beta1/readme.md
en/release-notes/api-change/v3.2-beta1/readme.md
+0
-1
zh-cn/application-dev/napi/napi-guidelines.md
zh-cn/application-dev/napi/napi-guidelines.md
+3
-3
zh-cn/release-notes/api-change/v3.2-beta1/js-apidiff-soft-bus.md
...elease-notes/api-change/v3.2-beta1/js-apidiff-soft-bus.md
+0
-43
zh-cn/release-notes/api-change/v3.2-beta1/readme.md
zh-cn/release-notes/api-change/v3.2-beta1/readme.md
+0
-1
未找到文件。
en/release-notes/api-change/v3.2-beta1/js-apidiff-soft-bus.md
已删除
100644 → 0
浏览文件 @
42eb6f01
# JS API Changes of the DSoftBus Subsystem
The table below lists the APIs changes of the DSoftBus subsystem in OpenHarmony 3.2 Beta1 over OpenHarmony 3.1 Release.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.rpc | Ashmem | readFromAshmem(size: number, offset: number): number[]; | Added|
| ohos.rpc | Ashmem | writeToAshmem(buf: number[], size: number, offset: number): boolean; | Added|
| ohos.rpc | Ashmem | setProtection(protectionType: number): boolean; | Added|
| ohos.rpc | Ashmem | mapReadOnlyAshmem(): boolean; | Added|
| ohos.rpc | Ashmem | mapReadAndWriteAshmem(): boolean; | Added|
| ohos.rpc | Ashmem | mapAshmem(mapType: number): boolean; | Added|
| ohos.rpc | Ashmem | getAshmemSize(): number; | Added|
| ohos.rpc | Ashmem | unmapAshmem(): void; | Added|
| ohos.rpc | Ashmem | closeAshmem(): void; | Added|
| ohos.rpc | Ashmem | static createAshmemFromExisting(ashmem: Ashmem): Ashmem; | Added|
| ohos.rpc | Ashmem | static createAshmem(name: string, size: number): Ashmem; | Added|
| ohos.rpc | Ashmem | PROT_WRITE = 2; | Added|
| ohos.rpc | Ashmem | PROT_READ = 1; | Added|
| ohos.rpc | Ashmem | PROT_NONE = 0; | Added|
| ohos.rpc | Ashmem | PROT_EXEC = 4; | Added|
| ohos.rpc | IPCSkeleton | static getCallingTokenId(): number; | Added|
| ohos.rpc | SendRequestResult | reply: MessageParcel; | Added|
| ohos.rpc | SendRequestResult | data: MessageParcel; | Added|
| ohos.rpc | SendRequestResult | code: number; | Added|
| ohos.rpc | SendRequestResult | errCode: number; | Added|
| ohos.rpc | MessageParcel | readRawData(size: number): number[]; | Added|
| ohos.rpc | MessageParcel | writeRawData(rawData: number[], size: number): boolean; | Added|
| ohos.rpc | MessageParcel | getRawDataCapacity(): number; | Added|
| ohos.rpc | MessageParcel | readAshmem(): Ashmem; | Added|
| ohos.rpc | MessageParcel | writeAshmem(ashmem: Ashmem): boolean; | Added|
| ohos.rpc | MessageParcel | readFileDescriptor(): number; | Added|
| ohos.rpc | MessageParcel | writeFileDescriptor(fd: number): boolean; | Added|
| ohos.rpc | MessageParcel | containFileDescriptors(): boolean; | Added|
| ohos.rpc | MessageParcel | static dupFileDescriptor(fd: number) :number; | Added|
| ohos.rpc | MessageParcel | static closeFileDescriptor(fd: number): void; | Added|
| ohos.rpc | MessageParcel | readRemoteObjectArray(objects: IRemoteObject[]): void;
<br>
readRemoteObjectArray(): IRemoteObject[]; | Added|
| ohos.rpc | MessageParcel | readSequenceableArray(sequenceableArray: Sequenceable[]): void; | Added|
| ohos.rpc | MessageParcel | writeRemoteObjectArray(objectArray: IRemoteObject[]): boolean; | Added|
| ohos.rpc | MessageParcel | readException(): void; | Added|
| ohos.rpc | MessageParcel | writeNoException(): void; | Added|
en/release-notes/api-change/v3.2-beta1/readme.md
浏览文件 @
f852f4d6
...
...
@@ -18,7 +18,6 @@ This directory records the API changes in OpenHarmony 3.2 Beta1 over OpenHarmony
-
[
Multimodal input subsystem
](
js-apidiff-multi-modal-input.md
)
-
[
Multimedia subsystem
](
js-apidiff-multimedia.md
)
-
[
Distributed scheduler subsystem
](
js-apidiff-resource-scheduler.md
)
-
[
DSoftBus subsystem
](
js-apidiff-soft-bus.md
)
-
[
Test subsystem
](
js-apidiff-unitest.md
)
-
[
Web subsystem
](
js-apidiff-web.md
)
-
[
Window manager subsystem
](
js-apidiff-window.md
)
...
...
zh-cn/application-dev/napi/napi-guidelines.md
浏览文件 @
f852f4d6
...
...
@@ -17,12 +17,12 @@ js侧通过`import`引入native侧包含处理js逻辑的so,如:`import hell
### so命名规则
*
每个模块对应一个so
*
如模块名为
`hello`
,则so的名字为
`libhello.so`
,
`napi_module`
中
`nm_modname`
字段应为
`hello`
,大小写与模块名保持一致,应用使用时写作:
`import hello from 'libhello.so'`
*
每个模块对应一个so
。
*
如模块名为
`hello`
,则so的名字为
`libhello.so`
,
`napi_module`
中
`nm_modname`
字段应为
`hello`
,大小写与模块名保持一致,应用使用时写作:
`import hello from 'libhello.so'`
。
### js对象线程限制
ark引擎会对js对象线程使用进行保护,
不正确使用会引起应用crash。
ark引擎会对js对象线程使用进行保护,
使用不当会引起应用crash,因此需要遵循如下原则:
*
napi接口只能在js线程使用。
*
env与线程绑定,不能跨线程使用。native侧js对象只能在创建时的线程使用,即与线程所持有的env绑定。
...
...
zh-cn/release-notes/api-change/v3.2-beta1/js-apidiff-soft-bus.md
已删除
100644 → 0
浏览文件 @
42eb6f01
# 分布式软总线子系统JS API变更
OpenHarmony 3.2 Beta1版本相较于OpenHarmony 3.1 Release版本,分布式软总线子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| 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.2-beta1/readme.md
浏览文件 @
f852f4d6
...
...
@@ -18,7 +18,6 @@
-
[
多模输入
](
js-apidiff-multi-modal-input.md
)
-
[
多媒体
](
js-apidiff-multimedia.md
)
-
[
资源调度
](
js-apidiff-resource-scheduler.md
)
-
[
分布式软总线
](
js-apidiff-soft-bus.md
)
-
[
测试框架
](
js-apidiff-unitest.md
)
-
[
Web
](
js-apidiff-web.md
)
-
[
窗口管理
](
js-apidiff-window.md
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录