Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Coping0606
Docs
提交
2bf9fc27
D
Docs
项目概览
Coping0606
/
Docs
与 Fork 源项目一致
Fork自
OpenHarmony / Docs
通知
1
Star
1
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
2bf9fc27
编写于
4月 29, 2022
作者:
G
ge-yafang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docs
Signed-off-by:
N
ge-yafang
<
geyafang@huawei.com
>
上级
d68c110f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
16 deletion
+20
-16
zh-cn/application-dev/reference/apis/js-apis-window.md
zh-cn/application-dev/reference/apis/js-apis-window.md
+19
-15
zh-cn/application-dev/webgl/Readme-CN.md
zh-cn/application-dev/webgl/Readme-CN.md
+1
-1
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-window.md
浏览文件 @
2bf9fc27
...
...
@@ -235,18 +235,20 @@ create(id: string, type: WindowType): Promise<Window>
create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback
<
Window
>
): void
当Context为
[
ServiceExtAbilityContext
](
js-apis-serviceExtAbilityContext.md
)
时,创建系统窗口,使用callback方式作为异步方法。
创建子窗口,使用callback方式作为异步方法,其中Context详见
[
Context
](
js-apis-Context.md
)
。
从API version 9开始,当Context为
[
ServiceExtAbilityContext
](
js-apis-serviceExtAbilityContext.md
)
时,创建系统窗口,使用callback方式作为异步方法。
**系统能力**
:SystemCapability.WindowManager.WindowManager.Core
-
参数
| 参数名 | 类型
| 必填 | 说明
|
| -------- | --------------------------------------
-------- | ---- |
---------------------- |
| ctx |
[
Context
](
js-apis-serviceExtAbilityContext.md
)
| 是 | 当前应用上下文信息。
|
| id | string
| 是 | 窗口id。
|
| type |
[
WindowType
](
#windowtype
)
| 是 | 窗口类型。
|
| callback | AsyncCallback
<
[Window](#window)
>
| 是 | 回调返回当前窗口对象。
|
| 参数名 | 类型
| 必填 | 说明
|
| -------- | --------------------------------------
| ---- | --------------------------------------
---------------------- |
| ctx |
Context | 是 | 当前应用上下文信息。
<br>
API version 8的Context定义见
[
Context
](
js-apis-Context.md
)
。
<br>
API version 9的Context定义见
[
Context
](
js-apis-serviceExtAbilityContext.md
)
。
|
| id | string
| 是 | 窗口id。
|
| type |
[
WindowType
](
#windowtype
)
| 是 | 窗口类型。
|
| callback | AsyncCallback
<
[Window](#window)
>
| 是 | 回调返回当前窗口对象。
|
-
示例
...
...
@@ -267,17 +269,19 @@ create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback<Wi
create(ctx: Context, id: string, type: WindowType): Promise
<
Window
>
当Context为
[
ServiceExtAbilityContext
](
js-apis-serviceExtAbilityContext.md
)
时,创建系统窗口,使用Promise方式作为异步方法。
创建子窗口,使用Promise方式作为异步方法,其中Context详见
[
Context
](
js-apis-Context.md
)
。
从API version 9开始,当Context为
[
ServiceExtAbilityContext
](
js-apis-serviceExtAbilityContext.md
)
时,创建系统窗口,使用Promise方式作为异步方法。
**系统能力**
:SystemCapability.WindowManager.WindowManager.Core
-
参数
| 参数名 | 类型
| 必填 | 说明
|
| ------ | -------------------------
--------------------- | ---- |
-------------------- |
| ctx |
[
Context
](
js-apis-serviceExtAbilityContext.md
)
| 是 | 当前应用上下文信息
。 |
| id | string
| 是 | 窗口id。
|
| type |
[
WindowType
](
#windowtype
)
| 是 | 窗口类型。
|
| 参数名 | 类型
| 必填 | 说明
|
| ------ | -------------------------
| ---- | ----------------------------------------
-------------------- |
| ctx |
Context | 是 | 当前应用上下文信息。
<br/>
API version 8的Context定义见
[
Context
](
js-apis-Context.md
)
。
<br/>
API version 9的Context定义见
[
Context
](
js-apis-serviceExtAbilityContext.md
)
。 |
| id | string
| 是 | 窗口id。
|
| type |
[
WindowType
](
#windowtype
)
| 是 | 窗口类型。
|
-
返回值
...
...
@@ -427,7 +431,7 @@ getTopWindow(ctx: Context, callback: AsyncCallback<Window>): void
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------------------------------------- | ---- | ------------------------------------------------------------ |
| ctx | Context | 是 | 当前应用上下文信息。
API 8的Context定义见
[
Context
](
js-apis-Context.md
)
。API
9的Context定义见
[
Context
](
js-apis-ability-context.md
)
。 |
| ctx | Context | 是 | 当前应用上下文信息。
<br>
API version 8的Context定义见
[
Context
](
js-apis-Context.md
)
。
<br>
API version
9的Context定义见
[
Context
](
js-apis-ability-context.md
)
。 |
| callback | AsyncCallback
<
[Window](#window)
>
| 是 | 回调返回当前应用内最后显示的窗口对象。 |
-
示例
...
...
@@ -456,7 +460,7 @@ getTopWindow(ctx: Context): Promise<Window>
| 参数名 | 类型 | 必填 | 说明 |
| ------ | ------- | ---- | ------------------------------------------------------------ |
| ctx | Context | 是 | 当前应用上下文信息。
API8的Context定义见
[
Context
](
js-apis-Context.md
)
。API
9的Context定义见
[
Context
](
js-apis-ability-context.md
)
。 |
| ctx | Context | 是 | 当前应用上下文信息。
<br/>
API version 8的Context定义见
[
Context
](
js-apis-Context.md
)
。
<br/>
API version
9的Context定义见
[
Context
](
js-apis-ability-context.md
)
。 |
-
返回值
...
...
zh-cn/application-dev/webgl/Readme-CN.md
浏览文件 @
2bf9fc27
# WebGL
-
[
概述
](
webgl-overview.md
)
-
[
WebGL开发
概述
](
webgl-overview.md
)
-
[
WebGL开发指导
](
webgl-guidelines.md
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录