Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
b5220e39
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看板
未验证
提交
b5220e39
编写于
8月 11, 2023
作者:
O
openharmony_ci
提交者:
Gitee
8月 11, 2023
浏览文件
操作
浏览文件
下载
差异文件
!22239 3.2Release:引用sample链接:无需翻译
Merge pull request !22239 from 葛亚芳/OpenHarmony-3.2-Release
上级
9da41759
984d8e97
变更
48
隐藏空白更改
内联
并排
Showing
48 changed file
with
205 addition
and
60 deletion
+205
-60
zh-cn/application-dev/IDL/idl-guidelines.md
zh-cn/application-dev/IDL/idl-guidelines.md
+6
-0
zh-cn/application-dev/application-models/accessibilityextensionability.md
...n-dev/application-models/accessibilityextensionability.md
+3
-4
zh-cn/application-dev/application-models/common-event-static-subscription.md
...ev/application-models/common-event-static-subscription.md
+6
-1
zh-cn/application-dev/application-models/enterprise-extensionAbility.md
...ion-dev/application-models/enterprise-extensionAbility.md
+5
-0
zh-cn/application-dev/application-models/mission-management-overview.md
...ion-dev/application-models/mission-management-overview.md
+6
-1
zh-cn/application-dev/application-models/service-widget-overview.md
...ication-dev/application-models/service-widget-overview.md
+1
-7
zh-cn/application-dev/application-models/serviceextensionability.md
...ication-dev/application-models/serviceextensionability.md
+3
-2
zh-cn/application-dev/application-models/uiability-launch-type.md
...plication-dev/application-models/uiability-launch-type.md
+6
-0
zh-cn/application-dev/application-models/windowextensionability.md
...lication-dev/application-models/windowextensionability.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/ipc-rpc-development-guideline.md
...ication-dev/connectivity/ipc-rpc-development-guideline.md
+5
-0
zh-cn/application-dev/database/data-persistence-by-preferences.md
...plication-dev/database/data-persistence-by-preferences.md
+3
-1
zh-cn/application-dev/database/data-sync-of-distributed-data-object.md
...tion-dev/database/data-sync-of-distributed-data-object.md
+9
-1
zh-cn/application-dev/database/data-sync-of-kv-store.md
zh-cn/application-dev/database/data-sync-of-kv-store.md
+14
-0
zh-cn/application-dev/database/data-sync-of-rdb-store.md
zh-cn/application-dev/database/data-sync-of-rdb-store.md
+8
-0
zh-cn/application-dev/database/share-data-by-datashareextensionability.md
...n-dev/database/share-data-by-datashareextensionability.md
+6
-0
zh-cn/application-dev/database/sync-app-data-across-devices-overview.md
...ion-dev/database/sync-app-data-across-devices-overview.md
+6
-0
zh-cn/application-dev/device-usage-statistics/device-usage-statistics-use-guide.md
...ice-usage-statistics/device-usage-statistics-use-guide.md
+3
-1
zh-cn/application-dev/device/location-guidelines.md
zh-cn/application-dev/device/location-guidelines.md
+7
-1
zh-cn/application-dev/device/vibrator-guidelines.md
zh-cn/application-dev/device/vibrator-guidelines.md
+1
-1
zh-cn/application-dev/dfx/appfreeze-guidelines.md
zh-cn/application-dev/dfx/appfreeze-guidelines.md
+6
-0
zh-cn/application-dev/dfx/cppcrash-guidelines.md
zh-cn/application-dev/dfx/cppcrash-guidelines.md
+6
-0
zh-cn/application-dev/dfx/hiappevent-guidelines.md
zh-cn/application-dev/dfx/hiappevent-guidelines.md
+3
-1
zh-cn/application-dev/file-management/file-management-overview.md
...plication-dev/file-management/file-management-overview.md
+6
-0
zh-cn/application-dev/internationalization/i18n-guidelines.md
...n/application-dev/internationalization/i18n-guidelines.md
+7
-1
zh-cn/application-dev/key-features/multi-device-app-dev/appgallery-home-page.md
...key-features/multi-device-app-dev/appgallery-home-page.md
+1
-1
zh-cn/application-dev/key-features/multi-device-app-dev/music-album-page.md
...dev/key-features/multi-device-app-dev/music-album-page.md
+1
-1
zh-cn/application-dev/key-features/multi-device-app-dev/settings-application-page.md
...eatures/multi-device-app-dev/settings-application-page.md
+1
-1
zh-cn/application-dev/media/image-overview.md
zh-cn/application-dev/media/image-overview.md
+9
-0
zh-cn/application-dev/media/media-application-overview.md
zh-cn/application-dev/media/media-application-overview.md
+8
-0
zh-cn/application-dev/notification/notification-overview.md
zh-cn/application-dev/notification/notification-overview.md
+5
-1
zh-cn/application-dev/quick-start/multi-hap-objective.md
zh-cn/application-dev/quick-start/multi-hap-objective.md
+7
-1
zh-cn/application-dev/quick-start/resource-categories-and-access.md
...ication-dev/quick-start/resource-categories-and-access.md
+1
-1
zh-cn/application-dev/security/accesstoken-guidelines.md
zh-cn/application-dev/security/accesstoken-guidelines.md
+7
-1
zh-cn/application-dev/security/cryptoFramework-guidelines.md
zh-cn/application-dev/security/cryptoFramework-guidelines.md
+6
-0
zh-cn/application-dev/task-management/agent-powered-reminder.md
...application-dev/task-management/agent-powered-reminder.md
+4
-0
zh-cn/application-dev/task-management/continuous-task.md
zh-cn/application-dev/task-management/continuous-task.md
+1
-8
zh-cn/application-dev/task-management/transient-task.md
zh-cn/application-dev/task-management/transient-task.md
+1
-7
zh-cn/application-dev/task-management/work-scheduler.md
zh-cn/application-dev/task-management/work-scheduler.md
+1
-1
zh-cn/application-dev/ui/arkts-common-components-video-player.md
...pplication-dev/ui/arkts-common-components-video-player.md
+2
-0
zh-cn/application-dev/ui/arkts-layout-development-create-grid.md
...pplication-dev/ui/arkts-layout-development-create-grid.md
+8
-1
zh-cn/application-dev/ui/arkts-ui-development-overview.md
zh-cn/application-dev/ui/arkts-ui-development-overview.md
+0
-6
zh-cn/application-dev/ui/ui-js-building-ui-component.md
zh-cn/application-dev/ui/ui-js-building-ui-component.md
+0
-2
zh-cn/application-dev/ui/ui-js-components-canvas.md
zh-cn/application-dev/ui/ui-js-components-canvas.md
+1
-1
zh-cn/application-dev/ui/ui-js-components-slider.md
zh-cn/application-dev/ui/ui-js-components-slider.md
+0
-2
zh-cn/application-dev/ui/ui-js-components-swiper.md
zh-cn/application-dev/ui/ui-js-components-swiper.md
+1
-1
zh-cn/application-dev/web/web-in-app-frontend-page-function-invoking.md
...ion-dev/web/web-in-app-frontend-page-function-invoking.md
+6
-0
zh-cn/application-dev/web/web-page-loading-with-web-components.md
...plication-dev/web/web-page-loading-with-web-components.md
+6
-0
未找到文件。
zh-cn/application-dev/IDL/idl-guidelines.md
浏览文件 @
b5220e39
...
...
@@ -442,3 +442,9 @@ export default class MySequenceable {
private
str
;
}
```
## 相关实例
针对IDL的使用,有以下相关实例可供参考:
-
[
Ability与ServiceExtensionAbility通信(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/IDL/AbilityConnectServiceExtension
)
\ No newline at end of file
zh-cn/application-dev/application-models/accessibilityextensionability.md
浏览文件 @
b5220e39
...
...
@@ -17,7 +17,7 @@ AccessibilityExtensionAbility基于ExtensionAbility框架,提供无障碍扩
-
[
如何处理一个无障碍事件
](
#如何处理一个无障碍事件
)
-
[
如何声明无障碍扩展服务具备的能力
](
#如何声明无障碍扩展服务具备的能力
)
-
[
如何开启自定义的无障碍扩展服务
](
#如何开启自定义的无障碍扩展服务
)
-
[
相关
示例
](
#相关示
例
)
-
[
相关
实例
](
#相关实
例
)
## AccessibilityExtensionAbility概述
...
...
@@ -133,9 +133,8 @@ onAccessibilityEvent(accessibilityEvent) {
若开启或关闭成功,则会打印
`enable ability successfully`
或
`disable ability successfully`
。
## 相关
示
例
## 相关
实
例
针对AccessibilityExtensionAbility开发,有以下相关示例可供参考:
[
AccessibilityExtAbility的创建和使用(ArkTS)(API 9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/code/SystemFeature/ApplicationModels/AccessibilityExtAbility
)
-
[
无障碍扩展(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SystemFeature/ApplicationModels/AccessibilityExtAbility
)
\ No newline at end of file
zh-cn/application-dev/application-models/common-event-static-subscription.md
浏览文件 @
b5220e39
...
...
@@ -118,5 +118,10 @@
针对StaticSubscriberExtensionAbility开发,可参考如下实例:
-
[
StaticSubscriber:静态订阅(ArkTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/code/SystemFeature/ApplicationModels/StaticSubscriber
)
-
[
## 相关实例
针对StaticSubscriberExtensionAbility开发,可参考如下实例:
- [静态订阅(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SystemFeature/ApplicationModels/StaticSubscriber
)
]
zh-cn/application-dev/application-models/enterprise-extensionAbility.md
浏览文件 @
b5220e39
...
...
@@ -106,3 +106,8 @@ export default class EnterpriseAdminAbility extends EnterpriseAdminExtensionAbil
}
```
## 相关实例
针对EnterpriseAdminExtensionAbility开发,有以下相关示例可供参考:
-
[
企业设备管理扩展(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SystemFeature/ApplicationModels/EnterpriseAdminExtensionAbility
)
\ No newline at end of file
zh-cn/application-dev/application-models/mission-management-overview.md
浏览文件 @
b5220e39
...
...
@@ -126,4 +126,9 @@
})
```
## 相关实例
针对任务管理开发,有以下相关实例可供参考:
-
[
任务管理(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SystemFeature/ApplicationModels/MissionManager
)
\ No newline at end of file
zh-cn/application-dev/application-models/service-widget-overview.md
浏览文件 @
b5220e39
...
...
@@ -62,10 +62,4 @@ ArkTS卡片与JS卡片具备不同的实现原理及特征,在场景能力上
针对Stage模型卡片提供方的开发,有以下相关实例可供参考:
-
[
基于Stage模型的JS卡片(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/code/SuperFeature/Widget/FormExtAbility
)
-
[
基于Stage模型的JS卡片(成语接龙小游戏)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/code/SuperFeature/Widget/FormGame
)
-
[
基于Stage模型的ArkTS卡片(Canvas绘制实现的五子棋游戏卡片)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/code/SuperFeature/Widget/ArkTSCard/CanvasGame
)
-
[
基于Stage模型的ArkTS卡片(逻辑代码执行实现的计算器卡片)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/code/SuperFeature/Widget/ArkTSCard/Calculator
)
-
[
Stage模型卡片(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/Widget/FormExtAbility
)
zh-cn/application-dev/application-models/serviceextensionability.md
浏览文件 @
b5220e39
...
...
@@ -453,5 +453,6 @@ ServiceExtensionAbility服务组件在[onConnect()](../reference/apis/js-apis-ap
针对ServiceExtensionAbility开发,有以下相关实例可供参考:
-
[
`AbilityConnectServiceExtension`:Ability与ServiceExtensionAbility通信(ArkTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/code/BasicFeature/IDL/AbilityConnectServiceExtension
)
-
[
`StageModel`:Stage模型(ArkTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/code/BasicFeature/ApplicationModels/StageModel
)
-
[
Ability与ServiceExtensionAbility通信(ArkTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/IDL/AbilityConnectServiceExtension
)
-
[
Stage模型(ArkTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/ApplicationModels/StageModel
)
zh-cn/application-dev/application-models/uiability-launch-type.md
浏览文件 @
b5220e39
...
...
@@ -151,3 +151,9 @@ specified启动模式为指定实例模式,针对一些特殊场景使用(
2.
在最近任务列表中关闭
`文件A`
的任务进程,此时
`UIAbility实例1`
被销毁,回到桌面,再次打开
`文件A`
,此时对应启动一个新的UIAbility实例,例如启动
`UIAbility实例2`
。
3.
回到桌面,打开
`文件B`
,此时对应启动一个新的UIAbility实例,例如启动
`UIAbility实例3`
。
4.
回到桌面,再次打开
`文件A`
,此时仍然启动之前的
`UIAbility实例2`
,因为系统会自动匹配UIAbility实例的Key值,如果存在与之匹配的Key,则会启动与之绑定的UIAbility实例。在此例中,之前启动的
`UIAbility实例2`
与
`文件A`
绑定的Key是相同的,因此系统会拉回
`UIAbility实例2`
并让其获焦,而不会创建新的实例。
## 相关实例
针对UIAbility组件启动模式,有以下相关实例可供参考:
-
[
Ability的启动模式(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/ApplicationModels/AbilityStartMode
)
\ No newline at end of file
zh-cn/application-dev/application-models/windowextensionability.md
浏览文件 @
b5220e39
...
...
@@ -116,4 +116,4 @@ struct Index {
针对WindowExtensionAbility开发,有以下相关实例可供参考:
-
[
`WindowExtAbility`:WindowExtAbility的创建与使用(ArkTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/master
/code/SystemFeature/WindowManagement/WindowExtAbility
)
-
[
窗口扩展应用(ArkTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release
/code/SystemFeature/WindowManagement/WindowExtAbility
)
zh-cn/application-dev/connectivity/http-request.md
浏览文件 @
b5220e39
...
...
@@ -87,4 +87,4 @@ httpRequest.request(
针对HTTP数据请求,有以下相关实例可供参考:
-
[
使用HTTP实现与服务端通信(ArkTS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/NetworkManagement/SmartChatEtsOH
)
\ No newline at end of file
-
[
Http(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Connectivity/Http
)
\ No newline at end of file
zh-cn/application-dev/connectivity/ipc-rpc-development-guideline.md
浏览文件 @
b5220e39
...
...
@@ -355,3 +355,8 @@ IPC/RPC的主要工作是让运行在不同进程的Proxy和Stub互相通信,
globalThis
.
context
.
disconnectServiceExtensionAbility
(
connectId
);
```
## 相关实例
针对IPC与RPC通信开发,有以下相关实例可供参考:
-
[
RPC通信(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Connectivity/RPC
)
zh-cn/application-dev/database/data-persistence-by-preferences.md
浏览文件 @
b5220e39
...
...
@@ -253,7 +253,9 @@
针对用户首选项开发,有以下相关实例可供参考:
-
[
`Preferences`:首选项(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/DataManagement/Preferences
)
-
[
图案密码锁(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/Solutions/Tools/PatternLock
)
-
[
首选项(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/DataManagement/Preferences
)
-
[
首选项(ArkTS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/Data/Preferences
)
...
...
zh-cn/application-dev/database/data-sync-of-distributed-data-object.md
浏览文件 @
b5220e39
...
...
@@ -304,4 +304,12 @@
localObject
.
setSessionId
(()
=>
{
console
.
info
(
'
leave all lession.
'
);
});
```
\ No newline at end of file
```
## 相关实例
针对分布式数据对象开发,有以下相关实例可供参考:
-
[
分布式组网认证(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/DistributedAppDev/DistributedAuthentication
)
-
[
分布式对象(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/DistributedAppDev/DistributedNote
)
\ No newline at end of file
zh-cn/application-dev/database/data-sync-of-kv-store.md
浏览文件 @
b5220e39
...
...
@@ -276,3 +276,17 @@
}
});
```
## 相关实例
针对键值型数据库开发,有以下相关实例可供参考:
-
[
分布式组网认证(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/DistributedAppDev/DistributedAuthentication
)
-
[
分布式数据管理(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/DistributedAppDev/Kvstore
)
-
[
分布式音乐播放(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/DistributedAppDev/ArkTSDistributedMusicPlayer
)
-
[
分布式计算器(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/DistributedAppDev/ArkTSDistributedCalc
)
-
[
分布式五子棋(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/Solutions/Game/DistributedDataGobang
)
\ No newline at end of file
zh-cn/application-dev/database/data-sync-of-rdb-store.md
浏览文件 @
b5220e39
...
...
@@ -171,3 +171,11 @@
)
})
```
## 相关实例
针对关系型数据库开发,有以下相关实例可供参考:
-
[
分布式组网认证(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/DistributedAppDev/DistributedAuthentication
)
-
[
分布式关系型数据库(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/DistributedAppDev/DistributedRdb
)
\ No newline at end of file
zh-cn/application-dev/database/share-data-by-datashareextensionability.md
浏览文件 @
b5220e39
...
...
@@ -211,3 +211,9 @@
console
.
info
(
`dsHelper delete result:
${
data
}
`
);
});
```
## 相关实例
针对数据共享开发,有以下相关实例可供参考:
-
[
系统应用跨应用数据共享(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SystemFeature/DataManagement/CrossAppDataShare
)
\ No newline at end of file
zh-cn/application-dev/database/sync-app-data-across-devices-overview.md
浏览文件 @
b5220e39
...
...
@@ -37,3 +37,9 @@
## 跨设备同步访问控制机制
数据跨设备同步时,数据管理基于设备等级和数据安全标签进行访问控制,具体可见
[
跨设备同步访问控制机制
](
access-control-by-device-and-data-level.md#跨设备同步访问控制机制
)
。
## 相关实例
针对分布式开发,有以下相关实例可供参考:
-
[
分布式组网认证(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/DistributedAppDev/DistributedAuthentication
)
\ No newline at end of file
zh-cn/application-dev/device-usage-statistics/device-usage-statistics-use-guide.md
浏览文件 @
b5220e39
...
...
@@ -538,5 +538,7 @@ import usageStatistics from '@ohos.resourceschedule.usageStatistics';
针对设备使用信息统计,有以下相关实例可供参考:
-
[
`DeviceUsageStatistics`:设备使用信息统计(ArkTS)(API8)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics
)
-
[
存储空间统计(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SystemFeature/DeviceManagement/StorageStatistic
)
-
[
设备使用信息统计(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics
)
\ No newline at end of file
zh-cn/application-dev/device/location-guidelines.md
浏览文件 @
b5220e39
...
...
@@ -406,4 +406,10 @@
});
```
5.
当设备进入或者退出该围栏时,系统会自动触发WantAgent的动作。
\ No newline at end of file
5.
当设备进入或者退出该围栏时,系统会自动触发WantAgent的动作。
## 相关实例
针对位置开发,有以下相关实例可供参考:
-
[
位置服务(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/DeviceManagement/Location
)
\ No newline at end of file
zh-cn/application-dev/device/vibrator-guidelines.md
浏览文件 @
b5220e39
...
...
@@ -69,4 +69,4 @@
针对振动开发,有以下相关实例可供参考:
-
[
`Vibrator`:振动(ArkTS)(API8)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/DeviceManagement/Vibrator
)
\ No newline at end of file
-
[
振动(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/DeviceManagement/Vibrator
)
\ No newline at end of file
zh-cn/application-dev/dfx/appfreeze-guidelines.md
浏览文件 @
b5220e39
...
...
@@ -193,3 +193,9 @@ APP_LIFECYCLE_TIMEOUT:
![
appfreeze_20230310105874
](
figures/appfreeze_20230310105874.png
)
其他的日志信息可以参考
[
通用日志信息
](
#日志主干通用信息
)
进行分析。需要特别说明的是,一般情况下生命周期切换大概率主线程也会卡死。可以结合两个日志的三个堆栈、两个BinderCatcher信息,进行对比查看。
## 相关实例
针对故障日志获取,有以下相关实力可供参考:
-
[
故障日志获取(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/DFX/FaultLogger
)
\ No newline at end of file
zh-cn/application-dev/dfx/cppcrash-guidelines.md
浏览文件 @
b5220e39
...
...
@@ -103,3 +103,9 @@ Thread name:crasher <- 异常线程名
范例中的崩溃故障是由赋值给一块不可写的区域导致的,代码行为dfx_crasher.c文件的57行,修改后可以避免发生此崩溃。\
另外,使用addr2line后,如果得出的行号看起来不是很正确,可以考虑对地址进行微调(如减1),或者考虑关闭一些编译优化,已知使用LTO的二进制可能无法正确获得行号。
## 相关实例
针对故障日志获取,有以下相关实力可供参考:
-
[
故障日志获取(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/DFX/FaultLogger
)
\ No newline at end of file
zh-cn/application-dev/dfx/hiappevent-guidelines.md
浏览文件 @
b5220e39
...
...
@@ -144,4 +144,6 @@ HiAppEvent是在系统层面为应用开发者提供的一种事件打点机制
针对应用事件开发,有以下相关实例可供参考:
- [`DotTest`:测试打点(JS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/DFX/DotTest)
\ No newline at end of file
- [测试打点(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/DFX/DotTest)
- [日志打印(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/DFX/Logger)
\ No newline at end of file
zh-cn/application-dev/file-management/file-management-overview.md
浏览文件 @
b5220e39
...
...
@@ -23,3 +23,9 @@
**图1**
文件分类模型示意图
![
File classification model
](
figures/file-classification-model.png
)
## 相关实例
针对文件管理开发,有以下相关实例可供参考:
-
[
文件管理(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/FileManagement/FileManager
)
\ No newline at end of file
zh-cn/application-dev/internationalization/i18n-guidelines.md
浏览文件 @
b5220e39
...
...
@@ -731,4 +731,10 @@ try {
```
js
let
order
=
I18n
.
I18NUtil
.
getDateOrder
(
"
zh-CN
"
);
// order = "y-L-d",表示中文中年月日的顺序为年-月-日。
```
\ No newline at end of file
```
## 相关实例
针对I18n开发,有以下相关实例可供参考”
-
[
时区和语言设置(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SystemFeature/Internationalnation/International
)
\ No newline at end of file
zh-cn/application-dev/key-features/multi-device-app-dev/appgallery-home-page.md
浏览文件 @
b5220e39
...
...
@@ -272,6 +272,6 @@ export default struct Home {
针对应用市场应用开发,有以下相关实例可以参考:
应用市场开发:
[
一多应用市场首页应用示例
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/MultiDeviceAppDev/AppMarket
)
-
[
典型页面场景:应用市场首页(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/MultiDeviceAppDev/AppMarket
)
<!--no_check-->
\ No newline at end of file
zh-cn/application-dev/key-features/multi-device-app-dev/music-album-page.md
浏览文件 @
b5220e39
...
...
@@ -248,4 +248,4 @@ struct Index {
针对音乐专辑应用,有以下相关实例可供参考:
音乐专辑应用:
[
音乐专辑页应用示例
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/MultiDeviceAppDev/MusicAlbum
)
\ No newline at end of file
-
[
典型页面场景:音乐专辑页(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/MultiDeviceAppDev/MusicAlbum
)
\ No newline at end of file
zh-cn/application-dev/key-features/multi-device-app-dev/settings-application-page.md
浏览文件 @
b5220e39
...
...
@@ -170,4 +170,4 @@ Navigation组件支持自动切换单栏和双栏的显示效果,同时可以
针对“设置”应用页面,有以下相关实例可以参考:
设置:
[
设置应用示例
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/MultiDeviceAppDev/Settings
)
-
[
典型页面场景:设置应用页面(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SuperFeature/MultiDeviceAppDev/Settings
)
zh-cn/application-dev/media/image-overview.md
浏览文件 @
b5220e39
...
...
@@ -36,3 +36,12 @@
5.
[
图片编码
](
image-encoding.md
)
:使用图片打包器类ImagePacker,将PixelMap或ImageSource进行压缩编码,生成一张新的图片。
除上述基本图片开发能力外,OpenHarmony还提供常用
[
图片工具
](
image-tool.md
)
,供开发者选择使用。
## 相关实例
针对图片开发,有以下相关实例可供参考:
-
[
图片显示及处理(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Media/Image
)
-
[
图片裁剪与分割(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Media/GamePuzzle
)
\ No newline at end of file
zh-cn/application-dev/media/media-application-overview.md
浏览文件 @
b5220e39
...
...
@@ -17,3 +17,11 @@
-
相机(camera):提供精确控制相机镜头,采集视觉信息的接口与服务。
-
图片(image):提供图片编解码、图片处理接口与服务。
## 相关实例
针对媒体应用开发,有以下相关实例可供参考:
-
[
媒体管理合集(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/FileManagement/MediaCollections
)
-
[
二维码扫描(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Media/QRCodeScan
)
\ No newline at end of file
zh-cn/application-dev/notification/notification-overview.md
浏览文件 @
b5220e39
...
...
@@ -31,4 +31,8 @@ OpenHarmony通过ANS(Advanced Notification Service,通知系统服务)对
基于通知的开发,有以下相关实例可供参考:
-
[
`CustomNotification`:订阅、发送通知(ArkTS)(API9)(Full SDK)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Notification/CustomNotification
)
\ No newline at end of file
-
[
公共事件的订阅和发布(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Notification/CustomCommonEvent
)
-
[
自定义通知(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Notification/CustomNotification
)
-
[
自定义Emitter(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Notification/CustomEmitter
)
\ No newline at end of file
zh-cn/application-dev/quick-start/multi-hap-objective.md
浏览文件 @
b5220e39
...
...
@@ -5,4 +5,10 @@
-
方便开发者将多HAP合理地组合并部署到不同的设备上。例如应用程序包含一个Entry包和两个Featrue包(Feature1和Feature2)。其中Entry包可以部署到设备A和设备B,Feature1只能部署到设备A,Feature2包只部署到设备B上,那么开发者就可以方便的组合Entry和Feature1部署到设备A上,组合Entry和Feature2部署到设备B上。
-
方便开发者按需加载所需模块,减少包大小。开发者可以将一个应用的某些HAP配置成按需加载。应用在启动阶段初始用不到的特性,可以配置暂不加载,当用户用到这些特性的时候,可由应用自动下载这些特性HAP,一定程度上减少应用包的大小。
\ No newline at end of file
-
方便开发者按需加载所需模块,减少包大小。开发者可以将一个应用的某些HAP配置成按需加载。应用在启动阶段初始用不到的特性,可以配置暂不加载,当用户用到这些特性的时候,可由应用自动下载这些特性HAP,一定程度上减少应用包的大小。
## 相关实例
针对多HAP开发,有以下相关实例可供参考:
-
[
多HAP(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/Project/ApplicationHap/MultiHap
)
\ No newline at end of file
zh-cn/application-dev/quick-start/resource-categories-and-access.md
浏览文件 @
b5220e39
...
...
@@ -317,4 +317,4 @@ Image($r('sys.media.ohos_app_icon'))
针对访问应用资源,有以下相关实例可供参考:
-
[
`ResourceManager`:资源管理器
(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Internationalnation/ResourceManager
)
-
[
资源管理
(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Internationalnation/ResourceManager
)
zh-cn/application-dev/security/accesstoken-guidelines.md
浏览文件 @
b5220e39
...
...
@@ -327,4 +327,10 @@ reqPermissions() {
]
}
]
```
\ No newline at end of file
```
## 相关实例
针对访问控制,有以下相关实例可供参考:
-
[
访问权限控制(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/SystemFeature/Security/AbilityAccessCtrl
)
\ No newline at end of file
zh-cn/application-dev/security/cryptoFramework-guidelines.md
浏览文件 @
b5220e39
...
...
@@ -1601,3 +1601,9 @@ function doRandByCallback(len) {
});
}
```
## 相关实例
针对加解密算法开发,有以下相关实例可供参考:
-
[
加解密(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Security/Cipher
)
\ No newline at end of file
zh-cn/application-dev/task-management/agent-powered-reminder.md
浏览文件 @
b5220e39
...
...
@@ -194,4 +194,8 @@
基于代理提醒,有以下相关实例可供参考:
-
[
后台代理提醒(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/TaskManagement/ReminderAgentManager
)
-
[
翻页闹钟(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/Solutions/Tools/FlipClock
)
-
[
闹钟(ArkTS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/CommonEventAndNotification/AlarmClock
)
\ No newline at end of file
zh-cn/application-dev/task-management/continuous-task.md
浏览文件 @
b5220e39
...
...
@@ -468,11 +468,4 @@
console
.
info
(
'
ServiceAbility onCommand
'
);
}
};
```
## 相关实例
针对长时任务开发,有以下相关实例可供参考:
-
[
ContinuousTask:长时任务(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/code/BasicFeature/TaskManagement/ContinuousTask
)
\ No newline at end of file
```
\ No newline at end of file
zh-cn/application-dev/task-management/transient-task.md
浏览文件 @
b5220e39
...
...
@@ -91,10 +91,4 @@
function
cancelSuspendDelay
()
{
backgroundTaskManager
.
cancelSuspendDelay
(
id
);
}
```
## 相关实例
针对短时任务开发,有以下相关实例可供参考:
-
[
短时任务(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/code/BasicFeature/TaskManagement/TransientTask
)
\ No newline at end of file
```
\ No newline at end of file
zh-cn/application-dev/task-management/work-scheduler.md
浏览文件 @
b5220e39
...
...
@@ -210,4 +210,4 @@ WorkInfo参数用于设置应用条件,参数设置时需遵循以下规则:
针对延迟任务调度的开发,有以下相关示例可供参考:
-
[
WorkScheduler的创建与使用(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/master/code/BasicFeature/TaskManagement/WorkScheduler
)
\ No newline at end of file
-
[
延迟任务调度(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/TaskManagement/WorkScheduler
)
\ No newline at end of file
zh-cn/application-dev/ui/arkts-common-components-video-player.md
浏览文件 @
b5220e39
...
...
@@ -271,4 +271,6 @@ Video组件已经封装好了视频播放的基础能力,开发者无需进行
针对Video组件开发,有以下相关实例可供参考:
-
[
视频播放(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Media/VideoShow
)
-
[
简易视频播放器(ArkTS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/Media/SimpleVideo
)
\ No newline at end of file
zh-cn/application-dev/ui/arkts-layout-development-create-grid.md
浏览文件 @
b5220e39
...
...
@@ -330,4 +330,11 @@ Grid() {
>**说明:**
>
>cachedCount的增加会增大UI的CPU、内存开销。使用时需要根据实际情况,综合性能和用户体验进行调整。
> cachedCount的增加会增大UI的CPU、内存开销。使用时需要根据实际情况,综合性能和用户体验进行调整。
## 相关实例
针对网格开发,有以下相关实例可供参考:
-
[
游戏2048(ArkTS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/Solutions/Game/Game2048
)
zh-cn/application-dev/ui/arkts-ui-development-overview.md
浏览文件 @
b5220e39
...
...
@@ -87,9 +87,3 @@
| 显示图形 | 介绍了如何显示图片、绘制自定义几何图形以及使用画布绘制自定义图形。 | -
[图片](arkts-graphics-display.md)
<br/>
-
[几何图形](arkts-geometric-shape-drawing.md)
<br/>
-
[
画布
](
arkts-drawing-customization-on-canvas.md
)
|
| 使用动画 | 介绍了组件和页面使用动画的典型场景。 | -
[页面内的动画](arkts-layout-update-animation.md)
<br/>
-
[
页面间的动画
](
arkts-zoom-animation.md
)
|
| 绑定事件 | 介绍了事件的基本概念和如何使用通用事件和手势事件。 | -
[通用事件](arkts-common-events-touch-screen-event.md)
<br/>
-
[
手势事件
](
arkts-gesture-events-binding.md
)
|
## 相关实例
基于ArkTS的声明式开发范式,可参考以下实例:
[
ArkTS组件集
](
https://gitee.com/openharmony/applications_app_samples/tree/master/code/UI/ArkTsComponentClollection/ComponentCollection
)
:组件、通用方法、动画、全局方法的集合。
zh-cn/application-dev/ui/ui-js-building-ui-component.md
浏览文件 @
b5220e39
...
...
@@ -25,8 +25,6 @@
针对组件开发,有以下相关实例可供参考:
-
[
`JsComponentCollection`:Js组件(JS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/UI/JsComponentClollection/JsComponentCollection
)
-
[
购物应用(JS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/JSUI/ShoppingSample
)
-
[
简易视频播放器(JS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/Media/VideoOpenHarmony
)
...
...
zh-cn/application-dev/ui/ui-js-components-canvas.md
浏览文件 @
b5220e39
...
...
@@ -146,7 +146,7 @@ export default {
针对Canvas开发,有以下相关实例可供参考:
-
[
`JsComponentCollection`:JS组件集合
(JS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/UI/JsComponentClollection/JsComponentCollection
)
-
[
JS组件集
(JS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/UI/JsComponentClollection/JsComponentCollection
)
-
[
自定义抽奖转盘(JS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/JSUI/JSCanvasComponent
)
...
...
zh-cn/application-dev/ui/ui-js-components-slider.md
浏览文件 @
b5220e39
...
...
@@ -217,6 +217,4 @@ export default{
针对slider开发,有以下相关实例可供参考:
-
[
`JsComponentCollection`:JS组件集合(JS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/UI/JsComponentClollection/JsComponentCollection
)
-
[
简易视频播放器(JS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/Media/VideoOpenHarmony
)
\ No newline at end of file
zh-cn/application-dev/ui/ui-js-components-swiper.md
浏览文件 @
b5220e39
...
...
@@ -370,6 +370,6 @@ export default {
针对swiper开发,有以下相关实例可供参考:
-
[
`Swiper`:内容滑动容器
(JS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/samples_3.2_Release/code/UI/JsComponentClollection/JsComponentCollection
)
-
[
JS组件集
(JS)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/samples_3.2_Release/code/UI/JsComponentClollection/JsComponentCollection
)
-
[
简易视频播放器(JS)(API9)
](
https://gitee.com/openharmony/codelabs/tree/master/Media/VideoOpenHarmony
)
\ No newline at end of file
zh-cn/application-dev/web/web-in-app-frontend-page-function-invoking.md
浏览文件 @
b5220e39
...
...
@@ -46,3 +46,9 @@
}
}
```
## 相关实例
针对Web组件开发,有以下相关实例可供参考:
-
[
JS注入与执行(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Web/RunJsInWeb
)
\ No newline at end of file
zh-cn/application-dev/web/web-page-loading-with-web-components.md
浏览文件 @
b5220e39
...
...
@@ -138,3 +138,9 @@ struct WebComponent {
}
}
```
## 相关实例
针对Web组件开发,有以下相关实例可供参考:
-
[
浏览器(ArkTS)(Full SDK)(API9)
](
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/Web/Browser
)
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录