Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
42c313c1
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看板
未验证
提交
42c313c1
编写于
11月 07, 2022
作者:
O
openharmony_ci
提交者:
Gitee
11月 07, 2022
浏览文件
操作
浏览文件
下载
差异文件
!11270 3.1Release分支:问题同步修改
Merge pull request !11270 from 葛亚芳/OpenHarmony-3.1-Release
上级
535c3532
3e03f215
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
34 addition
and
32 deletion
+34
-32
zh-cn/application-dev/reference/apis/js-apis-data-resultset.md
.../application-dev/reference/apis/js-apis-data-resultset.md
+7
-7
zh-cn/application-dev/reference/apis/js-apis-data-storage.md
zh-cn/application-dev/reference/apis/js-apis-data-storage.md
+2
-2
zh-cn/application-dev/reference/apis/js-apis-window.md
zh-cn/application-dev/reference/apis/js-apis-window.md
+24
-22
zh-cn/application-dev/reference/native-apis/_drawing.md
zh-cn/application-dev/reference/native-apis/_drawing.md
+1
-1
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-data-resultset.md
浏览文件 @
42c313c1
...
@@ -119,7 +119,7 @@ goTo(offset:number): boolean
...
@@ -119,7 +119,7 @@ goTo(offset:number): boolean
```
js
```
js
let
predicatesgoto
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
predicatesgoto
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
promisequerygoto
=
rdbStore
.
query
(
predicatesgoto
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
let
promisequerygoto
=
rdbStore
.
query
(
predicatesgoto
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
promisequerygoto
.
then
((
resultSet
)
{
promisequerygoto
.
then
((
resultSet
)
=>
{
resultSet
.
goTo
(
1
)
resultSet
.
goTo
(
1
)
resultSet
.
close
()
resultSet
.
close
()
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
...
@@ -150,7 +150,7 @@ goToRow(position: number): boolean
...
@@ -150,7 +150,7 @@ goToRow(position: number): boolean
```
js
```
js
let
predicatesgotorow
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
predicatesgotorow
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
promisequerygotorow
=
rdbStore
.
query
(
predicatesgotorow
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
let
promisequerygotorow
=
rdbStore
.
query
(
predicatesgotorow
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
promisequerygotorow
.
then
((
resultSet
)
{
promisequerygotorow
.
then
((
resultSet
)
=>
{
resultSet
.
goToRow
(
5
)
resultSet
.
goToRow
(
5
)
resultSet
.
close
()
resultSet
.
close
()
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
...
@@ -177,7 +177,7 @@ goToFirstRow(): boolean
...
@@ -177,7 +177,7 @@ goToFirstRow(): boolean
```
js
```
js
let
predicatesgoFirst
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
predicatesgoFirst
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
promisequerygoFirst
=
rdbStore
.
query
(
predicatesgoFirst
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
let
promisequerygoFirst
=
rdbStore
.
query
(
predicatesgoFirst
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
promisequerygoFirst
.
then
((
resultSet
)
{
promisequerygoFirst
.
then
((
resultSet
)
=>
{
resultSet
.
goToFirstRow
()
resultSet
.
goToFirstRow
()
resultSet
.
close
()
resultSet
.
close
()
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
...
@@ -203,7 +203,7 @@ goToLastRow(): boolean
...
@@ -203,7 +203,7 @@ goToLastRow(): boolean
```
js
```
js
let
predicatesgoLast
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
predicatesgoLast
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
promisequerygoLast
=
rdbStore
.
query
(
predicatesgoLast
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
let
promisequerygoLast
=
rdbStore
.
query
(
predicatesgoLast
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
promisequerygoLast
.
then
((
resultSet
)
{
promisequerygoLast
.
then
((
resultSet
)
=>
{
resultSet
.
goToLastRow
()
resultSet
.
goToLastRow
()
resultSet
.
close
()
resultSet
.
close
()
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
...
@@ -229,7 +229,7 @@ goToNextRow(): boolean
...
@@ -229,7 +229,7 @@ goToNextRow(): boolean
```
js
```
js
let
predicatesgoNext
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
predicatesgoNext
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
promisequerygoNext
=
rdbStore
.
query
(
predicatesgoNext
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
let
promisequerygoNext
=
rdbStore
.
query
(
predicatesgoNext
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
promisequerygoNext
.
then
((
resultSet
)
{
promisequerygoNext
.
then
((
resultSet
)
=>
{
resultSet
.
goToNextRow
()
resultSet
.
goToNextRow
()
resultSet
.
close
()
resultSet
.
close
()
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
...
@@ -255,7 +255,7 @@ goToPreviousRow(): boolean
...
@@ -255,7 +255,7 @@ goToPreviousRow(): boolean
```
js
```
js
let
predicatesgoPrev
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
predicatesgoPrev
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
promisequerygoPrev
=
rdbStore
.
query
(
predicatesgoPrev
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
let
promisequerygoPrev
=
rdbStore
.
query
(
predicatesgoPrev
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
promisequerygoPrev
.
then
((
resultSet
)
{
promisequerygoPrev
.
then
((
resultSet
)
=>
{
resultSet
.
goToPreviousRow
()
resultSet
.
goToPreviousRow
()
resultSet
.
close
()
resultSet
.
close
()
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
...
@@ -396,7 +396,7 @@ close(): void
...
@@ -396,7 +396,7 @@ close(): void
```
js
```
js
let
predicatesClose
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
predicatesClose
=
new
dataRdb
.
RdbPredicates
(
"
EMPLOYEE
"
)
let
promiseClose
=
rdbStore
.
query
(
predicatesClose
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
let
promiseClose
=
rdbStore
.
query
(
predicatesClose
,
[
"
ID
"
,
"
NAME
"
,
"
AGE
"
,
"
SALARY
"
,
"
CODES
"
])
promiseClose
.
then
((
resultSet
)
{
promiseClose
.
then
((
resultSet
)
=>
{
resultSet
.
close
()
resultSet
.
close
()
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
log
(
'
resultset close failed
'
)
console
.
log
(
'
resultset close failed
'
)
...
...
zh-cn/application-dev/reference/apis/js-apis-data-storage.md
浏览文件 @
42c313c1
...
@@ -20,8 +20,8 @@ import data_storage from '@ohos.data.storage';
...
@@ -20,8 +20,8 @@ import data_storage from '@ohos.data.storage';
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| ---------------- | -------- | ---- | ---- | ------------------------------------- |
| ---------------- | -------- | ---- | ---- | ------------------------------------- |
| MAX_KEY_LENGTH |
string
| 是 | 否 | key的最大长度限制,需小于80字节。 |
| MAX_KEY_LENGTH |
number
| 是 | 否 | key的最大长度限制,需小于80字节。 |
| MAX_VALUE_LENGTH |
string
| 是 | 否 | value的最大长度限制,需小于8192字节。 |
| MAX_VALUE_LENGTH |
number
| 是 | 否 | value的最大长度限制,需小于8192字节。 |
## data_storage.getStorageSync
## data_storage.getStorageSync
...
...
zh-cn/application-dev/reference/apis/js-apis-window.md
浏览文件 @
42c313c1
...
@@ -81,9 +81,9 @@ import window from '@ohos.window';
...
@@ -81,9 +81,9 @@ import window from '@ohos.window';
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| --------------- | ------------------------- | ---- | ---- | ------------------------------------------------------------ |
| --------------- | ------------------------- | ---- | ---- | ------------------------------------------------------------ |
| type |
[
WindowType
](
#windowtype
)
| 是 | 否 | 当前属性改变的系统栏类型,仅支持类型为导航栏、状态栏的系统栏。 |
| type |
[
WindowType
](
#windowtype
7
)
| 是 | 否 | 当前属性改变的系统栏类型,仅支持类型为导航栏、状态栏的系统栏。 |
| isEnable | boolean | 是 | 否 | 当前系统栏是否显示。 |
| isEnable | boolean | 是 | 否 | 当前系统栏是否显示。 |
| region |
[
Rect
](
#rect
)
| 是 | 否 | 当前系统栏的位置及大小。 |
| region |
[
Rect
](
#rect
7
)
| 是 | 否 | 当前系统栏的位置及大小。 |
| backgroundColor | string | 是 | 否 | 系统栏背景颜色,为十六进制RGB或ARGB颜色,不区分大小写,例如
`#00FF00`
或
`#FF00FF00`
。 |
| backgroundColor | string | 是 | 否 | 系统栏背景颜色,为十六进制RGB或ARGB颜色,不区分大小写,例如
`#00FF00`
或
`#FF00FF00`
。 |
| contentColor | string | 是 | 否 | 系统栏文字颜色。 |
| contentColor | string | 是 | 否 | 系统栏文字颜色。 |
...
@@ -121,10 +121,10 @@ import window from '@ohos.window';
...
@@ -121,10 +121,10 @@ import window from '@ohos.window';
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| ---------- | ------------- | ---- | ---- | ------------------ |
| ---------- | ------------- | ---- | ---- | ------------------ |
| leftRect |
[
Rect
](
#rect
)
| 是 | 是 | 屏幕左侧的矩形区。 |
| leftRect |
[
Rect
](
#rect
7
)
| 是 | 是 | 屏幕左侧的矩形区。 |
| topRect |
[
Rect
](
#rect
)
| 是 | 是 | 屏幕顶部的矩形区。 |
| topRect |
[
Rect
](
#rect
7
)
| 是 | 是 | 屏幕顶部的矩形区。 |
| rightRect |
[
Rect
](
#rect
)
| 是 | 是 | 屏幕右侧的矩形区。 |
| rightRect |
[
Rect
](
#rect
7
)
| 是 | 是 | 屏幕右侧的矩形区。 |
| bottomRect |
[
Rect
](
#rect
)
| 是 | 是 | 屏幕底部的矩形区。 |
| bottomRect |
[
Rect
](
#rect
7
)
| 是 | 是 | 屏幕底部的矩形区。 |
## Size<sup>7+</sup>
## Size<sup>7+</sup>
...
@@ -145,8 +145,8 @@ import window from '@ohos.window';
...
@@ -145,8 +145,8 @@ import window from '@ohos.window';
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| ------------------------------- | ------------------------- | ---- | ---- | -------------------------------------------- |
| ------------------------------- | ------------------------- | ---- | ---- | -------------------------------------------- |
| windowRect
<sup>
7+
</sup>
|
[
Rect
](
#rect
)
| 是 | 是 | 窗口尺寸。 |
| windowRect
<sup>
7+
</sup>
|
[
Rect
](
#rect
7
)
| 是 | 是 | 窗口尺寸。 |
| type
<sup>
7+
</sup>
|
[
WindowType
](
#windowtype
)
| 是 | 是 | 窗口类型。 |
| type
<sup>
7+
</sup>
|
[
WindowType
](
#windowtype
7
)
| 是 | 是 | 窗口类型。 |
| isFullScreen | boolean | 是 | 是 | 是否全屏,默认为false。 |
| isFullScreen | boolean | 是 | 是 | 是否全屏,默认为false。 |
| isLayoutFullScreen
<sup>
7+
</sup>
| boolean | 是 | 是 | 窗口是否为沉浸式,默认为false。 |
| isLayoutFullScreen
<sup>
7+
</sup>
| boolean | 是 | 是 | 窗口是否为沉浸式,默认为false。 |
| focusable
<sup>
7+
</sup>
| boolean | 是 | 否 | 窗口是否可聚焦,默认为true。 |
| focusable
<sup>
7+
</sup>
| boolean | 是 | 否 | 窗口是否可聚焦,默认为true。 |
...
@@ -182,7 +182,7 @@ create(id: string, type: WindowType, callback: AsyncCallback<Window>): voi
...
@@ -182,7 +182,7 @@ create(id: string, type: WindowType, callback: AsyncCallback<Window>): voi
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------------------------------------- | ---- | ------------------------------------ |
| -------- | -------------------------------------- | ---- | ------------------------------------ |
| id | string | 是 | 窗口id。 |
| id | string | 是 | 窗口id。 |
| type |
[
WindowType
](
#windowtype
)
| 是 | 窗口类型。 |
| type |
[
WindowType
](
#windowtype
7
)
| 是 | 窗口类型。 |
| callback | AsyncCallback
<
[Window](#window)
>
| 是 | 回调函数。返回当前创建的子窗口对象。 |
| callback | AsyncCallback
<
[Window](#window)
>
| 是 | 回调函数。返回当前创建的子窗口对象。 |
**示例:**
**示例:**
...
@@ -212,7 +212,7 @@ create(id: string, type: WindowType): Promise<Window>
...
@@ -212,7 +212,7 @@ create(id: string, type: WindowType): Promise<Window>
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| ------ | ------------------------- | ---- | ---------- |
| ------ | ------------------------- | ---- | ---------- |
| id | string | 是 | 窗口id。 |
| id | string | 是 | 窗口id。 |
| type |
[
WindowType
](
#windowtype
)
| 是 | 窗口类型。 |
| type |
[
WindowType
](
#windowtype
7
)
| 是 | 窗口类型。 |
**返回值:**
**返回值:**
...
@@ -247,7 +247,7 @@ create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback<Wi
...
@@ -247,7 +247,7 @@ create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback<Wi
| -------- | -------------------------------------- | ---- | ------------------------------------------------------------ |
| -------- | -------------------------------------- | ---- | ------------------------------------------------------------ |
| ctx |
[
Context
](
js-apis-Context.md
)
| 是 | 当前应用上下文信息。 |
| ctx |
[
Context
](
js-apis-Context.md
)
| 是 | 当前应用上下文信息。 |
| id | string | 是 | 窗口id。 |
| id | string | 是 | 窗口id。 |
| type |
[
WindowType
](
#windowtype
)
| 是 | 窗口类型。 |
| type |
[
WindowType
](
#windowtype
7
)
| 是 | 窗口类型。 |
| callback | AsyncCallback
<
[Window](#window)
>
| 是 | 回调函数。返回当前创建的子窗口对象。 |
| callback | AsyncCallback
<
[Window](#window)
>
| 是 | 回调函数。返回当前创建的子窗口对象。 |
**示例:**
**示例:**
...
@@ -280,7 +280,7 @@ create(ctx: Context, id: string, type: WindowType): Promise<Window>
...
@@ -280,7 +280,7 @@ create(ctx: Context, id: string, type: WindowType): Promise<Window>
| ------ | ------------------------- | ---- | ------------------------------------------------------------ |
| ------ | ------------------------- | ---- | ------------------------------------------------------------ |
| ctx |
[
Context
](
js-apis-Context.md
)
| 是 | 当前应用上下文信息。 |
| ctx |
[
Context
](
js-apis-Context.md
)
| 是 | 当前应用上下文信息。 |
| id | string | 是 | 窗口id。 |
| id | string | 是 | 窗口id。 |
| type |
[
WindowType
](
#windowtype
)
| 是 | 窗口类型。 |
| type |
[
WindowType
](
#windowtype
7
)
| 是 | 窗口类型。 |
**返回值:**
**返回值:**
...
@@ -495,7 +495,7 @@ on(type: 'systemBarTintChange', callback: Callback<SystemBarTintState>): v
...
@@ -495,7 +495,7 @@ on(type: 'systemBarTintChange', callback: Callback<SystemBarTintState>): v
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ |
| -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ |
| type | string | 是 | 监听事件,固定为'systemBarTintChange',即导航栏、状态栏属性变化事件。 |
| type | string | 是 | 监听事件,固定为'systemBarTintChange',即导航栏、状态栏属性变化事件。 |
| callback | Callback
<
[SystemBarTintState](#systembartintstate)
>
| 是 | 回调函数。返回当前的状态栏、导航栏信息集合。 |
| callback | Callback
<
[SystemBarTintState](#systembartintstate
8
)
>
| 是 | 回调函数。返回当前的状态栏、导航栏信息集合。 |
**示例:**
**示例:**
...
@@ -520,7 +520,7 @@ off(type: 'systemBarTintChange', callback?: Callback<SystemBarTintState >)
...
@@ -520,7 +520,7 @@ off(type: 'systemBarTintChange', callback?: Callback<SystemBarTintState >)
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ |
| -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ |
| type | string | 是 | 监听事件,固定为'systemBarTintChange',即导航栏、状态栏属性变化事件。 |
| type | string | 是 | 监听事件,固定为'systemBarTintChange',即导航栏、状态栏属性变化事件。 |
| callback | Callback
<
[SystemBarTintState](#systembartintstate)
>
| 否 | 回调函数。返回当前的状态栏、导航栏信息集合。 |
| callback | Callback
<
[SystemBarTintState](#systembartintstate
8
)
>
| 否 | 回调函数。返回当前的状态栏、导航栏信息集合。 |
**示例:**
**示例:**
...
@@ -758,6 +758,10 @@ resetSize(width: number, height: number, callback: AsyncCallback<void>): v
...
@@ -758,6 +758,10 @@ resetSize(width: number, height: number, callback: AsyncCallback<void>): v
改变当前窗口大小,使用callback异步回调。
改变当前窗口大小,使用callback异步回调。
应用主窗口与子窗口存在大小限制,宽度范围:[320,2560],高度范围:[240,2560],单位为vp。
系统窗口存在大小限制,宽度范围:[0,2560],高度范围:[0,2560],单位为vp。
**系统能力:**
SystemCapability.WindowManager.WindowManager.Core
**系统能力:**
SystemCapability.WindowManager.WindowManager.Core
**参数:**
**参数:**
...
@@ -786,6 +790,10 @@ resetSize(width: number, height: number): Promise<void>
...
@@ -786,6 +790,10 @@ resetSize(width: number, height: number): Promise<void>
改变当前窗口大小,使用Promise异步回调。
改变当前窗口大小,使用Promise异步回调。
应用主窗口与子窗口存在大小限制,宽度范围:[320,2560],高度范围:[240,2560],单位为vp。
系统窗口存在大小限制,宽度范围:[0,2560],高度范围:[0,2560],单位为vp。
**系统能力:**
SystemCapability.WindowManager.WindowManager.Core
**系统能力:**
SystemCapability.WindowManager.WindowManager.Core
**参数:**
**参数:**
...
@@ -826,7 +834,7 @@ setWindowType(type: WindowType, callback: AsyncCallback<void>): void
...
@@ -826,7 +834,7 @@ setWindowType(type: WindowType, callback: AsyncCallback<void>): void
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| -------- | ------------------------- | ---- | ---------- |
| -------- | ------------------------- | ---- | ---------- |
| type |
[
WindowType
](
#windowtype
)
| 是 | 窗口类型。 |
| type |
[
WindowType
](
#windowtype
7
)
| 是 | 窗口类型。 |
| callback | AsyncCallback
<
void
>
| 是 | 回调函数。 |
| callback | AsyncCallback
<
void
>
| 是 | 回调函数。 |
**示例:**
**示例:**
...
@@ -856,7 +864,7 @@ setWindowType(type: WindowType): Promise<void>
...
@@ -856,7 +864,7 @@ setWindowType(type: WindowType): Promise<void>
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| ------ | ------------------------- | ---- | ---------- |
| ------ | ------------------------- | ---- | ---------- |
| type |
[
WindowType
](
#windowtype
)
| 是 | 窗口类型。 |
| type |
[
WindowType
](
#windowtype
7
)
| 是 | 窗口类型。 |
**返回值:**
**返回值:**
...
@@ -1190,9 +1198,6 @@ setSystemBarProperties(systemBarProperties: SystemBarProperties, callback: Async
...
@@ -1190,9 +1198,6 @@ setSystemBarProperties(systemBarProperties: SystemBarProperties, callback: Async
var
SystemBarProperties
=
{
var
SystemBarProperties
=
{
statusBarColor
:
'
#ff00ff
'
,
statusBarColor
:
'
#ff00ff
'
,
navigationBarColor
:
'
#00ff00
'
,
navigationBarColor
:
'
#00ff00
'
,
//以下两个属性从API Version7开始支持
isStatusBarLightIcon
:
true
,
isNavigationBarLightIcon
:
false
,
//以下两个属性从API Version8开始支持
//以下两个属性从API Version8开始支持
statusBarContentColor
:
'
#ffffff
'
,
statusBarContentColor
:
'
#ffffff
'
,
navigationBarContentColor
:
'
#00ffff
'
navigationBarContentColor
:
'
#00ffff
'
...
@@ -1232,9 +1237,6 @@ setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise<voi
...
@@ -1232,9 +1237,6 @@ setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise<voi
var
SystemBarProperties
=
{
var
SystemBarProperties
=
{
statusBarColor
:
'
#ff00ff
'
,
statusBarColor
:
'
#ff00ff
'
,
navigationBarColor
:
'
#00ff00
'
,
navigationBarColor
:
'
#00ff00
'
,
//以下两个属性从API Version7开始支持
isStatusBarLightIcon
:
true
,
isNavigationBarLightIcon
:
false
,
//以下两个属性从API Version8开始支持
//以下两个属性从API Version8开始支持
statusBarContentColor
:
'
#ffffff
'
,
statusBarContentColor
:
'
#ffffff
'
,
navigationBarContentColor
:
'
#00ffff
'
navigationBarContentColor
:
'
#00ffff
'
...
...
zh-cn/application-dev/reference/native-apis/_drawing.md
浏览文件 @
42c313c1
...
@@ -1830,7 +1830,7 @@ void OH_Drawing_SetTextStyleFontFamilies (OH_Drawing_TextStyle * , int , const c
...
@@ -1830,7 +1830,7 @@ void OH_Drawing_SetTextStyleFontFamilies (OH_Drawing_TextStyle * , int , const c
| -------- | -------- |
| -------- | -------- |
| OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 |
| OH_Drawing_TextStyle | 指向OH_Drawing_TextStyle对象的指针 |
| int | 字体名称数量 |
| int | 字体名称数量 |
|
char | 指向字体类型的指针
|
|
fontFamilies | 指向字体类型的指针数组
|
### OH_Drawing_SetTextStyleFontHeight()
### OH_Drawing_SetTextStyleFontHeight()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录