Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
00f8524e
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
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看板
提交
00f8524e
编写于
8月 23, 2022
作者:
三
三三四四
提交者:
Gitee
8月 23, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of gitee.com:openharmony/docs into feature_2
Signed-off-by:
N
三三四四
<
xt_xshang@163.com
>
上级
a128ea67
0b0da612
变更
42
展开全部
显示空白变更内容
内联
并排
Showing
42 changed file
with
231 addition
and
189 deletion
+231
-189
zh-cn/application-dev/ability/fa-brief.md
zh-cn/application-dev/ability/fa-brief.md
+3
-3
zh-cn/application-dev/ability/fa-dataability.md
zh-cn/application-dev/ability/fa-dataability.md
+1
-1
zh-cn/application-dev/ability/fa-formability.md
zh-cn/application-dev/ability/fa-formability.md
+2
-2
zh-cn/application-dev/ability/fa-pageability.md
zh-cn/application-dev/ability/fa-pageability.md
+1
-1
zh-cn/application-dev/ability/fa-serviceability.md
zh-cn/application-dev/ability/fa-serviceability.md
+4
-4
zh-cn/application-dev/ability/stage-ability.md
zh-cn/application-dev/ability/stage-ability.md
+1
-1
zh-cn/application-dev/ability/stage-brief.md
zh-cn/application-dev/ability/stage-brief.md
+2
-1
zh-cn/application-dev/ability/stage-call.md
zh-cn/application-dev/ability/stage-call.md
+1
-1
zh-cn/application-dev/ability/stage-formextension.md
zh-cn/application-dev/ability/stage-formextension.md
+2
-1
zh-cn/application-dev/ability/stage-serviceextension.md
zh-cn/application-dev/ability/stage-serviceextension.md
+1
-1
zh-cn/application-dev/connectivity/http-request.md
zh-cn/application-dev/connectivity/http-request.md
+1
-1
zh-cn/application-dev/connectivity/socket-connection.md
zh-cn/application-dev/connectivity/socket-connection.md
+1
-1
zh-cn/application-dev/connectivity/websocket-connection.md
zh-cn/application-dev/connectivity/websocket-connection.md
+1
-1
zh-cn/application-dev/database/database-distributedobject-guidelines.md
...ion-dev/database/database-distributedobject-guidelines.md
+3
-7
zh-cn/application-dev/database/database-mdds-guidelines.md
zh-cn/application-dev/database/database-mdds-guidelines.md
+14
-3
zh-cn/application-dev/database/database-preference-guidelines.md
...pplication-dev/database/database-preference-guidelines.md
+1
-1
zh-cn/application-dev/database/database-relational-guidelines.md
...pplication-dev/database/database-relational-guidelines.md
+1
-1
zh-cn/application-dev/device-usage-statistics/device-usage-statistics-dev-guide.md
...ice-usage-statistics/device-usage-statistics-dev-guide.md
+1
-1
zh-cn/application-dev/device/sensor-guidelines.md
zh-cn/application-dev/device/sensor-guidelines.md
+1
-1
zh-cn/application-dev/device/usb-guidelines.md
zh-cn/application-dev/device/usb-guidelines.md
+1
-1
zh-cn/application-dev/device/vibrator-guidelines.md
zh-cn/application-dev/device/vibrator-guidelines.md
+1
-1
zh-cn/application-dev/dfx/hiappevent-guidelines.md
zh-cn/application-dev/dfx/hiappevent-guidelines.md
+1
-1
zh-cn/application-dev/media/audio-playback.md
zh-cn/application-dev/media/audio-playback.md
+3
-3
zh-cn/application-dev/media/audio-recorder.md
zh-cn/application-dev/media/audio-recorder.md
+3
-3
zh-cn/application-dev/media/image.md
zh-cn/application-dev/media/image.md
+2
-2
zh-cn/application-dev/media/video-playback.md
zh-cn/application-dev/media/video-playback.md
+1
-1
zh-cn/application-dev/media/video-recorder.md
zh-cn/application-dev/media/video-recorder.md
+1
-1
zh-cn/application-dev/napi/napi-guidelines.md
zh-cn/application-dev/napi/napi-guidelines.md
+1
-1
zh-cn/application-dev/notification/common-event.md
zh-cn/application-dev/notification/common-event.md
+1
-1
zh-cn/application-dev/notification/notification-guidelines.md
...n/application-dev/notification/notification-guidelines.md
+2
-2
zh-cn/application-dev/quick-start/start-with-js-fa.md
zh-cn/application-dev/quick-start/start-with-js-fa.md
+5
-0
zh-cn/application-dev/reference/apis/js-apis-data-rdb.md
zh-cn/application-dev/reference/apis/js-apis-data-rdb.md
+12
-0
zh-cn/application-dev/reference/apis/js-apis-display.md
zh-cn/application-dev/reference/apis/js-apis-display.md
+1
-1
zh-cn/application-dev/reference/apis/js-apis-distributed-data.md
...pplication-dev/reference/apis/js-apis-distributed-data.md
+135
-123
zh-cn/application-dev/reference/apis/js-apis-media.md
zh-cn/application-dev/reference/apis/js-apis-media.md
+1
-1
zh-cn/application-dev/security/accesstoken-guidelines.md
zh-cn/application-dev/security/accesstoken-guidelines.md
+1
-1
zh-cn/application-dev/telephony/cellular-network-signal-info.md
...application-dev/telephony/cellular-network-signal-info.md
+1
-1
zh-cn/application-dev/webgl/webgl-guidelines.md
zh-cn/application-dev/webgl/webgl-guidelines.md
+7
-7
zh-cn/application-dev/windowmanager/application-window-stage.md
...application-dev/windowmanager/application-window-stage.md
+4
-0
zh-cn/application-dev/windowmanager/display-guidelines.md
zh-cn/application-dev/windowmanager/display-guidelines.md
+1
-1
zh-cn/application-dev/windowmanager/screenshot-guidelines.md
zh-cn/application-dev/windowmanager/screenshot-guidelines.md
+1
-1
zh-cn/device-dev/subsystems/subsys-build-syscap.md
zh-cn/device-dev/subsystems/subsys-build-syscap.md
+3
-3
未找到文件。
zh-cn/application-dev/ability/fa-brief.md
浏览文件 @
00f8524e
...
...
@@ -29,9 +29,9 @@ Ability框架在API 8及更早版本使用FA模型。FA模型中Ability分为Pag
## 相关实例
针对Ability开发,有以下相关实例可供参考:
-
[
`Distribute
Calc`:分布式计算器(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/Preset
/DistributeCalc
)
-
[
`Distribute
Graffiti`:分布式涂鸦(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/ability/DistributedGraffiti
)
-
[
`Distribute
dCalc`:分布式计算器(JS)(API8)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/common
/DistributeCalc
)
-
[
`Distribute
dCalc`:分布式计算器(eTS)(API8)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/Preset/DistributeCalc
)
-
[
`DistributeGraffiti`:分布式涂鸦(eTS)(API8)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/ability/DistributedGraffiti
)
-
[
分布式调度启动远程FA(JS)(API8)
](
https://gitee.com/openharmony/codelabs/tree/master/Distributed/RemoteStartFA
)
-
[
分布式新闻客户端(JS)(API8)
](
https://gitee.com/openharmony/codelabs/tree/master/Distributed/NewsDemo
)
-
[
分布式手写板(eTS)(API8)
](
https://gitee.com/openharmony/codelabs/tree/master/Distributed/DistributeDatabaseDrawEts
)
...
...
zh-cn/application-dev/ability/fa-dataability.md
浏览文件 @
00f8524e
...
...
@@ -311,4 +311,4 @@ URI示例:
针对DataAbility开发,有以下相关实例可供参考:
-
[
`DataAbility`:DataAbility的创建与访问(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/ability/DataAbility
)
-
[
`DataAbility`:DataAbility的创建与访问(eTS)(API8)
](
https://gitee.com/openharmony/app
lications_app
_samples/tree/master/ability/DataAbility
)
zh-cn/application-dev/ability/fa-formability.md
浏览文件 @
00f8524e
...
...
@@ -404,5 +404,5 @@ onUpdate(formId) {
## 相关实例
针对FA模型卡片提供方的开发,有以下相关实例可供参考:
-
[
`FormAbility`:FA模型卡片(JS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/ability/FormAbility
)
-
[
`FormLauncher`:卡片使用方(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/ability/FormLauncher
)
\ No newline at end of file
-
[
`FormAbility`:FA模型卡片(eTS)(API8)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/ability/FormAbility
)
-
[
`FormLauncher`:卡片使用方(eTS)(API8)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/ability/FormLauncher
)
\ No newline at end of file
zh-cn/application-dev/ability/fa-pageability.md
浏览文件 @
00f8524e
...
...
@@ -227,4 +227,4 @@ export default {
针对PageAbility开发,有以下相关实例可供参考:
-
[
`DMS`:分布式Demo(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/ability/DMS
)
\ No newline at end of file
-
[
`DMS`:分布式Demo(eTS)(API8)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/ability/DMS
)
\ No newline at end of file
zh-cn/application-dev/ability/fa-serviceability.md
浏览文件 @
00f8524e
...
...
@@ -128,7 +128,7 @@ let promise = featureAbility.startAbility(
使用OpenHarmony IDL(OpenHarmony Interface Definition Language)来自动生成对应客户端服务端及IRemoteObject代码,具体示例代码和说明请参考:
-
[
`OpenHarmony IDL`:TS开发步骤
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/IDL/idl-guidelines.md#
32-
ts开发步骤
)
-
[
`OpenHarmony IDL`:TS开发步骤
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/IDL/idl-guidelines.md#ts开发步骤
)
2.
在对应文件编写代码
...
...
@@ -220,7 +220,7 @@ let promise = featureAbility.startAbility(
}
```
### 连接远程Service
<a name="section126857614019"></a>
(当前仅对系统应用开放)
### 连接远程Service(当前仅对系统应用开放)
>说明:由于DeviceManager的getTrustedDeviceListSync接口仅对系统应用开放,当前连接远程Service仅支持系统应用。
...
...
@@ -406,5 +406,5 @@ export default {
## 相关实例
针对ServiceAbility开发,有以下相关实例可供参考:
-
[
`ServiceAbility`:ServiceAbility的创建与使用(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/ability/ServiceAbility
)
-
[
`DMS`:分布式Demo(eTS)(API8)
](
https://gitee.com/openharmony/
app_samples/tree/master/ability/DMS
)
-
[
`ServiceAbility`:ServiceAbility的创建与使用(eTS)(API8)
](
https://gitee.com/openharmony/app
lications_app
_samples/tree/master/ability/ServiceAbility
)
-
[
`DMS`:分布式Demo(eTS)(API8)
(Full SDK)
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/ability/DMS
)
zh-cn/application-dev/ability/stage-ability.md
浏览文件 @
00f8524e
...
...
@@ -324,4 +324,4 @@ struct Index {
## 相关实例
针对Stage模型Ability开发,有以下相关示例可供参考:
-
[
`StageCallAbility`:StageCallAbility的创建与使用(eTS)(API9)
](
https://gitee.com/openharmony/
app_samples/tree/master/ability/StageCallAbility
)
-
[
`StageCallAbility`:StageCallAbility的创建与使用(eTS)(API9)
(Full SDK)
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/ability/StageCallAbility
)
zh-cn/application-dev/ability/stage-brief.md
浏览文件 @
00f8524e
...
...
@@ -97,4 +97,5 @@
!
[
stageprocessmodel
](
figures/stageprocessmodel.png
)
## 相关实例
针对Stage模型下的Ability开发,有以下相关实例可供参考:
-
[
`MissionManager`:系统任务管理(eTS)(API9)
](
https://gitee.com/openharmony/app_samples/tree/master/ability/MissionManager
)
-
[
`MissionManager`:系统任务管理(eTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/ability/MissionManager
)
-
[
`Launcher`:仿桌面应用(eTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/ability/Launcher
)
zh-cn/application-dev/ability/stage-call.md
浏览文件 @
00f8524e
...
...
@@ -284,4 +284,4 @@ releaseCall() {
## 相关实例
针对Stage模型本地Call功能开发,有以下相关实例可供参考:
-
[
`StageCallAbility`:StageCallAbility的创建与使用(eTS)(API9)
](
https://gitee.com/openharmony/
app_samples/tree/master/ability/StageCallAbility
)
-
[
`StageCallAbility`:StageCallAbility的创建与使用(eTS)(API9)
(Full SDK)
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/ability/StageCallAbility
)
zh-cn/application-dev/ability/stage-formextension.md
浏览文件 @
00f8524e
...
...
@@ -415,4 +415,5 @@ onUpdate(formId) {
## 相关实例
针对Stage模型卡片提供方的开发,有以下相关实例可供参考:
- [`FormExtAbility`:Stage模型卡片(eTS JS)(API9)](https://gitee.com/openharmony/app_samples/tree/master/ability/FormExtAbility)
\ No newline at end of file
- [`FormExtAbility`:Stage模型卡片(eTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/FormExtAbility)
- [`GalleryForm`:图库卡片(eTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/GalleryForm)
\ No newline at end of file
zh-cn/application-dev/ability/stage-serviceextension.md
浏览文件 @
00f8524e
...
...
@@ -75,4 +75,4 @@ OpenHarmony当前不支持三方应用创建ServiceExtensionAbility。
## 相关实例
针对ServiceExtensionAbility开发,有以下相关实例可供参考:
-
[
`ServiceExtAbility`:StageExtAbility的创建与使用(eTS)(API9)
](
https://gitee.com/openharmony/
app_samples/tree/master/ability/ServiceExtAbility
)
-
[
`ServiceExtAbility`:StageExtAbility的创建与使用(eTS)(API9)
(Full SDK)
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/ability/ServiceExtAbility
)
zh-cn/application-dev/connectivity/http-request.md
浏览文件 @
00f8524e
...
...
@@ -74,5 +74,5 @@ httpRequest.request(
## 相关实例
针对HTTP数据请求,有以下相关实例可供参考:
-
[
`Http
`:数据请求(eTS)(API8)
](
https://gitee.com/openharmony/
app_samples/tree/master/Network/Http
)
-
[
`Http
:`数据请求(eTS)(API9))
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/Network/Http
)
-
[
使用HTTP实现与服务端通信(eTS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/NetworkManagement/SmartChatEtsOH
)
\ No newline at end of file
zh-cn/application-dev/connectivity/socket-connection.md
浏览文件 @
00f8524e
...
...
@@ -125,6 +125,6 @@ UDP与TCP流程大体类似,下面以TCP为例:
## 相关实例
针对Socket连接开发,有以下相关实例可供参考:
-
[
`Socket`:Socket 连接(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/Network/Socket
)
-
[
`Socket`:Socket 连接(eTS)(API8)
](
https://gitee.com/openharmony/app
lications_app
_samples/tree/master/Network/Socket
)
-
[
使用UDP实现与服务端通信(eTS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/NetworkManagement/UdpDemoOH
)
-
[
使用TCP实现与服务端通信(eTS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/NetworkManagement/TcpSocketDemo
)
\ No newline at end of file
zh-cn/application-dev/connectivity/websocket-connection.md
浏览文件 @
00f8524e
...
...
@@ -87,4 +87,4 @@ WebSocket连接功能主要由webSocket模块提供。使用该功能需要申
## 相关实例
针对WebSocket连接的开发,有以下相关实例可供参考:
-
[
`WebSocket`:WebSocket(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/Network/WebSocket
)
\ No newline at end of file
-
[
`WebSocket`:WebSocket(eTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/Network/WebSocket
)
\ No newline at end of file
zh-cn/application-dev/database/database-distributedobject-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -256,11 +256,7 @@
```
## 相关实例
针对分布式数据对象,有以下开发实例可供参考:
-
[
`DistributedNote`:分布式备忘录(eTS)(API9)
](
https://gitee.com/openharmony/app_samples/tree/master/data/DistributedNote
)
-
[
备忘录应用
](
https://gitee.com/openharmony/distributeddatamgr_objectstore/tree/master/samples/distributedNotepad
)
在备忘录应用中,当某一个设备上的备忘录事件发生变更时,通过分布式数据对象将事件变更同步在可信组网内的其他设备上,比如新增备忘录事件、编辑事件标题和内容、清空事件列表
等。
针对分布式数据对象,有以下相关实例可供参考:
-
[
`DistributedNote`:分布式备忘录(eTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/data/DistributedNote
)
-
[
`DistributedObjectDms`:分布式跑马灯(eTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/data/DistributedObjectDms
)
zh-cn/application-dev/database/database-mdds-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -29,11 +29,13 @@
以单版本分布式数据库为例,说明开发步骤。
1.
导入模块。
```
js
import
distributedData
from
'
@ohos.data.distributedData
'
;
```
2.
根据配置构造分布式数据库管理类实例。
1.
根据应用上下文创建
`kvManagerConfig`
对象。
2.
创建分布式数据库管理器实例。
...
...
@@ -62,6 +64,7 @@
```
3.
获取/创建分布式数据库。
1.
声明需要创建的分布式数据库ID描述。
2.
创建分布式数据库,建议关闭自动同步功能(
`autoSync:false`
),需要同步时主动调用
`sync`
接口。
...
...
@@ -95,6 +98,7 @@
> 组网设备间同步数据的场景,建议在应用启动时打开分布式数据库,获取数据库的句柄。在该句柄(如示例中的`kvStore`)的生命周期内无需重复创建数据库,可直接使用句柄对数据库进行数据的插入等操作。
4.
订阅分布式数据变化。
以下为订阅单版本分布式数据库数据变化通知的代码示例:
```
js
kvStore
.
on
(
'
dataChange
'
,
distributedData
.
SubscribeType
.
SUBSCRIBE_TYPE_ALL
,
function
(
data
)
{
...
...
@@ -103,6 +107,7 @@
```
5.
将数据写入分布式数据库。
1.
构造需要写入分布式数据库的
`Key`
(键)和
`Value`
(值)。
2.
将键值数据写入分布式数据库。
...
...
@@ -125,6 +130,7 @@
```
6.
查询分布式数据库数据。
1.
构造需要从单版本分布式数据库中查询的
`Key`
(键)。
2.
从单版本分布式数据库中获取数据。
...
...
@@ -149,6 +155,7 @@
```
7.
同步数据到其他设备。
选择同一组网环境下的设备以及同步模式,进行数据同步。
> **说明**:
...
...
@@ -182,8 +189,12 @@
});
```
## 相关实例
针对分布式数据开发,有以下相关实例可供参考:
-
[
`DistributedDataGobang`:分布式五子棋(eTS)(API9)
](
https://gitee.com/openharmony/app_samples/tree/master/data/DistributedDataGobang
)
-
[
`DDMQuery`:结果集与谓词(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/data/DDMQuery
)
-
[
`KvStore`:分布式数据库(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/data/Kvstore
)
-
[
`DistributedCalc`:分布式计算器(JS)(API8)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/common/DistributeCalc
)
-
[
`DistributedCalc`:分布式计算器(eTS)(API8)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/Preset/DistributeCalc
)
-
[
`DistributedDataGobang`:分布式五子棋(eTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/data/DistributedDataGobang
)
-
[
`DDMQuery`:结果集与谓词(eTS)(API8)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/data/DDMQuery
)
-
[
`KvStore`:分布式数据库(eTS)(API8)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/data/Kvstore
)
-
[
分布式数据库(JS)(API8)
](
https://gitee.com/openharmony/codelabs/tree/master/Data/JsDistributedData
)
\ No newline at end of file
zh-cn/application-dev/database/database-preference-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -173,4 +173,4 @@
## 相关实例
针对首选项开发,有以下相关实例可供参考:
-
[
`Preferences`:首选项(eTS)(API9)
](
https://gitee.com/openharmony/app_samples/tree/master/data/Preferences
)
\ No newline at end of file
-
[
`Preferences`:首选项(eTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/data/Preferences
)
\ No newline at end of file
zh-cn/application-dev/database/database-relational-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -387,5 +387,5 @@
## 相关实例
针对关系型数据库开发,有以下相关实例可供参考:
-
[
`DistributedRdb`:分布式关系型数据库(eTS)(API8)
](
https://gitee.com/openharmony/
app_samples/tree/master/data/DistributedRdb
)
-
[
`DistributedRdb`:分布式关系型数据库(eTS)(API8)
(Full SDK)
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/data/DistributedRdb
)
-
[
关系型数据库(JS)(API8)
](
https://gitee.com/openharmony/codelabs/tree/master/Data/JSRelationshipData
)
\ No newline at end of file
zh-cn/application-dev/device-usage-statistics/device-usage-statistics-dev-guide.md
浏览文件 @
00f8524e
...
...
@@ -438,5 +438,5 @@ import stats from '@ohos.bundleState';
```
## 相关实例
针对设备使用信息统计,有以下相关实例可供参考:
-
[
`DeviceUsageStatistics`:设备使用信息统计(eTS)(API8)
](
https://gitee.com/openharmony/
app_samples/tree/master/device/DeviceUsageStatistics
)
-
[
`DeviceUsageStatistics`:设备使用信息统计(eTS)(API8)
(Full SDK)
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/device/DeviceUsageStatistics
)
zh-cn/application-dev/device/sensor-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -139,4 +139,4 @@
针对传感器开发,有以下相关实例可供参考:
-
[
`Sensor`:传感器(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/device/Sensor
)
\ No newline at end of file
-
[
`Sensor`:传感器(eTS)(API8)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/device/Sensor
)
\ No newline at end of file
zh-cn/application-dev/device/usb-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -155,4 +155,4 @@ USB设备可作为Host设备连接Device设备进行数据传输。开发示例
```
## 相关实例
针对USB管理开发,有以下相关实例可供参考:
-
[
`USBManager`:USB管理(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/device/USBManager
)
-
[
`USBManager`:USB管理(eTS)(API8)
](
https://gitee.com/openharmony/app
lications_app
_samples/tree/master/device/USBManager
)
zh-cn/application-dev/device/vibrator-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -89,4 +89,4 @@
针对振动开发,有以下相关实例可供参考:
-
[
`Vibrator`:振动(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/device/Vibrator
)
\ No newline at end of file
-
[
`Vibrator`:振动(eTS)(API8)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/device/Vibrator
)
\ No newline at end of file
zh-cn/application-dev/dfx/hiappevent-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -162,4 +162,4 @@
针对应用事件开发,有以下相关实例可供参考:
-
[
`JsDotTest`:测试打点(JS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/DFX/JsDotTest
)
\ No newline at end of file
-
[
`JsDotTest`:测试打点(JS)(API8)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/DFX/JsDotTest
)
\ No newline at end of file
zh-cn/application-dev/media/audio-playback.md
浏览文件 @
00f8524e
...
...
@@ -256,7 +256,7 @@ export class AudioDemo {
针对音频播放开发,有以下相关实例可供参考:
-
[
`JsDistributedMusicPlayer
`:分布式音乐播放(JS)(API7)
](
https://gitee.com/openharmony/
app_samples/tree/master/ability/JsDistributedMusicPlayer
)
-
[
`JsAudioPlayer`:音频播放和管理(JS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/media/JsAudioPlayer
)
-
[
`eTsAudioPlayer`: 音频播放器(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/blob/master/media/Recorder/entry/src/main/ets/MainAbility/pages/Play.ets
)
-
[
`JsDistributedMusicPlayer
:`分布式音乐播放(JS)(API8)(Full SDK)
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/ability/JsDistributedMusicPlayer
)
-
[
`JsAudioPlayer`:音频播放和管理(JS)(API8)
](
https://gitee.com/openharmony/app
lications_app
_samples/tree/master/media/JsAudioPlayer
)
-
[
`eTsAudioPlayer`: 音频播放器(eTS)(API8)
](
https://gitee.com/openharmony/app
lications_app
_samples/blob/master/media/Recorder/entry/src/main/ets/MainAbility/pages/Play.ets
)
-
[
音频播放器(eTS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/Media/Audio_OH_ETS
)
\ No newline at end of file
zh-cn/application-dev/media/audio-recorder.md
浏览文件 @
00f8524e
...
...
@@ -190,7 +190,7 @@ export class AudioRecorderDemo {
针对音频录制开发,有以下相关实例可供参考:
-
[
`Recorder
`:录音机(eTS)(API8)
](
https://gitee.com/openharmony/
app_samples/tree/master/media/Recorder
)
-
[
`JsRecorder`:录音机(JS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/media/JSRecorder
)
-
[
`eTsAudioPlayer`: 音频播放器(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/blob/master/media/Recorder/entry/src/main/ets/MainAbility/pages/Play.ets
)
-
[
`Recorder
:`录音机(eTS)(API8)(Full SDK)
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/media/Recorder
)
-
[
`JsRecorder`:录音机(JS)(API8)
](
https://gitee.com/openharmony/app
lications_app
_samples/tree/master/media/JSRecorder
)
-
[
`eTsAudioPlayer`: 音频播放器(eTS)(API8)
](
https://gitee.com/openharmony/app
lications_app
_samples/blob/master/media/Recorder/entry/src/main/ets/MainAbility/pages/Play.ets
)
-
[
音频播放器(eTS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/Media/Audio_OH_ETS
)
zh-cn/application-dev/media/image.md
浏览文件 @
00f8524e
...
...
@@ -302,5 +302,5 @@ public async init(surfaceId: any) {
针对图片开发,有以下相关实例可供参考:
-
[
`Image`:图片处理(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/media/Image
)
-
[
`GamePuzzle`:拼图(eTS)(API9)
](
https://gitee.com/openharmony/app_samples/tree/master/media/GamePuzzle
)
\ No newline at end of file
-
[
`Image`:图片处理(eTS)(API8)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/media/Image
)
-
[
`GamePuzzle`:拼图(eTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/media/GamePuzzle
)
\ No newline at end of file
zh-cn/application-dev/media/video-playback.md
浏览文件 @
00f8524e
...
...
@@ -445,5 +445,5 @@ export class VideoPlayerDemo {
## 相关实例
针对视频播放开发,有以下相关实例可供参考:
-
[
`VideoPlayer
`:视频播放(eTS)(API9)
](
https://gitee.com/openharmony/
app_samples/tree/master/media/VideoPlayer
)
-
[
`VideoPlayer
:`视频播放(eTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/media/VideoPlayer
)
-
[
视频播放器(eTS)(API 9)
](
https://gitee.com/openharmony/codelabs/tree/master/Media/VideoPlayerStage
)
\ No newline at end of file
zh-cn/application-dev/media/video-recorder.md
浏览文件 @
00f8524e
...
...
@@ -86,7 +86,7 @@ export class VideoRecorderDemo {
profile
:
videoProfile
,
url
:
this
.
testFdNumber
,
// testFdNumber由getFd生成
orientationHint
:
0
,
location
:
{
latitude
:
30
,
longitude
:
130
}
,
location
:
{
latitude
:
30
,
longitude
:
130
}
}
// 创建videoRecorder对象
await
media
.
createVideoRecorder
().
then
((
recorder
)
=>
{
...
...
zh-cn/application-dev/napi/napi-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -643,6 +643,6 @@ export default {
```
## 相关实例
针对Native API的开发,有以下相关实例可供参考:
-
[
`NativeAPI`:NativeAPI(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/Native/NativeAPI
)
-
[
`NativeAPI`:NativeAPI(eTS)(API8)
](
https://gitee.com/openharmony/app
lications_app
_samples/tree/master/Native/NativeAPI
)
-
[
第一个Native C++应用(eTS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/NativeAPI/NativeTemplateDemo
)
-
[
Native Component(eTS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/NativeAPI/XComponent
)
\ No newline at end of file
zh-cn/application-dev/notification/common-event.md
浏览文件 @
00f8524e
...
...
@@ -174,6 +174,6 @@ if (this.subscriber != null) {
针对公共事件开发,有以下相关实例可供参考:
-
[
`CommonEvent`:订阅公共事件(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/Notification/CommonEvent
)
-
[
`CommonEvent`:订阅公共事件(eTS)(API8)
](
https://gitee.com/openharmony/app
lications_app
_samples/tree/master/Notification/CommonEvent
)
zh-cn/application-dev/notification/notification-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -262,6 +262,6 @@ Notification.cancel(1, "label", cancelCallback)
针对通知开发,有以下相关可供参考:
-
[
`Notification
`:订阅、发送通知(eTS)(API9)
](
https://gitee.com/openharmony/
app_samples/tree/master/Notification/Notification
)
-
[
`Notification
:`订阅、发送通知(eTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/Notification/Notification
)
-
[
`Notification`:通知(eTS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/common/Notification
)
-
[
`Notification`:通知(eTS)(API8)
](
https://gitee.com/openharmony/app
lications_app
_samples/tree/master/common/Notification
)
zh-cn/application-dev/quick-start/start-with-js-fa.md
浏览文件 @
00f8524e
...
...
@@ -233,3 +233,8 @@
!
[
zh-cn_image_0000001363934589
](
figures/zh-cn_image_0000001363934589.png
)
恭喜您已经使用JS语言开发(FA模型)完成了第一个OpenHarmony应用,快来
[
探索更多的OpenHarmony功能
](
../application-dev-guide.md
)
吧。
## 相关实例
针对使用JS语言开发(FA模型),有以下相关实例可供参考:
-
[
`JsHelloWorld`:你好世界(JS)(API8)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/common/JsHelloWorld
)
zh-cn/application-dev/reference/apis/js-apis-data-rdb.md
浏览文件 @
00f8524e
...
...
@@ -1191,6 +1191,8 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data
根据DataSharePredicates的指定实例对象更新数据库中的数据,使用callback异步回调。
**系统接口:**
此接口为系统接口。
**系统能力:**
SystemCapability.DistributedDataManager.RelationalStore.Core。
**参数:**
...
...
@@ -1226,6 +1228,8 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data
根据DataSharePredicates的指定实例对象更新数据库中的数据,使用Promise异步回调。
**系统接口:**
此接口为系统接口。
**系统能力:**
SystemCapability.DistributedDataManager.RelationalStore.Core。
**参数:**
...
...
@@ -1325,6 +1329,8 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callb
根据DataSharePredicates的指定实例对象从数据库中删除数据,使用callback异步回调。
**系统接口:**
此接口为系统接口。
**系统能力:**
SystemCapability.DistributedDataManager.RelationalStore.Core。
**参数:**
...
...
@@ -1353,6 +1359,8 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates):Promi
根据DataSharePredicates的指定实例对象从数据库中删除数据,使用Promise异步回调。
**系统接口:**
此接口为系统接口。
**系统能力:**
SystemCapability.DistributedDataManager.RelationalStore.Core。
**参数:**
...
...
@@ -1447,6 +1455,8 @@ query(table: string, predicates: dataSharePredicates.DataSharePredicates, column
根据指定条件查询数据库中的数据,使用callback异步回调。
**系统接口:**
此接口为系统接口。
**系统能力:**
SystemCapability.DistributedDataManager.RelationalStore.Core。
**参数:**
...
...
@@ -1479,6 +1489,8 @@ query(table: string, predicates: dataSharePredicates.DataSharePredicates, column
根据指定条件查询数据库中的数据,使用Promise异步回调。
**系统接口:**
此接口为系统接口。
**系统能力:**
SystemCapability.DistributedDataManager.RelationalStore.Core。
**参数:**
...
...
zh-cn/application-dev/reference/apis/js-apis-display.md
浏览文件 @
00f8524e
...
...
@@ -62,7 +62,7 @@ import display from '@ohos.display';
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| --------------------------- | ------------- | ---- | ---- | ------------------ |
| boudingRects | Array
\<
[
Rect
](
#rect9
)
> | 是 | 否 | 挖孔、刘海等区域的边界矩形。 |
| bou
n
dingRects | Array
\<
[
Rect
](
#rect9
)
> | 是 | 否 | 挖孔、刘海等区域的边界矩形。 |
| waterfallDisplayAreaRects |
[
WaterfallDisplayAreaRects
](
#waterfalldisplayarearects9
)
| 是 | 否 | 瀑布屏曲面部分显示区域。 |
## display.getDefaultDisplay
...
...
zh-cn/application-dev/reference/apis/js-apis-distributed-data.md
浏览文件 @
00f8524e
此差异已折叠。
点击以展开。
zh-cn/application-dev/reference/apis/js-apis-media.md
浏览文件 @
00f8524e
...
...
@@ -2004,7 +2004,7 @@ eventEmitter.on('prepare', () => {
});
media
.
createVideoRecorder
((
err
,
recorder
)
=>
{
if
(
err
==
null
&&
recorder
)
!=
null
)
{
if
(
err
==
null
&&
recorder
!=
null
)
{
videoRecorder
=
recorder
;
console
.
info
(
'
createVideoRecorder success
'
);
eventEmitter
.
emit
(
'
prepare
'
);
// prepare事件触发
...
...
zh-cn/application-dev/security/accesstoken-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -171,5 +171,5 @@
针对访问控制,有以下相关实例可供参考:
-
[
`AbilityAccessCtrl`:访问权限控制(eTS)(API8)
](
https://gitee.com/openharmony/
app_samples/tree/master/Safety/AbilityAccessCtrl
)
-
[
`AbilityAccessCtrl`:访问权限控制(eTS)(API8)
(Full SDK)
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/Safety/AbilityAccessCtrl
)
-
[
为应用添加运行时权限(eTS)(API 9)
](
https://gitee.com/openharmony/codelabs/tree/master/Ability/AccessPermission
)
\ No newline at end of file
zh-cn/application-dev/telephony/cellular-network-signal-info.md
浏览文件 @
00f8524e
...
...
@@ -53,4 +53,4 @@ radio模块提供了获取当前网络信号信息的方法。observer模块为
## 相关实例
针对蜂窝网络数据开发,有以下相关实例可供参考:
-
[
`MobileNetwork`:蜂窝数据(eTS)(API9)
](
https://gitee.com/openharmony/app_samples/tree/master/Telephony/MobileNetwork
)
\ No newline at end of file
-
[
`MobileNetwork`:蜂窝数据(eTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/Telephony/MobileNetwork
)
\ No newline at end of file
zh-cn/application-dev/webgl/webgl-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -64,7 +64,7 @@ WebGL主要帮助开发者在前端开发中完成图形图像的相关处理,
3.
编辑JavaScript代码文件,增加2D绘制逻辑代码。index.js示例如下:
```
//index.js
//
index.js
export default {//NAPI交互代码
data: {
title: "DEMO BY TEAMOL",
...
...
@@ -80,7 +80,7 @@ WebGL主要帮助开发者在前端开发中完成图形图像的相关处理,
// 获取2D上下文
const ctx = canvas.getContext('2d');
//执行CPU绘制函数
//
执行CPU绘制函数
// Set line width
ctx.lineWidth = 10;
// Wall
...
...
@@ -135,9 +135,9 @@ WebGL主要帮助开发者在前端开发中完成图形图像的相关处理,
3.
编辑JavaScript代码文件,增加彩色三角形绘制逻辑代码。index.js示例如下:
```
//index.js
//
index.js
//WebGL相关预定义
//
WebGL相关预定义
var gl = {
DEPTH_BUFFER_BIT: 0x00000100,
STENCIL_BUFFER_BIT: 0x00000400,
...
...
@@ -515,7 +515,7 @@ WebGL主要帮助开发者在前端开发中完成图形图像的相关处理,
// 向缓冲区对象写入数据
gl.bufferData(gl.ARRAY_BUFFER, verticesColors.buffer, gl.STATIC_DRAW);
//获取着色器中attribute变量a_Position的地址
//
获取着色器中attribute变量a_Position的地址
var a_Position = gl.getAttribLocation(gl.program, 'a_Position');
if (a_Position < 0) {
console.log('Failed to get the storage location of a_Position');
...
...
@@ -527,7 +527,7 @@ WebGL主要帮助开发者在前端开发中完成图形图像的相关处理,
// 连接a_Position变量与分配给它的缓冲区对象
gl.enableVertexAttribArray(a_Position);
//获取着色器中attribute变量a_Color的地址
//
获取着色器中attribute变量a_Color的地址
var a_Color = gl.getAttribLocation(gl.program, 'a_Color');
if (a_Color < 0) {
console.log('Failed to get the storage location of a_Color');
...
...
@@ -704,4 +704,4 @@ WebGL主要帮助开发者在前端开发中完成图形图像的相关处理,
针对WebGL开发,有以下相关实例可供参考:
-
[
`JsWbgGL`:WebGL(JS)(API8)
](
https://gitee.com/openharmony/app_samples/tree/master/Graphics/JsWebGL
)
-
[
`JsWbgGL`:WebGL(JS)(API8)
](
https://gitee.com/openharmony/app
lications_app
_samples/tree/master/Graphics/JsWebGL
)
\ No newline at end of file
zh-cn/application-dev/windowmanager/application-window-stage.md
浏览文件 @
00f8524e
...
...
@@ -404,3 +404,7 @@ class MainAbility extends Ability {
}
};
```
## 相关实例
针对window开发(Stage模型),有以下相关实例可供参考:
-
[
`Window`:窗口(eTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/Graphics/Window
)
\ No newline at end of file
zh-cn/application-dev/windowmanager/display-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -23,5 +23,5 @@ display.getDefaultDisplay().then((disp) => {
```
## 相关实例
针对屏幕属性开发,有以下相关实例可供参考:
-
[
`Screen`:屏幕属性(eTS)(API8)
](
https://gitee.com/openharmony/
app_samples/tree/master/device/Screen
)
-
[
`Screen`:屏幕属性(eTS)(API8)
(Full SDK)
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/device/Screen
)
zh-cn/application-dev/windowmanager/screenshot-guidelines.md
浏览文件 @
00f8524e
...
...
@@ -37,5 +37,5 @@ screenshot.save(ScreenshotOptions).then((image) => {
```
## 相关实例
针对屏幕截图开发,有以下相关实例可供参考:
-
[
`Screenshot`:屏幕截图(eTS)(API9)
](
https://gitee.com/openharmony/
app_samples/tree/master/Basic/Screenshot
)
-
[
`Screenshot`:屏幕截图(eTS)(API9)
(Full SDK)
](
https://gitee.com/openharmony/applications_
app_samples/tree/master/Basic/Screenshot
)
zh-cn/device-dev/subsystems/subsys-build-syscap.md
浏览文件 @
00f8524e
# 如何按需配置部件的系统能力
系统能力即SystemCapability,又称syscap,
是部件向开发者提供的接口的集合。
SysCap(SystemCapability,系统能力)
是部件向开发者提供的接口的集合。
## 部件配置系统能力
部件配置系统能力是为了方便某个特定部件是否要打开或关闭特定的系统能力。
...
...
@@ -20,11 +20,11 @@
}
```
在component下加入
syscap这一关键字,内部配置相应的系统能力,
系统能力若无赋值,则默认为true,若有赋值,则按实际值为准。若值为true,则表示该部件默认开启此系统能力,若值为false,则表明该部件默认关闭此系统能力。
在component下加入
关键字syscap,对内部配置相应的系统能力。
系统能力若无赋值,则默认为true,若有赋值,则按实际值为准。若值为true,则表示该部件默认开启此系统能力,若值为false,则表明该部件默认关闭此系统能力。
以上配置表明,WIFI的STA、AP、和HotspotExt三个系统能力是打开的,而P2P和Core是关闭的。
## 产品配置系统能力
产品配置系统能力是为了方便某个特定产品是否要打开或关闭特定的系统能力,若无配置,则以部件侧的配置为准
,
产品配置系统能力的位置在vender/{company}/{product}/config.json。
产品配置系统能力是为了方便某个特定产品是否要打开或关闭特定的系统能力,若无配置,则以部件侧的配置为准
,
产品配置系统能力的位置在vender/{company}/{product}/config.json。
如果要对产品的系统能力进行精细化配置,可在产品配置中加入syscap关键字,并对要配置的系统能力赋值。产品侧的配置优先级大于部件系统能力默认配置,若某一个系统能力在部件侧默认配置为false,在产品侧配置为true,则这个系统能力的最终配置为true。示例如下:
```
json
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录