Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
9970abea
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看板
未验证
提交
9970abea
编写于
5月 10, 2022
作者:
O
openharmony_ci
提交者:
Gitee
5月 10, 2022
浏览文件
操作
浏览文件
下载
差异文件
!3841 修复pageAbility example示例代码
Merge pull request !3841 from guyuanzhang/0506
上级
0acd1b8e
9530cb16
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
32 deletion
+6
-32
zh-cn/application-dev/ability/fa-pageability.md
zh-cn/application-dev/ability/fa-pageability.md
+6
-32
未找到文件。
zh-cn/application-dev/ability/fa-pageability.md
浏览文件 @
9970abea
...
...
@@ -76,37 +76,10 @@ ability支持单实例和多实例两种启动模式。
action
:
""
,
entities
:
[
""
],
type
:
""
,
options
:
{
// Grant the permission to perform read operations on the URI.
authReadUriPermission
:
true
,
// Grant the permission to perform write operations on the URI.
authWriteUriPermission
:
true
,
// support forwarding the Want result to the ability.
abilityForwardResult
:
true
,
// Enable abiligy continuation.
abilityContinuation
:
true
,
// Specify that a component does not belong to ohos.
notOhosComponent
:
true
,
// Specify that an ability is started.
abilityFormEnabled
:
true
,
// Grant the permission for possible persisting on the URI.
authPersistableUriPermission
:
true
,
// Grant the permission for possible persisting on the prefix URI.
authPrefixUriPermission
:
true
,
// Support distributed scheduling system startup on multiple devices.
abilitySliceMultiDevice
:
true
,
// A service ability is started regardless of whether the host application has been started.
startForegroundAbility
:
true
,
// Install the specified ability if it is not installed.
installOnDemand
:
true
,
// Return the result to the ability slice.
abilitySliceForwardResult
:
true
,
// Install the specified ability with background mode if it is not installed.
installWithBackgroundMode
:
true
},
deviceId
:
""
,
bundleName
:
"
com.example.startability
"
,
abilityName
:
"
com.example.startability.MainAbility
"
,
bundleName
:
"
com.example.myapplication
"
,
/* FA模型中abilityName由package + Ability name组成 */
abilityName
:
"
com.example.entry.secondAbility
"
,
uri
:
""
},
},
...
...
@@ -122,10 +95,10 @@ ability支持单实例和多实例两种启动模式。
featureAbility
.
startAbility
({
want
:
{
bundleName
:
"
com.example.
startability
"
,
bundleName
:
"
com.example.
myapplication
"
,
uri
:
""
,
parameters
:
{
abilityName
:
"
com.example.
startability.Main
Ability
"
abilityName
:
"
com.example.
entry.second
Ability
"
}
},
},
...
...
@@ -261,4 +234,5 @@ export default {
```
## 相关实例
针对PageAbility开发,有以下相关实例可供参考:
-
[
`DMS`:分布式Demo(eTS)(API7)
](
https://gitee.com/openharmony/app_samples/tree/master/ability/DMS
)
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录