Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
180fb3a3
D
Docs
项目概览
OpenHarmony
/
Docs
接近 2 年 前同步成功
通知
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看板
未验证
提交
180fb3a3
编写于
3月 25, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 25, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2539 miscservices syscap修改
Merge pull request !2539 from liulinna/master
上级
7248bd18
e696169a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
80 addition
and
80 deletion
+80
-80
zh-cn/application-dev/reference/apis/js-apis-pasteboard.md
zh-cn/application-dev/reference/apis/js-apis-pasteboard.md
+43
-43
zh-cn/application-dev/reference/apis/js-apis-system-time.md
zh-cn/application-dev/reference/apis/js-apis-system-time.md
+15
-15
zh-cn/application-dev/reference/apis/js-apis-wallpaper.md
zh-cn/application-dev/reference/apis/js-apis-wallpaper.md
+22
-22
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-pasteboard.md
浏览文件 @
180fb3a3
...
...
@@ -15,7 +15,7 @@ import pasteboard from '@ohos.pasteboard';
## 属性
**系统能力**
: 以下各项对应的系统能力均为SystemCapability.Misc
s
ervices.Pasteboard。
**系统能力**
: 以下各项对应的系统能力均为SystemCapability.Misc
S
ervices.Pasteboard。
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- |
...
...
@@ -32,7 +32,7 @@ createPlainTextData(text:string): PasteData
构建一个纯文本剪贴板内容对象。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -57,7 +57,7 @@ createHtmlData(htmlText:string): PasteData
构建一个html文本剪贴板内容对象。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -83,7 +83,7 @@ createWantData(want:Want): PasteData
构建一个want剪贴板内容对象。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -112,7 +112,7 @@ createUriData(uri:string): PasteData
构建一个URI剪贴板内容对象。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -137,7 +137,7 @@ createPlainTextRecord(text:string): PasteDataRecord
创建一条文本类型的内容条目。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -162,7 +162,7 @@ createHtmlTextRecord(htmlText:string): PasteDataRecord
创建一条HTML内容的条目。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -188,7 +188,7 @@ createWantRecord(want:Want): PasteDataRecord
创建一条Want内容条目。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -217,7 +217,7 @@ createUriRecord(uri:string): PasteDataRecord
创建一条URI内容的条目。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -240,7 +240,7 @@ createUriRecord(uri:string): PasteDataRecord
定义了剪贴板中所有内容条目的属性,包含时间戳、数据类型以及一些附加数据等。
**系统能力**
: 以下各项对应的系统能力均为SystemCapability.Misc
s
ervices.Pasteboard。
**系统能力**
: 以下各项对应的系统能力均为SystemCapability.Misc
S
ervices.Pasteboard。
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- |
...
...
@@ -258,7 +258,7 @@ createUriRecord(uri:string): PasteDataRecord
### 属性
**系统能力**
: 以下各项对应的系统能力均为SystemCapability.Misc
s
ervices.Pasteboard。
**系统能力**
: 以下各项对应的系统能力均为SystemCapability.Misc
S
ervices.Pasteboard。
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- |
...
...
@@ -275,7 +275,7 @@ convertToText(): Promise<string>
实例方法,将一个PasteData中的内容强制转换为文本内容,并使用Promise异步方式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
| 类型 | 说明 |
...
...
@@ -300,7 +300,7 @@ convertToText(callback: AsyncCallback<string>): void
实例方法,将一个PasteData中的内容强制转换为文本内容,并使用callback方式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -325,7 +325,7 @@ convertToText(callback: AsyncCallback<string>): void
在调用PasteData的接口前,需要先获取一个PasteData对象。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
### getPrimaryText
...
...
@@ -336,7 +336,7 @@ getPrimaryText(): string
获取首个条目的纯文本内容。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
...
...
@@ -358,7 +358,7 @@ getPrimaryHtml(): string
获取首个条目的HTML文本内容。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
| 类型 | 说明 |
...
...
@@ -380,7 +380,7 @@ getPrimaryWant(): Want
获取首个条目的Want对象内容。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
| 类型 | 说明 |
...
...
@@ -405,7 +405,7 @@ getPrimaryUri(): string
获取首个条目的URI文本内容。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
| 类型 | 说明 |
...
...
@@ -428,7 +428,7 @@ addTextRecord(text: string): void
剪贴板内容中添加的条目达到数量上限128后,后续的添加操作无效。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -451,7 +451,7 @@ addHtmlRecord(htmlText: string): void
剪贴板内容中添加的条目达到数量上限128后,后续的添加操作无效。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -475,7 +475,7 @@ addWantRecord(want: Want): void
剪贴板内容中添加的条目达到数量上限128后,后续的添加操作无效。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -502,7 +502,7 @@ addUriRecord(uri: string): void
剪贴板内容中添加的条目达到数量上限128后,后续的添加操作无效。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -525,7 +525,7 @@ addRecord(record: PasteDataRecord): void
剪贴板内容中添加的条目达到数量上限128后,后续的添加操作无效。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -550,7 +550,7 @@ getMimeTypes(): Array<string>
获取剪贴板中
[
PasteDataProperty
](
#pastedataproperty7
)
的mimeTypes列表,当剪贴板内容为空时,返回列表为空。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
| 类型 | 说明 |
...
...
@@ -571,7 +571,7 @@ getPrimaryMimeType(): string
获取首个条目的数据类型。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
| 类型 | 说明 |
...
...
@@ -592,7 +592,7 @@ getProperty(): PasteDataProperty
获取属性描述对象。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
| 类型 | 说明 |
...
...
@@ -613,7 +613,7 @@ getRecordAt(index: number): PasteDataRecord
获取指定下标的条目。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -639,7 +639,7 @@ getRecordCount(): number
获取剪贴板中条目的个数。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
| 类型 | 说明 |
...
...
@@ -660,7 +660,7 @@ getTag(): string
获取用户自定义的标签内容,如果没有设置用户自定义的标签内容将返回空。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
| 类型 | 说明 |
...
...
@@ -681,7 +681,7 @@ hasMimeType(mimeType: string): boolean
检查内容中是否有指定的数据类型。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -707,7 +707,7 @@ removeRecordAt(index: number): boolean
移除指定下标的条目。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -733,7 +733,7 @@ replaceRecordAt(index: number, record: PasteDataRecord): boolean
替换指定下标的条目。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -761,7 +761,7 @@ getSystemPasteboard(): SystemPasteboard
获取系统剪切板。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
| 类型 | 说明 |
...
...
@@ -790,7 +790,7 @@ setPasteData(pasteData:PasteData, callback:AsyncCallback<void>): void
将数据写入系统剪切板,并使用callback方式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -819,7 +819,7 @@ setPasteData(pasteData:PasteData): Promise<void>
将数据写入系统剪切板,并使用Promise异步方式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 说明 |
...
...
@@ -850,7 +850,7 @@ getPasteData( callback:AsyncCallback<PasteData>): void
读取系统剪切板内容,并使用callback方式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -877,7 +877,7 @@ getPasteData(): Promise<PasteData>
读取系统剪切板内容,并使用Promise异步方式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
| 类型 | 说明 |
...
...
@@ -902,7 +902,7 @@ on(type: 'update', callback: () =>void ): void
订阅系统剪贴板内容变化事件,当系统剪贴板中内容变化时触发用户程序的回调。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -927,7 +927,7 @@ off(type: 'update', callback?: () =>void ): void
取消订阅系统剪贴板内容变化事件。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -948,7 +948,7 @@ hasPasteData(callback: AsyncCallback<boolean>): void
判断系统剪切板中是否有内容,并使用callback异步方式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -974,7 +974,7 @@ hasPasteData(): Promise<boolean>
判断系统剪切板中是否有内容,并使用Promise异步方式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
| 类型 | 说明 |
...
...
@@ -998,7 +998,7 @@ clear(callback: AsyncCallback<void>): void
清空系统剪切板内容,并使用callback异步方式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**参数**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -1024,7 +1024,7 @@ clear(): Promise<void>
清空系统剪切板内容,并使用Promise异步方式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Pasteboard
**系统能力**
: SystemCapability.Misc
S
ervices.Pasteboard
**返回值**
...
...
zh-cn/application-dev/reference/apis/js-apis-system-time.md
浏览文件 @
180fb3a3
...
...
@@ -51,7 +51,7 @@ setTime(time : number) : Promise<void>
**需要权限:**
ohos.permission.SET_TIME
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -82,7 +82,7 @@ getCurrentTime(isNano?: boolean, callback: AsyncCallback<number>): void
获取自 Unix 纪元以来经过的时间,使用callback形式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -109,7 +109,7 @@ getCurrentTime(isNano?: boolean): Promise<number>
获取自 Unix 纪元以来经过的时间,使用Promise形式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -138,7 +138,7 @@ getRealActiveTime(isNano?: boolean, callback: AsyncCallback<number>): void
获取自系统启动以来经过的时间,不包括深度睡眠时间,使用callback形式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -165,7 +165,7 @@ getRealActiveTime(isNano?: boolean): Promise<number>
获取自系统启动以来经过的时间,不包括深度睡眠时间,使用Promise形式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -194,7 +194,7 @@ getRealTime(callback: AsyncCallback<number>): void
获取自系统启动以来经过的时间,包括深度睡眠时间,使用callback形式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -221,7 +221,7 @@ getRealTime(): Promise<number>
获取自系统启动以来经过的时间,包括深度睡眠时间,使用Promise形式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -252,7 +252,7 @@ setDate(date: Date, callback: AsyncCallback<void>): void
**需要权限:**
ohos.permission.SET_TIME
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -282,7 +282,7 @@ setDate(date: Date): Promise<void>
**需要权限:**
ohos.permission.SET_TIME
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -312,7 +312,7 @@ getDate(callback: AsyncCallback<Date>): void
获取当前系统日期,使用callback形式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -338,7 +338,7 @@ getDate(): Promise<Date>
获取当前系统日期,使用Promise形式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
返回值:
| 类型 | 说明 |
...
...
@@ -364,7 +364,7 @@ setTimezone(timezone: string, callback: AsyncCallback<void>): void
**需要权限:**
ohos.permission.SET_TIME_ZONE
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -393,7 +393,7 @@ setTimezone(timezone: string): Promise<void>
**需要权限:**
ohos.permission.SET_TIME_ZONE
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -422,7 +422,7 @@ getTimezone(callback: AsyncCallback<string>): void
获取系统时区,使用callback形式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -448,7 +448,7 @@ getTimezone(): Promise<string>
获取系统时区,使用Promise形式返回结果。
**系统能力**
: SystemCapability.Misc
s
ervices.Time
**系统能力**
: SystemCapability.Misc
S
ervices.Time
-
返回值:
| 类型 | 说明 |
...
...
zh-cn/application-dev/reference/apis/js-apis-wallpaper.md
浏览文件 @
180fb3a3
...
...
@@ -16,7 +16,7 @@ import wallpaper from '@ohos.wallpaper';
定义壁纸类型。
**系统能力**
: 以下各项对应的系统能力均为SystemCapability.Misc
s
ervices.Wallpaper。
**系统能力**
: 以下各项对应的系统能力均为SystemCapability.Misc
S
ervices.Wallpaper。
| 名称 | 说明 |
| -------- | -------- |
...
...
@@ -30,7 +30,7 @@ getColors(wallpaperType: WallpaperType, callback: AsyncCallback<Array<Rgba
获取指定类型壁纸的主要颜色信息。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -57,7 +57,7 @@ getColors(wallpaperType: WallpaperType): Promise<Array<RgbaColor>>
获取指定类型壁纸的主要颜色信息。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -86,7 +86,7 @@ getId(wallpaperType: WallpaperType, callback: AsyncCallback<number>): void
获取指定类型壁纸的ID。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -113,7 +113,7 @@ getId(wallpaperType: WallpaperType): Promise<number>
获取指定类型壁纸的ID。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
...
...
@@ -143,7 +143,7 @@ getMinHeight(callback: AsyncCallback<number>): void
获取壁纸的最小高度值。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -169,7 +169,7 @@ getMinHeight(): Promise<number>
获取壁纸的最小高度值。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
返回值:
...
...
@@ -194,7 +194,7 @@ getMinWidth(callback: AsyncCallback<number>): void
获取壁纸的最小宽度值。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
...
...
@@ -221,7 +221,7 @@ getMinWidth(): Promise<number>
获取壁纸的最小宽度值。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
返回值:
| 类型 | 说明 |
...
...
@@ -245,7 +245,7 @@ isChangePermitted(callback: AsyncCallback<boolean>): void
是否允许应用改变当前用户的壁纸。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -271,7 +271,7 @@ isChangePermitted(): Promise<boolean>
是否允许应用改变当前用户的壁纸。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
返回值:
| 类型 | 说明 |
...
...
@@ -295,7 +295,7 @@ isOperationAllowed(callback: AsyncCallback<boolean>): void
是否允许用户设置壁纸。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -321,7 +321,7 @@ isOperationAllowed(): Promise<boolean>
是否允许用户设置壁纸。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
返回值:
| 类型 | 说明 |
...
...
@@ -347,7 +347,7 @@ reset(wallpaperType: WallpaperType, callback: AsyncCallback<void>): void
**需要权限**
:ohos.permission.SET_WALLPAPER
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -376,7 +376,7 @@ reset(wallpaperType: WallpaperType): Promise<void>
**需要权限:**
ohos.permission.SET_WALLPAPER
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -407,7 +407,7 @@ setWallpaper(source: string | image.PixelMap, wallpaperType: WallpaperType, call
**需要权限:**
ohos.permission.SET_WALLPAPER
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -460,7 +460,7 @@ setWallpaper(source: string | image.PixelMap, wallpaperType: WallpaperType): Pro
**需要权限**
:ohos.permission.SET_WALLPAPER
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -511,7 +511,7 @@ getFile(wallpaperType: WallpaperType, callback: AsyncCallback<number>): vo
**需要权限**
:ohos.permission.SET_WALLPAPER、ohos.permission.READ_USER_STORAGE
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -538,7 +538,7 @@ getFile(wallpaperType: WallpaperType): Promise<number>
**需要权限:**
ohos.permission.SET_WALLPAPER、ohos.permission.READ_USER_STORAGE
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -567,7 +567,7 @@ on(type: 'colorChange', callback: (colors: Array<RgbaColor>, wallpaperType
订阅壁纸颜色变化结果上报事件。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -591,7 +591,7 @@ off(type: 'colorChange', callback?: (colors: Array<RgbaColor>, wallpaperTy
取消订阅壁纸颜色变化结果上报事件。
**系统能力**
: SystemCapability.Misc
s
ervices.Wallpaper
**系统能力**
: SystemCapability.Misc
S
ervices.Wallpaper
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -615,7 +615,7 @@ off(type: 'colorChange', callback?: (colors: Array<RgbaColor>, wallpaperTy
## RgbaColor
**系统能力**
: 以下各项对应的系统能力均为SystemCapability.Misc
s
ervices.Wallpaper。
**系统能力**
: 以下各项对应的系统能力均为SystemCapability.Misc
S
ervices.Wallpaper。
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录