Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
e39dc96d
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看板
未验证
提交
e39dc96d
编写于
6月 07, 2022
作者:
O
openharmony_ci
提交者:
Gitee
6月 07, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5033 修改不规范标记对
Merge pull request !5033 from zengyawen/OpenHarmony-3.1-Release
上级
562222a5
c76fbded
变更
39
显示空白变更内容
内联
并排
Showing
39 changed file
with
1535 addition
and
1535 deletion
+1535
-1535
zh-cn/release-notes/api-change/v2.2-beta2/js-apidiff-v2.2-beta2.md
...ease-notes/api-change/v2.2-beta2/js-apidiff-v2.2-beta2.md
+104
-104
zh-cn/release-notes/api-change/v3.0-LTS/js-apidiff-v3.0-lts.md
.../release-notes/api-change/v3.0-LTS/js-apidiff-v3.0-lts.md
+177
-177
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ability.md
...lease-notes/api-change/v3.1-Release/js-apidiff-ability.md
+42
-42
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ability_api-9-canary.md
...pi-change/v3.1-Release/js-apidiff-ability_api-9-canary.md
+44
-44
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md
...notes/api-change/v3.1-Release/js-apidiff-accessibility.md
+17
-17
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-account.md
...lease-notes/api-change/v3.1-Release/js-apidiff-account.md
+46
-46
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-battery.md
...lease-notes/api-change/v3.1-Release/js-apidiff-battery.md
+5
-5
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md
...elease-notes/api-change/v3.1-Release/js-apidiff-bundle.md
+12
-12
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-bundle_api-9-canary.md
...api-change/v3.1-Release/js-apidiff-bundle_api-9-canary.md
+4
-4
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md
...e-notes/api-change/v3.1-Release/js-apidiff-communicate.md
+133
-133
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-complier-and-runtime.md
...pi-change/v3.1-Release/js-apidiff-complier-and-runtime.md
+65
-65
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md
...n/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md
+32
-32
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md
...es/api-change/v3.1-Release/js-apidiff-distributed-data.md
+44
-44
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data_api-9-canary.md
.../v3.1-Release/js-apidiff-distributed-data_api-9-canary.md
+13
-13
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-hardware.md
...pi-change/v3.1-Release/js-apidiff-distributed-hardware.md
+3
-3
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md
...-change/v3.1-Release/js-apidiff-event-and-notification.md
+10
-10
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification_api-9-canary.md
...Release/js-apidiff-event-and-notification_api-9-canary.md
+1
-1
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md
...tes/api-change/v3.1-Release/js-apidiff-file-management.md
+47
-47
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-file-management_api-9-canary.md
...e/v3.1-Release/js-apidiff-file-management_api-9-canary.md
+4
-4
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md
...e-notes/api-change/v3.1-Release/js-apidiff-geolocation.md
+29
-29
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-global.md
...elease-notes/api-change/v3.1-Release/js-apidiff-global.md
+17
-17
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-misc.md
.../release-notes/api-change/v3.1-Release/js-apidiff-misc.md
+47
-47
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-misc_api-9-canary.md
...s/api-change/v3.1-Release/js-apidiff-misc_api-9-canary.md
+25
-25
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md
...s/api-change/v3.1-Release/js-apidiff-multi-modal-input.md
+4
-4
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md
...se-notes/api-change/v3.1-Release/js-apidiff-multimedia.md
+115
-115
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multimedia_api-9-canary.md
...change/v3.1-Release/js-apidiff-multimedia_api-9-canary.md
+66
-66
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-network.md
...lease-notes/api-change/v3.1-Release/js-apidiff-network.md
+67
-67
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md
.../api-change/v3.1-Release/js-apidiff-resource-scheduler.md
+17
-17
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler_api-9-canary.md
...3.1-Release/js-apidiff-resource-scheduler_api-9-canary.md
+6
-6
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-security.md
...ease-notes/api-change/v3.1-Release/js-apidiff-security.md
+20
-20
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md
...elease-notes/api-change/v3.1-Release/js-apidiff-sensor.md
+15
-15
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-settings.md
...ease-notes/api-change/v3.1-Release/js-apidiff-settings.md
+7
-7
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md
...ase-notes/api-change/v3.1-Release/js-apidiff-telephony.md
+36
-36
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md
...lease-notes/api-change/v3.1-Release/js-apidiff-unitest.md
+25
-25
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-usb.md
...n/release-notes/api-change/v3.1-Release/js-apidiff-usb.md
+16
-16
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md
...api-change/v3.1-Release/js-apidiff-user-authentication.md
+1
-1
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-window.md
...elease-notes/api-change/v3.1-Release/js-apidiff-window.md
+37
-37
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-window_api-9-canary.md
...api-change/v3.1-Release/js-apidiff-window_api-9-canary.md
+4
-4
zh-cn/release-notes/api-change/v3.1-beta/js-apidiff-v3.1-beta.md
...elease-notes/api-change/v3.1-beta/js-apidiff-v3.1-beta.md
+178
-178
未找到文件。
zh-cn/release-notes/api-change/v2.2-beta2/js-apidiff-v2.2-beta2.md
浏览文件 @
e39dc96d
...
...
@@ -4,67 +4,67 @@ OpenHarmony 2.2 Beta2相较于OpenHarmony 2.0 Canary版本的API变更如下:
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| 时间日期数字模块-Locale | constructor(locale: string, options?:options) | 新增 | - |
| 时间日期数字模块-Locale | toString(): string | 新增 | - |
| 时间日期数字模块-Locale | maximize(): Locale | 新增 | - |
| 时间日期数字模块-Locale | minimize(): Locale | 新增 | - |
| 时间日期数字模块-Locale | calendar | 新增 | - |
| 时间日期数字模块-Locale | caseFirst | 新增 | - |
| 时间日期数字模块-Locale | collation | 新增 | - |
| 时间日期数字模块-Locale | hourCycle | 新增 | - |
| 时间日期数字模块-Locale | numberingSystem | 新增 | - |
| 时间日期数字模块-Locale | numeric | 新增 | - |
| 时间日期数字模块-Locale | language | 新增 | - |
| 时间日期数字模块-Locale | script | 新增 | - |
| 时间日期数字模块-Locale | region | 新增 | - |
| 时间日期数字模块-Locale | baseName | 新增 | - |
| 时间日期数字模块-DateTimeFormat | constructor(locale: string, options?:options) | 新增 | - |
| 时间日期数字模块-DateTimeFormat | constructor(locale: string[], options?:options) | 新增 | - |
| 时间日期数字模块-DateTimeFormat | resolvedOptions(): DateTimeOptions | 新增 | - |
| 时间日期数字模块-DateTimeFormat | format(date: Date): string; | 新增 | - |
| 时间日期数字模块-DateTimeFormat | formatRange(fromDate: Date, toDate: Date): string; | 新增 | - |
| 时间日期数字模块-NumberFormat | constructor(locale: string, options?:options) | 新增 | - |
| 时间日期数字模块-NumberFormat | constructor(locale: string[], options?:options) | 新增 | - |
| 时间日期数字模块-NumberFormat | resolvedOptions(): NumberOptions | 新增 | - |
| 时间日期数字模块-NumberFormat | format(number: number): string; | 新增 | - |
| 时间日期数字模块-DateTimeOptions | locale | 新增 | - |
| 时间日期数字模块-DateTimeOptions | dateStyle | 新增 | - |
| 时间日期数字模块-DateTimeOptions | timeStyle | 新增 | - |
| 时间日期数字模块-DateTimeOptions | calendar | 新增 | - |
| 时间日期数字模块-DateTimeOptions | dayPeriod | 新增 | - |
| 时间日期数字模块-DateTimeOptions | numberingSystem | 新增 | - |
| 时间日期数字模块-DateTimeOptions | localeMatcher | 新增 | - |
| 时间日期数字模块-DateTimeOptions | timeZone | 新增 | - |
| 时间日期数字模块-DateTimeOptions | hour12 | 新增 | - |
| 时间日期数字模块-DateTimeOptions | hourCycle | 新增 | - |
| 时间日期数字模块-DateTimeOptions | formatMatcher | 新增 | - |
| 时间日期数字模块-DateTimeOptions | weekday | 新增 | - |
| 时间日期数字模块-DateTimeOptions | era | 新增 | - |
| 时间日期数字模块-DateTimeOptions | year | 新增 | - |
| 时间日期数字模块-DateTimeOptions | month | 新增 | - |
| 时间日期数字模块-DateTimeOptions | day | 新增 | - |
| 时间日期数字模块-DateTimeOptions | hour | 新增 | - |
| 时间日期数字模块-DateTimeOptions | minute | 新增 | - |
| 时间日期数字模块-DateTimeOptions | second | 新增 | - |
| 时间日期数字模块-DateTimeOptions | timeZoneName | 新增 | - |
| 时间日期数字模块-NumberOptions | locale | 新增 | - |
| 时间日期数字模块-NumberOptions | compactDisplay | 新增 | - |
| 时间日期数字模块-NumberOptions | currency | 新增 | - |
| 时间日期数字模块-NumberOptions | currencyDisplay | 新增 | - |
| 时间日期数字模块-NumberOptions | currencySign | 新增 | - |
| 时间日期数字模块-NumberOptions | localeMatcher | 新增 | - |
| 时间日期数字模块-NumberOptions | notation | 新增 | - |
| 时间日期数字模块-NumberOptions | numberingSystem | 新增 | - |
| 时间日期数字模块-NumberOptions | signDisplay | 新增 | - |
| 时间日期数字模块-NumberOptions | style | 新增 | - |
| 时间日期数字模块-NumberOptions | unit | 新增 | - |
| 时间日期数字模块-NumberOptions | unitDisplay | 新增 | - |
| 时间日期数字模块-NumberOptions | useGrouping | 新增 | - |
| 时间日期数字模块-NumberOptions | minimumIntegerDigits | 新增 | - |
| 时间日期数字模块-NumberOptions | minimumFractionDigits | 新增 | - |
| 时间日期数字模块-NumberOptions | maximumFractionDigits | 新增 | - |
| 时间日期数字模块-NumberOptions | minimumSignificantDigits | 新增 | - |
| 时间日期数字模块-NumberOptions | maximumSignificantDigits | 新增 | - |
| 时间日期数字模块-Locale | constructor(locale: string, options?:options) | 新增 | - |
| 时间日期数字模块-Locale | toString(): string | 新增 | - |
| 时间日期数字模块-Locale | maximize(): Locale | 新增 | - |
| 时间日期数字模块-Locale | minimize(): Locale | 新增 | - |
| 时间日期数字模块-Locale | calendar | 新增 | - |
| 时间日期数字模块-Locale | caseFirst | 新增 | - |
| 时间日期数字模块-Locale | collation | 新增 | - |
| 时间日期数字模块-Locale | hourCycle | 新增 | - |
| 时间日期数字模块-Locale | numberingSystem | 新增 | - |
| 时间日期数字模块-Locale | numeric | 新增 | - |
| 时间日期数字模块-Locale | language | 新增 | - |
| 时间日期数字模块-Locale | script | 新增 | - |
| 时间日期数字模块-Locale | region | 新增 | - |
| 时间日期数字模块-Locale | baseName | 新增 | - |
| 时间日期数字模块-DateTimeFormat | constructor(locale: string, options?:options) | 新增 | - |
| 时间日期数字模块-DateTimeFormat | constructor(locale: string[], options?:options) | 新增 | - |
| 时间日期数字模块-DateTimeFormat | resolvedOptions(): DateTimeOptions | 新增 | - |
| 时间日期数字模块-DateTimeFormat | format(date: Date): string; | 新增 | - |
| 时间日期数字模块-DateTimeFormat | formatRange(fromDate: Date, toDate: Date): string; | 新增 | - |
| 时间日期数字模块-NumberFormat | constructor(locale: string, options?:options) | 新增 | - |
| 时间日期数字模块-NumberFormat | constructor(locale: string[], options?:options) | 新增 | - |
| 时间日期数字模块-NumberFormat | resolvedOptions(): NumberOptions | 新增 | - |
| 时间日期数字模块-NumberFormat | format(number: number): string; | 新增 | - |
| 时间日期数字模块-DateTimeOptions | locale | 新增 | - |
| 时间日期数字模块-DateTimeOptions | dateStyle | 新增 | - |
| 时间日期数字模块-DateTimeOptions | timeStyle | 新增 | - |
| 时间日期数字模块-DateTimeOptions | calendar | 新增 | - |
| 时间日期数字模块-DateTimeOptions | dayPeriod | 新增 | - |
| 时间日期数字模块-DateTimeOptions | numberingSystem | 新增 | - |
| 时间日期数字模块-DateTimeOptions | localeMatcher | 新增 | - |
| 时间日期数字模块-DateTimeOptions | timeZone | 新增 | - |
| 时间日期数字模块-DateTimeOptions | hour12 | 新增 | - |
| 时间日期数字模块-DateTimeOptions | hourCycle | 新增 | - |
| 时间日期数字模块-DateTimeOptions | formatMatcher | 新增 | - |
| 时间日期数字模块-DateTimeOptions | weekday | 新增 | - |
| 时间日期数字模块-DateTimeOptions | era | 新增 | - |
| 时间日期数字模块-DateTimeOptions | year | 新增 | - |
| 时间日期数字模块-DateTimeOptions | month | 新增 | - |
| 时间日期数字模块-DateTimeOptions | day | 新增 | - |
| 时间日期数字模块-DateTimeOptions | hour | 新增 | - |
| 时间日期数字模块-DateTimeOptions | minute | 新增 | - |
| 时间日期数字模块-DateTimeOptions | second | 新增 | - |
| 时间日期数字模块-DateTimeOptions | timeZoneName | 新增 | - |
| 时间日期数字模块-NumberOptions | locale | 新增 | - |
| 时间日期数字模块-NumberOptions | compactDisplay | 新增 | - |
| 时间日期数字模块-NumberOptions | currency | 新增 | - |
| 时间日期数字模块-NumberOptions | currencyDisplay | 新增 | - |
| 时间日期数字模块-NumberOptions | currencySign | 新增 | - |
| 时间日期数字模块-NumberOptions | localeMatcher | 新增 | - |
| 时间日期数字模块-NumberOptions | notation | 新增 | - |
| 时间日期数字模块-NumberOptions | numberingSystem | 新增 | - |
| 时间日期数字模块-NumberOptions | signDisplay | 新增 | - |
| 时间日期数字模块-NumberOptions | style | 新增 | - |
| 时间日期数字模块-NumberOptions | unit | 新增 | - |
| 时间日期数字模块-NumberOptions | unitDisplay | 新增 | - |
| 时间日期数字模块-NumberOptions | useGrouping | 新增 | - |
| 时间日期数字模块-NumberOptions | minimumIntegerDigits | 新增 | - |
| 时间日期数字模块-NumberOptions | minimumFractionDigits | 新增 | - |
| 时间日期数字模块-NumberOptions | maximumFractionDigits | 新增 | - |
| 时间日期数字模块-NumberOptions | minimumSignificantDigits | 新增 | - |
| 时间日期数字模块-NumberOptions | maximumSignificantDigits | 新增 | - |
|文件存储- system.file|mkdir|新增|-|
|文件存储- system.file|rmdir|新增|-|
|文件存储- system.file|get|新增|-|
...
...
@@ -140,20 +140,20 @@ OpenHarmony 2.2 Beta2相较于OpenHarmony 2.0 Canary版本的API变更如下:
|设备管理-DeviceManager|ExchangeMedium|新增|-|
|设备管理-DeviceManager|ExchangeFreq|新增|-|
|设备管理-DeviceManager|SubscribeCap|新增|-|
|设备管理-DeviceManager|createDeviceManager(bundleName: string, callback: AsyncCallback
<DeviceManager>
): void|新增|-|
|设备管理-DeviceManager|createDeviceManager(bundleName: string, callback: AsyncCallback
\
<
DeviceManager>): void|新增|-|
|设备管理-DeviceManager|release(): void|新增|-|
|设备管理-DeviceManager|getTrustedDeviceListSync(): Array
<DeviceInfo>
|新增|-|
|设备管理-DeviceManager|getTrustedDeviceListSync(): Array
\
<
DeviceInfo>|新增|-|
|设备管理-DeviceManager|startDeviceDiscovery(subscribeInfo: SubscribeInfo): void|新增|-|
|设备管理-DeviceManager|stopDeviceDiscovery(subscribeId: number): void|新增|-|
|设备管理-DeviceManager|authenticateDevice(deviceInfo: DeviceInfo): void|新增|-|
|设备管理-DeviceManager|on(type: 'deviceStateChange', callback: Callback
<
{
action:
DeviceStateChangeAction
,
device:
DeviceInfo
}
>
): void|新增|-|
|设备管理-DeviceManager|off(type: 'deviceStateChange', callback?: Callback
<
{
action:
DeviceStateChangeAction
,
device:
DeviceInfo
}
>
): void|新增|-|
|设备管理-DeviceManager|on(type: 'deviceFound', callback: Callback
<
{
subscribeId:
number
,
device:
DeviceInfo
}
>
): void|新增|-|
|设备管理-DeviceManager|off(type: 'deviceFound', callback?: Callback
<
{
subscribeId:
number
,
device:
DeviceInfo
}
>
): void|新增|-|
|设备管理-DeviceManager|on(type: 'discoverFail', callback: Callback
<
{
subscribeId:
number
,
reason:
number
}
>
): void|新增|-|
|设备管理-DeviceManager|off(type: 'discoverFail', callback?: Callback
<
{
subscribeId:
number
,
reason:
number
}
>
): void|新增|-|
|设备管理-DeviceManager|on(type: 'authResult', callback: Callback
<
{
deviceId:
string
,
status:
number
,
reason:
number
}
>
): void|新增|-|
|设备管理-DeviceManager|off(type: 'authResult', callback?: Callback
<
{
deviceId:
string
,
status:
number
,
reason:
number
}
>
): void|新增|-|
|设备管理-DeviceManager|on(type: 'deviceStateChange', callback: Callback
\
<
{ action: DeviceStateChangeAction, device: DeviceInfo }>): void|新增|-|
|设备管理-DeviceManager|off(type: 'deviceStateChange', callback?: Callback
\
<
{ action: DeviceStateChangeAction, device: DeviceInfo }>): void|新增|-|
|设备管理-DeviceManager|on(type: 'deviceFound', callback: Callback
\
<
{ subscribeId: number, device: DeviceInfo }>): void|新增|-|
|设备管理-DeviceManager|off(type: 'deviceFound', callback?: Callback
\
<
{ subscribeId: number, device: DeviceInfo }>): void|新增|-|
|设备管理-DeviceManager|on(type: 'discoverFail', callback: Callback
\
<
{ subscribeId: number, reason: number }>): void|新增|-|
|设备管理-DeviceManager|off(type: 'discoverFail', callback?: Callback
\
<
{ subscribeId: number, reason: number }>): void|新增|-|
|设备管理-DeviceManager|on(type: 'authResult', callback: Callback
\
<
{ deviceId: string, status: number, reason: number }>): void|新增|-|
|设备管理-DeviceManager|off(type: 'authResult', callback?: Callback
\
<
{ deviceId: string, status: number, reason: number }>): void|新增|-|
|设备管理-DeviceManager|on(type: 'serviceDie', callback: () => void): void|新增|-|
|设备管理-DeviceManager|off(type: 'serviceDie', callback?: () => void): void|新增|-|
|播放录制|createAudioPlayer(): AudioPlayer|新增|-|
...
...
@@ -171,7 +171,7 @@ OpenHarmony 2.2 Beta2相较于OpenHarmony 2.0 Canary版本的API变更如下:
|播放录制|readonly duration: number|新增|-|
|播放录制|readonly state: AudioState|新增|-|
|播放录制|on(type: 'play' / 'pause' / 'stop' / 'reset' / 'dataLoad' / 'finish' / 'volumeChange', callback: () => void): void|新增|-|
|播放录制|on(type: 'timeUpdate', callback: Callback
<number>
): void|新增|-|
|播放录制|on(type: 'timeUpdate', callback: Callback
\
<
number>): void|新增|-|
|播放录制|on(type: 'error', callback: ErrorCallback): void|新增|-|
|音频管理|getAudioManager(): AudioManager|新增|-|
|音频管理|AudioVolumeType|新增|-|
...
...
@@ -195,38 +195,38 @@ OpenHarmony 2.2 Beta2相较于OpenHarmony 2.0 Canary版本的API变更如下:
|音频管理|RINGER_MODE_NORMAL |新增|-|
|音频管理|RINGER_MODE_SILENT|新增|-|
|音频管理|RINGER_MODE_VIBRATE |新增|-|
|音频管理|setVolume(audioType: AudioVolumeType, volume: number,callback: AsyncCallback
<void>
): void|新增|-|
|音频管理|setVolume(audioType: AudioVolumeType, volume: number): Promise
<void>
|新增|-|
|音频管理|getVolume(audioType: AudioVolumeType, callback: AsyncCallback
<number>
): void|新增|-|
|音频管理|getVolume(audioType: AudioVolumeType): Promise
<number>
|新增|-|
|音频管理|getMinVolume(audioType: AudioVolumeType, callback: AsyncCallback
<number>
): void|新增|-|
|音频管理|getMinVolume(audioType: AudioVolumeType): Promise
<number>
|新增|-|
|音频管理|getMaxVolume(audioType: AudioVolumeType, callback: AsyncCallback
<number>
): void|新增|-|
|音频管理|getMaxVolume(audioType: AudioVolumeType): Promise
<number>
|新增|-|
|音频管理|getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback
<AudioDeviceDescriptors>
): void|新增|-|
|音频管理|getDevices(deviceFlag: DeviceFlag): Promise
<AudioDeviceDescriptors>
|新增|-|
|音频管理|getRingerMode(callback: AsyncCallback
<AudioRingMode>
): void|新增|-|
|音频管理|getRingerMode(): Promise
<AudioRingMode>
|新增|-|
|音频管理|setRingerMode(mode: AudioRingMode, callback: AsyncCallback
<void>
): void|新增|-|
|音频管理|setRingerMode(mode: AudioRingMode): Promise
<void>
|新增|-|
|音频管理|isMute(volumeType: AudioVolumeType, callback: AsyncCallback
<boolean>
): void|新增|-|
|音频管理|isMute(volumeType: AudioVolumeType): Promise
<boolean>
|新增|-|
|音频管理|isActive(volumeType: AudioVolumeType, callback: AsyncCallback
<boolean>
): void|新增|-|
|音频管理|isActive(volumeType: AudioVolumeType): Promise
<boolean>
|新增|-|
|音频管理|isMicrophoneMute(callback: AsyncCallback
<boolean>
): void|新增|-|
|音频管理|isMicrophoneMute(): Promise
<boolean>
|新增|-|
|音频管理|mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback
<void>
) : void|新增|-|
|音频管理|mute(volumeType: AudioVolumeType, mute: boolean): Promise
<void>
|新增|-|
|音频管理|setMicrophoneMute(mute: boolean, callback: AsyncCallback
<void>
): void|新增|-|
|音频管理|setMicrophoneMute(mute: boolean): Promise
<void>
|新增|-|
|音频管理|isDeviceActive(deviceType: DeviceType, callback: AsyncCallback
<boolean>
): void|新增|-|
|音频管理|isDeviceActive(deviceType: DeviceType): Promise
<boolean>
|新增|-|
|音频管理|setDeviceActive(deviceType: DeviceType, active: boolean, callback: AsyncCallback
<boolean>
): void|新增|-|
|音频管理|setDeviceActive(deviceType: DeviceType, active: boolean): Promise
<boolean>
|新增|-|
|音频管理|getAudioParameter(key: string, callback: AsyncCallback
<string>
): void|新增|-|
|音频管理|getAudioParameter(key: string): Promise
<string>
|新增|-|
|音频管理|setAudioParameter(key: string, value: string, callback: AsyncCallback
<void>
): void|新增|-|
|音频管理|setAudioParameter(key: string, value: string): Promise
<void>
|新增|-|
|音频管理|setVolume(audioType: AudioVolumeType, volume: number,callback: AsyncCallback
\
<
void>): void|新增|-|
|音频管理|setVolume(audioType: AudioVolumeType, volume: number): Promise
\
<
void>|新增|-|
|音频管理|getVolume(audioType: AudioVolumeType, callback: AsyncCallback
\
<
number>): void|新增|-|
|音频管理|getVolume(audioType: AudioVolumeType): Promise
\
<
number>|新增|-|
|音频管理|getMinVolume(audioType: AudioVolumeType, callback: AsyncCallback
\
<
number>): void|新增|-|
|音频管理|getMinVolume(audioType: AudioVolumeType): Promise
\
<
number>|新增|-|
|音频管理|getMaxVolume(audioType: AudioVolumeType, callback: AsyncCallback
\
<
number>): void|新增|-|
|音频管理|getMaxVolume(audioType: AudioVolumeType): Promise
\
<
number>|新增|-|
|音频管理|getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback
\
<
AudioDeviceDescriptors>): void|新增|-|
|音频管理|getDevices(deviceFlag: DeviceFlag): Promise
\
<
AudioDeviceDescriptors>|新增|-|
|音频管理|getRingerMode(callback: AsyncCallback
\
<
AudioRingMode>): void|新增|-|
|音频管理|getRingerMode(): Promise
\
<
AudioRingMode>|新增|-|
|音频管理|setRingerMode(mode: AudioRingMode, callback: AsyncCallback
\
<
void>): void|新增|-|
|音频管理|setRingerMode(mode: AudioRingMode): Promise
\
<
void>|新增|-|
|音频管理|isMute(volumeType: AudioVolumeType, callback: AsyncCallback
\
<
boolean>): void|新增|-|
|音频管理|isMute(volumeType: AudioVolumeType): Promise
\
<
boolean>|新增|-|
|音频管理|isActive(volumeType: AudioVolumeType, callback: AsyncCallback
\
<
boolean>): void|新增|-|
|音频管理|isActive(volumeType: AudioVolumeType): Promise
\
<
boolean>|新增|-|
|音频管理|isMicrophoneMute(callback: AsyncCallback
\
<
boolean>): void|新增|-|
|音频管理|isMicrophoneMute(): Promise
\
<
boolean>|新增|-|
|音频管理|mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback
\
<
void>) : void|新增|-|
|音频管理|mute(volumeType: AudioVolumeType, mute: boolean): Promise
\
<
void>|新增|-|
|音频管理|setMicrophoneMute(mute: boolean, callback: AsyncCallback
\
<
void>): void|新增|-|
|音频管理|setMicrophoneMute(mute: boolean): Promise
\
<
void>|新增|-|
|音频管理|isDeviceActive(deviceType: DeviceType, callback: AsyncCallback
\
<
boolean>): void|新增|-|
|音频管理|isDeviceActive(deviceType: DeviceType): Promise
\
<
boolean>|新增|-|
|音频管理|setDeviceActive(deviceType: DeviceType, active: boolean, callback: AsyncCallback
\
<
boolean>): void|新增|-|
|音频管理|setDeviceActive(deviceType: DeviceType, active: boolean): Promise
\
<
boolean>|新增|-|
|音频管理|getAudioParameter(key: string, callback: AsyncCallback
\
<
string>): void|新增|-|
|音频管理|getAudioParameter(key: string): Promise
\
<
string>|新增|-|
|音频管理|setAudioParameter(key: string, value: string, callback: AsyncCallback
\
<
void>): void|新增|-|
|音频管理|setAudioParameter(key: string, value: string): Promise
\
<
void>|新增|-|
|音频管理|AudioDeviceDescriptor|新增|-|
|音频管理|readonly deviceRole: DeviceRole|新增|-|
|音频管理|readonly deviceType: DeviceType|新增|-|
...
...
zh-cn/release-notes/api-change/v3.0-LTS/js-apidiff-v3.0-lts.md
浏览文件 @
e39dc96d
...
...
@@ -39,17 +39,17 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|语言编译器运行时-URL|new URSearchParams(iterable)|新增|-|
|语言编译器运行时-URL|append(name: string, value: string): void;|新增|-|
|语言编译器运行时-URL|delete(name: string): void;|新增|-|
|语言编译器运行时-URL|entries(): IterableIterator
<
[
string
,
string
]
>
;|新增|-|
|语言编译器运行时-URL|entries(): IterableIterator
\
<
[string, string]>;|新增|-|
|语言编译器运行时-URL|forEach(callbackfn: (value: string, key: string, parent: this) => void, thisArg?: any,): void;|新增|-|
|语言编译器运行时-URL|get(name: string): string / null;|新增|-|
|语言编译器运行时-URL|getAll(name: string): string[];|新增|-|
|语言编译器运行时-URL|has(name: string): boolean;|新增|-|
|语言编译器运行时-URL|keys(): IterableIterator
<string>
;|新增|-|
|语言编译器运行时-URL|keys(): IterableIterator
\
<
string>;|新增|-|
|语言编译器运行时-URL|set(name: string, value: string): void;|新增|-|
|语言编译器运行时-URL|sort():void;|新增|-|
|语言编译器运行时-URL|toString():string|新增|-|
|语言编译器运行时-URL|values(): IterableIterator
<string>
;|新增|-|
|语言编译器运行时-URL|URSearchParams
[
Symbol.iterator
](
)|新增|-|
|语言编译器运行时-URL|values(): IterableIterator
\
<
string>;|新增|-|
|语言编译器运行时-URL|URSearchParams
\
[
Symbol.iterator]()|新增|-|
|语言编译器运行时-URL|hash: string;|新增|-|
|语言编译器运行时-URL|host: string;|新增|-|
|语言编译器运行时-URL|hostname: string;|新增|-|
...
...
@@ -66,12 +66,12 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|语言编译器运行时-ChildProcess|readonly ppid: number;|新增|-|
|语言编译器运行时-ChildProcess|readonly exitCode: number;|新增|-|
|语言编译器运行时-ChildProcess|readonly killed: boolean;|新增|-|
|语言编译器运行时-ChildProcess|wait(): Promise
<number>
;|新增|-|
|语言编译器运行时-ChildProcess|getOutput(): Promise
<Uint8Array>
;|新增|-|
|语言编译器运行时-ChildProcess|getErrorOutput(): Promise
<Uint8Array>
;|新增|-|
|语言编译器运行时-ChildProcess|wait(): Promise
\
<
number>;|新增|-|
|语言编译器运行时-ChildProcess|getOutput(): Promise
\
<
Uint8Array>;|新增|-|
|语言编译器运行时-ChildProcess|getErrorOutput(): Promise
\
<
Uint8Array>;|新增|-|
|语言编译器运行时-ChildProcess|close(): void;|新增|-|
|语言编译器运行时-ChildProcess|kill(signal: number): void;|新增|-|
|语言编译器运行时-process|runCmd(command: string,options?: { timeout : number, killSignal : number
/
string, maxBuffer : number }): ChildProcess;|新增|-|
|语言编译器运行时-process|runCmd(command: string,options?: { timeout : number, killSignal : number string, maxBuffer : number }): ChildProcess;|新增|-|
|语言编译器运行时-process|getPid(): number;|新增|-|
|语言编译器运行时-process|getPpid(): number;|新增|-|
|语言编译器运行时-process|abort(): void;|新增|-|
...
...
@@ -86,35 +86,35 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|语言编译器运行时-process|uptime(): number;|新增|-|
|语言编译器运行时-process|getGroups(): number[];|新增|-|
|语言编译器运行时-process|kill(signal?: number, pid?: number): boolean;|新增|-|
|升级服务子系统-Updater|checkNewVersion(): Promise
<NewVersionInfo>
;|新增| -|
|升级服务子系统-Updater|rebootAndCleanUserData(callback: AsyncCallback
<number>
): void;|新增| -|
|升级服务子系统-Updater|rebootAndCleanCache(): Promise
<number>
;|新增| -|
|升级服务子系统-Updater|
function
getUpdaterFromOther(device: string, updateType?: UpdateTypes): Updater;|新增| -|
|升级服务子系统-Updater|checkNewVersion(): Promise
\
<
NewVersionInfo>;|新增| -|
|升级服务子系统-Updater|rebootAndCleanUserData(callback: AsyncCallback
\
<
number>): void;|新增| -|
|升级服务子系统-Updater|rebootAndCleanCache(): Promise
\
<
number>;|新增| -|
|升级服务子系统-Updater|getUpdaterFromOther(device: string, updateType?: UpdateTypes): Updater;|新增| -|
|升级服务子系统-Updater|cancel(): void;|新增| -|
|升级服务子系统-Updater|upgrade(): void;|新增| -|
|升级服务子系统-Updater|off(eventType: 'downloadProgress', callback?: UpdateProgressCallback): void;|新增| -|
|升级服务子系统-Updater|getUpdatePolicy(callback: AsyncCallback
<UpdatePolicy>
): void;|新增| -|
|升级服务子系统-Updater|
function
getUpdaterForOther(device: string, updateType?: UpdateTypes): Updater;|新增| -|
|升级服务子系统-Updater|setUpdatePolicy(policy: UpdatePolicy, callback: AsyncCallback
<number>
): void;|新增| -|
|升级服务子系统-Updater|getNewVersionInfo(): Promise
<NewVersionInfo>
;|新增| -|
|升级服务子系统-Updater|
function
getUpdater(updateType?: UpdateTypes): Updater;|新增| -|
|升级服务子系统-Updater|applyNewVersion(callback: AsyncCallback
<number>
): void;|新增| -|
|升级服务子系统-Updater|rebootAndCleanUserData(): Promise
<number>
;|新增| -|
|升级服务子系统-Updater|getUpdatePolicy(callback: AsyncCallback
\
<
UpdatePolicy>): void;|新增| -|
|升级服务子系统-Updater|getUpdaterForOther(device: string, updateType?: UpdateTypes): Updater;|新增| -|
|升级服务子系统-Updater|setUpdatePolicy(policy: UpdatePolicy, callback: AsyncCallback
\
<
number>): void;|新增| -|
|升级服务子系统-Updater|getNewVersionInfo(): Promise
\
<
NewVersionInfo>;|新增| -|
|升级服务子系统-Updater|getUpdater(updateType?: UpdateTypes): Updater;|新增| -|
|升级服务子系统-Updater|applyNewVersion(callback: AsyncCallback
\
<
number>): void;|新增| -|
|升级服务子系统-Updater|rebootAndCleanUserData(): Promise
\
<
number>;|新增| -|
|升级服务子系统-Updater|off(eventType: 'verifyProgress', callback?: UpdateProgressCallback): void;|新增| -|
|升级服务子系统-Updater|on(eventType: 'upgradeProgress', callback: UpdateProgressCallback): void;|新增| -|
|升级服务子系统-Updater|checkNewVersion(callback: AsyncCallback
<NewVersionInfo>
): void;|新增| -|
|升级服务子系统-Updater|checkNewVersion(callback: AsyncCallback
\
<
NewVersionInfo>): void;|新增| -|
|升级服务子系统-Updater|on(eventType: 'downloadProgress', callback: UpdateProgressCallback): void;|新增| -|
|升级服务子系统-Updater|getUpdatePolicy(): Promise
<UpdatePolicy>
;|新增| -|
|升级服务子系统-Updater|getUpdatePolicy(): Promise
\
<
UpdatePolicy>;|新增| -|
|升级服务子系统-Updater|download(): void;|新增| -|
|升级服务子系统-Updater|off(eventType: 'upgradeProgress', callback?: UpdateProgressCallback): void;|新增| -|
|升级服务子系统-Updater|getNewVersionInfo(callback: AsyncCallback
<NewVersionInfo>
): void;|新增| -|
|升级服务子系统-Updater|getNewVersionInfo(callback: AsyncCallback
\
<
NewVersionInfo>): void;|新增| -|
|升级服务子系统-Updater|on(eventType: 'verifyProgress', callback: UpdateProgressCallback): void;|新增| -|
|升级服务子系统-Updater|verifyUpdatePackage(upgradeFile: string, certsFile: string): void;|新增| -|
|升级服务子系统-Updater|setUpdatePolicy(policy: UpdatePolicy): Promise
<number>
;|新增| -|
|升级服务子系统-Updater|rebootAndCleanCache(callback: AsyncCallback
<number>
): void;|新增| -|
|升级服务子系统-Updater|applyNewVersion(): Promise
<number>
;|新增| -|
|全球化子系统-I18n|getSystemLanguages(): Array
<string>
;|新增| -|
|全球化子系统-I18n|getSystemCountries(language: string): Array
<string>
;|新增| -|
|升级服务子系统-Updater|setUpdatePolicy(policy: UpdatePolicy): Promise
\
<
number>;|新增| -|
|升级服务子系统-Updater|rebootAndCleanCache(callback: AsyncCallback
\
<
number>): void;|新增| -|
|升级服务子系统-Updater|applyNewVersion(): Promise
\
<
number>;|新增| -|
|全球化子系统-I18n|getSystemLanguages(): Array
\
<
string>;|新增| -|
|全球化子系统-I18n|getSystemCountries(language: string): Array
\
<
string>;|新增| -|
|全球化子系统-I18n|isSuggested(language: string, region?: string): boolean;|新增| -|
|全球化子系统-I18n|getSystemLanguage(): string;|新增| -|
|全球化子系统-I18n|setSystemLanguage(language: string);|新增| -|
...
...
@@ -124,76 +124,76 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|全球化子系统-I18n|getSystemLocale(): string;|新增| -|
|全球化子系统-I18n|setSystemLocale(locale: string);|新增| -|
|全球化子系统-I18n|"getDisplayLanguage(locale: string, displayLocale: string,sentenceCase?: boolean): string;"|新增| -|
|电话子系统-radio|getNetworkState(callback: AsyncCallback
<NetworkState>
): void;getNetworkState(slotId: number, callback: AsyncCallback
<NetworkState>
): void;getNetworkState(slotId?: number): Promise
<NetworkState>
;|新增| -|
|电话子系统-sim|getSimAccountInfo(slotId: number, callback: AsyncCallback
<IccAccountInfo>
): void;getSimAccountInfo(slotId: number): Promise
<IccAccountInfo>
;|新增| -|
|电话子系统-sim|getDefaultVoiceSlotId(callback: AsyncCallback
<number>
): void;getDefaultVoiceSlotId(): Promise
<number>
;|新增| -|
|电话子系统-sim|getSimSpn(slotId: number, callback: AsyncCallback
<string>
): void;getSimSpn(slotId: number): Promise
<string>
;|新增| -|
|电话子系统-sim|getISOCountryCodeForSim(slotId: number, callback: AsyncCallback
<string>
): void;getISOCountryCodeForSim(slotId: number): Promise
<string>
;|新增| -|
|电话子系统-sim|getSimIccId(slotId: number, callback: AsyncCallback
<string>
): void;getSimIccId(slotId: number): Promise
<string>
;|新增| -|
|电话子系统-sim|getSimGid1(slotId: number, callback: AsyncCallback
<string>
): void;getSimGid1(slotId: number): Promise
<string>
;|新增| -|
|电话子系统-sim|getISOCountryCodeForSim(slotId: number, callback: AsyncCallback
<string>
): void;getISOCountryCodeForSim(slotId: number): Promise
<string>
;|新增| -|
|电话子系统-sim|getSimOperatorNumeric(slotId: number, callback: AsyncCallback
<string>
): void;getSimOperatorNumeric(slotId: number): Promise
<string>
;|新增| -|
|电话子系统-sim|getSimSpn(slotId: number, callback: AsyncCallback
<string>
): void;getSimSpn(slotId: number): Promise
<string>
;|新增| -|
|电话子系统-sim|getSimIccId(slotId: number, callback: AsyncCallback
<string>
): void;getSimIccId(slotId: number): Promise
<string>
;|新增| -|
|电话子系统-sim|getIMSI(slotId: number, callback: AsyncCallback
<string>
): void;getIMSI(slotId: number): Promise
<string>
;|新增| -|
|电话子系统-call|combineConference(callId: number, callback: AsyncCallback
<void>
): void;combineConference(callId: number): Promise
<void>
;|新增| -|
|电话子系统-call|startDTMF(callId: number, character: string, callback: AsyncCallback
<void>
): void;startDTMF(callId: number, character: string): Promise
<void>
;|新增| -|
|电话子系统-call|stopDTMF(callId: number, callback: AsyncCallback
<void>
): void;stopDTMF(callId: number): Promise
<void>
;|新增| -|
|电话子系统-sim|setDefaultVoiceSlotId(slotId: number, callback: AsyncCallback
<void>
): void;setDefaultVoiceSlotId(slotId: number): Promise
<void>
;|新增| -|
|电话子系统-sim|unlockPin(slotId: number, pin: string, callback: AsyncCallback
<LockStatusResponse>
): void;unlockPin(slotId: number, pin: string): Promise
<LockStatusResponse>
;|新增| -|
|电话子系统-sim|alterPin(slotId: number, newPin: string, oldPin: string, callback: AsyncCallback
<LockStatusResponse>
): void;alterPin(slotId: number, newPin: string, oldPin: string): Promise
<LockStatusResponse>
;|新增| -|
|电话子系统-sim|setLockState(slotId: number, pin: string, enable: number, callback: AsyncCallback
<LockStatusResponse>
): void;setLockState(slotId: number, pin: string, enable: number): Promise
<LockStatusResponse>
;|新增| -|
|电话子系统-sim|getSimState(slotId: number, callback: AsyncCallback
<SimState>
): void;getSimState(slotId: number): Promise
<SimState>
;|新增| -|
|电话子系统-sim|getSimState(slotId: number, callback: AsyncCallback
<SimState>
): void;getSimState(slotId: number): Promise
<SimState>
;|新增| -|
|电话子系统-sim|getSimState(slotId: number, callback: AsyncCallback
<SimState>
): void;getSimState(slotId: number): Promise
<SimState>
;|新增| -|
|电话子系统-sim|getSimState(slotId: number, callback: AsyncCallback
<SimState>
): void;getSimState(slotId: number): Promise
<SimState>
;|新增| -|
|电话子系统-call|isEmergencyPhoneNumber(phoneNumber: string, callback: AsyncCallback
<boolean>
): void;isEmergencyPhoneNumber(phoneNumber: string, options: EmergencyNumberOptions, callback: AsyncCallback
<boolean>
): void;isEmergencyPhoneNumber(phoneNumber: string, options?: EmergencyNumberOptions): Promise
<boolean>
;|新增| -|
|电话子系统-sms|createMessage(pdu: Array
<number>
, specification: string, callback: AsyncCallback
<ShortMessage>
): void;createMessage(pdu: Array
<number>
, specification: string): Promise
<ShortMessage>
;|新增| -|
|电话子系统-call|hasCall(callback: AsyncCallback
<boolean>
): void;hasCall(): Promise
<boolean>
;|新增| -|
|电话子系统-radio|getNetworkState(callback: AsyncCallback
\<
NetworkState>): void;
<br>
getNetworkState(slotId: number, callback: AsyncCallback
\<
NetworkState>): void;
<br>
getNetworkState(slotId?: number): Promise
\
<
NetworkState>;|新增| -|
|电话子系统-sim|getSimAccountInfo(slotId: number, callback: AsyncCallback
\<
IccAccountInfo>): void;
<br>
getSimAccountInfo(slotId: number): Promise
\
<
IccAccountInfo>;|新增| -|
|电话子系统-sim|getDefaultVoiceSlotId(callback: AsyncCallback
\<
number>): void;
<br/>
getDefaultVoiceSlotId(): Promise
\
<
number>;|新增| -|
|电话子系统-sim|getSimSpn(slotId: number, callback: AsyncCallback
\<
string>): void;
<br/>
getSimSpn(slotId: number): Promise
\
<
string>;|新增| -|
|电话子系统-sim|getISOCountryCodeForSim(slotId: number, callback: AsyncCallback
\<
string>): void;
<br/>
getISOCountryCodeForSim(slotId: number): Promise
\
<
string>;|新增| -|
|电话子系统-sim|getSimIccId(slotId: number, callback: AsyncCallback
\<
string>): void;
<br/>
getSimIccId(slotId: number): Promise
\
<
string>;|新增| -|
|电话子系统-sim|getSimGid1(slotId: number, callback: AsyncCallback
\<
string>): void;
<br/>
getSimGid1(slotId: number): Promise
\
<
string>;|新增| -|
|电话子系统-sim|getISOCountryCodeForSim(slotId: number, callback: AsyncCallback
\<
string>): void;
<br/>
getISOCountryCodeForSim(slotId: number): Promise
\
<
string>;|新增| -|
|电话子系统-sim|getSimOperatorNumeric(slotId: number, callback: AsyncCallback
\<
string>): void;
<br/>
getSimOperatorNumeric(slotId: number): Promise
\
<
string>;|新增| -|
|电话子系统-sim|getSimSpn(slotId: number, callback: AsyncCallback
\<
string>): void;
<br/>
getSimSpn(slotId: number): Promise
\
<
string>;|新增| -|
|电话子系统-sim|getSimIccId(slotId: number, callback: AsyncCallback
\<
string>): void;
<br/>
getSimIccId(slotId: number): Promise
\
<
string>;|新增| -|
|电话子系统-sim|getIMSI(slotId: number, callback: AsyncCallback
\<
string>): void;
<br/>
getIMSI(slotId: number): Promise
\
<
string>;|新增| -|
|电话子系统-call|combineConference(callId: number, callback: AsyncCallback
\<
void>): void;
<br/>
combineConference(callId: number): Promise
\
<
void>;|新增| -|
|电话子系统-call|startDTMF(callId: number, character: string, callback: AsyncCallback
\<
void>): void;
<br/>
startDTMF(callId: number, character: string): Promise
\
<
void>;|新增| -|
|电话子系统-call|stopDTMF(callId: number, callback: AsyncCallback
\<
void>): void;
<br/>
stopDTMF(callId: number): Promise
\
<
void>;|新增| -|
|电话子系统-sim|setDefaultVoiceSlotId(slotId: number, callback: AsyncCallback
\<
void>): void;
<br/>
setDefaultVoiceSlotId(slotId: number): Promise
\
<
void>;|新增| -|
|电话子系统-sim|unlockPin(slotId: number, pin: string, callback: AsyncCallback
\<
LockStatusResponse>): void;
<br/>
unlockPin(slotId: number, pin: string): Promise
\
<
LockStatusResponse>;|新增| -|
|电话子系统-sim|alterPin(slotId: number, newPin: string, oldPin: string, callback: AsyncCallback
\<
LockStatusResponse>): void;
<br/>
alterPin(slotId: number, newPin: string, oldPin: string): Promise
\
<
LockStatusResponse>;|新增| -|
|电话子系统-sim|setLockState(slotId: number, pin: string, enable: number, callback: AsyncCallback
\<
LockStatusResponse>): void;
<br/>
setLockState(slotId: number, pin: string, enable: number): Promise
\
<
LockStatusResponse>;|新增| -|
|电话子系统-sim|getSimState(slotId: number, callback: AsyncCallback
\<
SimState>): void;
<br/>
getSimState(slotId: number): Promise
\
<
SimState>;|新增| -|
|电话子系统-sim|getSimState(slotId: number, callback: AsyncCallback
\<
SimState>): void;
<br/>
getSimState(slotId: number): Promise
\
<
SimState>;|新增| -|
|电话子系统-sim|getSimState(slotId: number, callback: AsyncCallback
\<
SimState>): void;
<br/>
getSimState(slotId: number): Promise
\
<
SimState>;|新增| -|
|电话子系统-sim|getSimState(slotId: number, callback: AsyncCallback
\<
SimState>): void;
<br/>
getSimState(slotId: number): Promise
\
<
SimState>;|新增| -|
|电话子系统-call|isEmergencyPhoneNumber(phoneNumber: string, callback: AsyncCallback
\<
boolean>): void;
<br/>
isEmergencyPhoneNumber(phoneNumber: string, options: EmergencyNumberOptions, callback: AsyncCallback
\<
boolean>): void;
<br/>
isEmergencyPhoneNumber(phoneNumber: string, options?: EmergencyNumberOptions): Promise
\
<
boolean>;|新增| -|
|电话子系统-sms|createMessage(pdu: Array
\<
number>, specification: string, callback: AsyncCallback
\<
ShortMessage>): void;
<br/>
createMessage(pdu: Array
\<
number>, specification: string): Promise
\
<
ShortMessage>;|新增| -|
|电话子系统-call|hasCall(callback: AsyncCallback
\<
boolean>): void;
<br/>
hasCall(): Promise
\
<
boolean>;|新增| -|
|电话子系统-sms|sendMessage(options: SendMessageOptions): void;|新增| -|
|电话子系统-call|dial(phoneNumber: string, callback: AsyncCallback
<boolean>
): void;dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback
<boolean>
): void;dial(phoneNumber: string, options?: DialOptions): Promise
<boolean>
;|新增| -|
|电话子系统-call|dial(phoneNumber: string, callback: AsyncCallback
\<
boolean>): void;
<br/>
dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback
\<
boolean>): void;
<br/>
dial(phoneNumber: string, options?: DialOptions): Promise
\
<
boolean>;|新增| -|
|电话子系统-call|interface DialOptions {extras?: boolean; }|新增| -|
|电话子系统-sms|sendMessage(options: SendMessageOptions): void;|新增| -|
|电话子系统-sms|getDefaultSmsSlotId(callback: AsyncCallback
<number>
): void;getDefaultSmsSlotId(): Promise
<number>
;|新增| -|
|电话子系统-call|formatPhoneNumber(phoneNumber: string, callback: AsyncCallback
<string>
): void;formatPhoneNumber(phoneNumber: string, options: NumberFormatOptions, callback: AsyncCallback
<string>
): void;formatPhoneNumber(phoneNumber: string, options?: NumberFormatOptions): Promise
<string>
;|新增| -|
|电话子系统-call|formatPhoneNumber(phoneNumber: string, callback: AsyncCallback
<string>
): void;formatPhoneNumber(phoneNumber: string, options: NumberFormatOptions, callback: AsyncCallback
<string>
): void;formatPhoneNumber(phoneNumber: string, options?: NumberFormatOptions): Promise
<string>
;|新增| -|
|电话子系统-call|formatPhoneNumberToE164(phoneNumber: string, countryCode: string, callback: AsyncCallback
<string>
): void;formatPhoneNumberToE164(phoneNumber: string, countryCode: string): Promise
<string>
;|新增| -|
|电话子系统-sms|setDefaultSmsSlotId(slotId: number, callback: AsyncCallback
<void>
): void;setDefaultSmsSlotId(slotId: number): Promise
<void>
;|新增| -|
|电话子系统-call|getCallState(callback: AsyncCallback
<CallState>
): void;getCallState(): Promise
<CallState>
;|新增| -|
|电话子系统-sms|setSmscAddr(slotId: number, smscAddr: string, callback: AsyncCallback
<void>
): void;setSmscAddr(slotId: number, smscAddr: string): Promise
<void>
;|新增| -|
|电话子系统-sms|getSmscAddr(slotId: number, callback: AsyncCallback
<string>
): void;getSmscAddr(slotId: number): Promise
<string>
;|新增| -|
|电话子系统-sms|addSimMessage(options: SimMessageOptions, callback: AsyncCallback
<void>
): void;addSimMessage(options: SimMessageOptions): Promise
<void>
;|新增| -|
|电话子系统-sms|delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback
<void>
): void;delSimMessage(slotId: number, msgIndex: number): Promise
<void>
;|新增| -|
|电话子系统-radio|getISOCountryCodeForNetwork(slotId: number, callback: AsyncCallback
<string>
): void;getISOCountryCodeForNetwork(slotId: number): Promise
<string>
;|新增| -|
|电话子系统-sms|updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback
<void>
): void;updateSimMessage(options: UpdateSimMessageOptions): Promise
<void>
;|新增| -|
|电话子系统-radio|getISOCountryCodeForNetwork(slotId: number, callback: AsyncCallback
<string>
): void;getISOCountryCodeForNetwork(slotId: number): Promise
<string>
;|新增| -|
|电话子系统-sms|getAllSimMessages(slotId: number, callback: AsyncCallback
<Array
<
SimShortMessage
>
>): void;getAllSimMessages(slotId: number): Promise
<Array
<
SimShortMessage
>
>;|新增| -|
|电话子系统-call|isInEmergencyCall(callback: AsyncCallback
<boolean>
): void;isInEmergencyCall(): Promise
<boolean>
;|新增| -|
|电话子系统-sms|setCBConfig(options: CBConfigOptions, callback: AsyncCallback
<void>
): void;setCBConfig(options: CBConfigOptions): Promise
<void>
;|新增| -|
|电话子系统-call|answer(callId: number, callback: AsyncCallback
<void>
): void;answer(callId: number): Promise
<void>
;|新增| -|
|电话子系统-call|hangup(callId: number, callback: AsyncCallback
<void>
): void;hangup(callId: number): Promise
<void>
;|新增| -|
|电话子系统-call|reject(callId: number, callback: AsyncCallback
<void>
): void;reject(callId: number, options: RejectMessageOptions, callback: AsyncCallback
<void>
): void;reject(callId: number, options?: RejectMessageOptions): Promise
<void>
;|新增| -|
|电话子系统-call|holdCall(callId: number, callback: AsyncCallback
<void>
): void;holdCall(callId: number): Promise
<void>
;|新增| -|
|电话子系统-call|unHoldCall(callId: number, callback: AsyncCallback
<void>
): void;unHoldCall(callId: number): Promise
<void>
;|新增| -|
|电话子系统-call|switchCall(callId: number, callback: AsyncCallback
<void>
): void;switchCall(callId: number): Promise
<void>
;|新增| -|
|电话子系统-radio|setNetworkSelectionMode(options: NetworkSelectionModeOptions, callback: AsyncCallback
<void>
): void;setNetworkSelectionMode(options: NetworkSelectionModeOptions): Promise
<void>
;|新增| -|
|电话子系统-radio|getNetworkSearchInformation(slotId: number, callback: AsyncCallback
<NetworkSearchResult>
): void;getNetworkSearchInformation(slotId: number): Promise
<NetworkSearchResult>
;|新增| -|
|电话子系统-radio|getNetworkSelectionMode(slotId: number, callback: AsyncCallback
<NetworkSelectionMode>
): void;getNetworkSelectionMode(slotId: number): Promise
<NetworkSelectionMode>
;|新增| -|
|电话子系统-radio|isRadioOn(callback: AsyncCallback
<boolean>
): void;isRadioOn(): Promise
<boolean>
;|新增| -|
|电话子系统-radio|turnOnRadio(callback: AsyncCallback
<void>
): void;turnOnRadio(): Promise
<void>
;|新增| -|
|电话子系统-radio|turnOffRadio(callback: AsyncCallback
<void>
): void;turnOffRadio(): Promise
<void>
;|新增| -|
|电话子系统-radio|getSignalInformation(slotId: number, callback: AsyncCallback
<Array
<
SignalInformation
>
>): void;getSignalInformation(slotId: number): Promise
<Array
<
SignalInformation
>
>;|新增| -|
|电话子系统-radio|getRadioTech(slotId: number, callback: AsyncCallback
<
{
psRadioTech:
RadioTechnology
,
csRadioTech:
RadioTechnology
}
>
): void;getRadioTech(slotId: number): Promise
<
{
psRadioTech:
RadioTechnology
,
csRadioTech:
RadioTechnology
}
>
;|新增| -|
|电话子系统-radio|getRadioTech(slotId: number, callback: AsyncCallback
<
{
psRadioTech:
RadioTechnology
,
csRadioTech:
RadioTechnology
}
>
): void;getRadioTech(slotId: number): Promise
<
{
psRadioTech:
RadioTechnology
,
csRadioTech:
RadioTechnology
}
>
;|新增| -|
|电话子系统-radio|getRadioTech(slotId: number, callback: AsyncCallback
<
{
psRadioTech:
RadioTechnology
,
csRadioTech:
RadioTechnology
}
>
): void;getRadioTech(slotId: number): Promise
<
{
psRadioTech:
RadioTechnology
,
csRadioTech:
RadioTechnology
}
>
;|新增| -|
|数据管理-distributeddata|put(key:string, value:Uint8Array / string / boolean / number, callback: AsyncCallback
<void>
):void put(key:string, value:Uint8Array / string / boolean / number):Promise
<void>
|新增| -|
|数据管理-distributeddata|delete(key: string, callback: AsyncCallback
<void>
): void delete(key: string): Promise
<void>
|新增| -|
|数据管理-distributeddata|on(event:'dataChange', subType: SubscribeType, observer: Callback
<ChangeNotification>
): void|新增| -|
|数据管理-distributeddata|get(key:string, callback:AsyncCallback
<Uint8Array
/
string
/
boolean
/
number
>
):void get(key:string):Promise
<Uint8Array
/
string
/
boolean
/
number
>
|新增| -|
|电话子系统-sms|getDefaultSmsSlotId(callback: AsyncCallback
\<
number>): void;
<br/>
getDefaultSmsSlotId(): Promise
\
<
number>;|新增| -|
|电话子系统-call|formatPhoneNumber(phoneNumber: string, callback: AsyncCallback
\<
string>): void;
<br/>
formatPhoneNumber(phoneNumber: string, options: NumberFormatOptions, callback: AsyncCallback
\<
string>): void;
<br/>
formatPhoneNumber(phoneNumber: string, options?: NumberFormatOptions): Promise
\
<
string>;|新增| -|
|电话子系统-call|formatPhoneNumber(phoneNumber: string, callback: AsyncCallback
\<
string>): void;
<br/>
formatPhoneNumber(phoneNumber: string, options: NumberFormatOptions, callback: AsyncCallback
\<
string>): void;
<br/>
formatPhoneNumber(phoneNumber: string, options?: NumberFormatOptions): Promise
\
<
string>;|新增| -|
|电话子系统-call|formatPhoneNumberToE164(phoneNumber: string, countryCode: string, callback: AsyncCallback
\<
string>): void;
<br/>
formatPhoneNumberToE164(phoneNumber: string, countryCode: string): Promise
\
<
string>;|新增| -|
|电话子系统-sms|setDefaultSmsSlotId(slotId: number, callback: AsyncCallback
\<
void>): void;
<br/>
setDefaultSmsSlotId(slotId: number): Promise
\
<
void>;|新增| -|
|电话子系统-call|getCallState(callback: AsyncCallback
\<
CallState>): void;
<br/>
getCallState(): Promise
\
<
CallState>;|新增| -|
|电话子系统-sms|setSmscAddr(slotId: number, smscAddr: string, callback: AsyncCallback
\<
void>): void;
<br/>
setSmscAddr(slotId: number, smscAddr: string): Promise
\
<
void>;|新增| -|
|电话子系统-sms|getSmscAddr(slotId: number, callback: AsyncCallback
\<
string>): void;
<br/>
getSmscAddr(slotId: number): Promise
\
<
string>;|新增| -|
|电话子系统-sms|addSimMessage(options: SimMessageOptions, callback: AsyncCallback
\<
void>): void;
<br/>
addSimMessage(options: SimMessageOptions): Promise
\
<
void>;|新增| -|
|电话子系统-sms|delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback
\<
void>): void;
<br/>
delSimMessage(slotId: number, msgIndex: number): Promise
\
<
void>;|新增| -|
|电话子系统-radio|getISOCountryCodeForNetwork(slotId: number, callback: AsyncCallback
\<
string>): void;
<br/>
getISOCountryCodeForNetwork(slotId: number): Promise
\
<
string>;|新增| -|
|电话子系统-sms|updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback
\<
void>): void;
<br/>
updateSimMessage(options: UpdateSimMessageOptions): Promise
\
<
void>;|新增| -|
|电话子系统-radio|getISOCountryCodeForNetwork(slotId: number, callback: AsyncCallback
\<
string>): void;
<br/>
getISOCountryCodeForNetwork(slotId: number): Promise
\
<
string>;|新增| -|
|电话子系统-sms|getAllSimMessages(slotId: number, callback: AsyncCallback
\<
Array
\<
SimShortMessage>>): void;
<br/>
getAllSimMessages(slotId: number): Promise
\<
Array
\
<
SimShortMessage>>;|新增| -|
|电话子系统-call|isInEmergencyCall(callback: AsyncCallback
\<
boolean>): void;
<br/>
isInEmergencyCall(): Promise
\
<
boolean>;|新增| -|
|电话子系统-sms|setCBConfig(options: CBConfigOptions, callback: AsyncCallback
\<
void>): void;
<br/>
setCBConfig(options: CBConfigOptions): Promise
\
<
void>;|新增| -|
|电话子系统-call|answer(callId: number, callback: AsyncCallback
\<
void>): void;
<br/>
answer(callId: number): Promise
\
<
void>;|新增| -|
|电话子系统-call|hangup(callId: number, callback: AsyncCallback
\<
void>): void;
<br/>
hangup(callId: number): Promise
\
<
void>;|新增| -|
|电话子系统-call|reject(callId: number, callback: AsyncCallback
\<
void>): void;
<br/>
reject(callId: number, options: RejectMessageOptions, callback: AsyncCallback
\<
void>): void;
<br/>
reject(callId: number, options?: RejectMessageOptions): Promise
\
<
void>;|新增| -|
|电话子系统-call|holdCall(callId: number, callback: AsyncCallback
\<
void>): void;
<br/>
holdCall(callId: number): Promise
\
<
void>;|新增| -|
|电话子系统-call|unHoldCall(callId: number, callback: AsyncCallback
\<
void>): void;
<br/>
unHoldCall(callId: number): Promise
\
<
void>;|新增| -|
|电话子系统-call|switchCall(callId: number, callback: AsyncCallback
\<
void>): void;
<br/>
switchCall(callId: number): Promise
\
<
void>;|新增| -|
|电话子系统-radio|setNetworkSelectionMode(options: NetworkSelectionModeOptions, callback: AsyncCallback
\<
void>): void;
<br/>
setNetworkSelectionMode(options: NetworkSelectionModeOptions): Promise
\
<
void>;|新增| -|
|电话子系统-radio|getNetworkSearchInformation(slotId: number, callback: AsyncCallback
\<
NetworkSearchResult>): void;
<br/>
getNetworkSearchInformation(slotId: number): Promise
\
<
NetworkSearchResult>;|新增| -|
|电话子系统-radio|getNetworkSelectionMode(slotId: number, callback: AsyncCallback
\<
NetworkSelectionMode>): void;
<br/>
getNetworkSelectionMode(slotId: number): Promise
\
<
NetworkSelectionMode>;|新增| -|
|电话子系统-radio|isRadioOn(callback: AsyncCallback
\<
boolean>): void;
<br/>
isRadioOn(): Promise
\
<
boolean>;|新增| -|
|电话子系统-radio|turnOnRadio(callback: AsyncCallback
\<
void>): void;
<br/>
turnOnRadio(): Promise
\
<
void>;|新增| -|
|电话子系统-radio|turnOffRadio(callback: AsyncCallback
\<
void>): void;
<br/>
turnOffRadio(): Promise
\
<
void>;|新增| -|
|电话子系统-radio|getSignalInformation(slotId: number, callback: AsyncCallback
\<
Array
\<
SignalInformation>>): void;
<br/>
getSignalInformation(slotId: number): Promise
\<
Array
\
<
SignalInformation>>;|新增| -|
|电话子系统-radio|getRadioTech(slotId: number, callback: AsyncCallback
\<
{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>): void;
<br/>
getRadioTech(slotId: number): Promise
\
<
{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>;|新增| -|
|电话子系统-radio|getRadioTech(slotId: number, callback: AsyncCallback
\<
{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>): void;
<br/>
getRadioTech(slotId: number): Promise
\
<
{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>;|新增| -|
|电话子系统-radio|getRadioTech(slotId: number, callback: AsyncCallback
\<
{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>): void;
<br/>
getRadioTech(slotId: number): Promise
\
<
{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>;|新增| -|
|数据管理-distributeddata|put(key:string, value:Uint8Array / string / boolean / number, callback: AsyncCallback
\<
void>):void put(key:string, value:Uint8Array / string / boolean / number):Promise
\
<
void>|新增| -|
|数据管理-distributeddata|delete(key: string, callback: AsyncCallback
\<
void>): void delete(key: string): Promise
\
<
void>|新增| -|
|数据管理-distributeddata|on(event:'dataChange', subType: SubscribeType, observer: Callback
\
<
ChangeNotification>): void|新增| -|
|数据管理-distributeddata|get(key:string, callback:AsyncCallback
\<
Uint8Array / string / boolean / number>):void get(key:string):Promise
\
<
Uint8Array / string / boolean / number>|新增| -|
|数据管理-distributeddata|sync(deviceIdList:string[], mode:SyncMode, allowedDelayMs?:number):void|新增| -|
|数据管理-distributeddata|createKVManager(config: KVManagerConfig, callback: AsyncCallback
<KVManager>
): void;createKVManager(config: KVManagerConfig): Promise
<KVManager>
;|新增| -|
|数据管理-distributeddata|getKVStore
<T
extends
KVStore
>
(options: Options, storeId: string): Promise
<T>
;getKVStore
<T
extends
KVStore
>
(options: Options, storeId: string, callback: AsyncCallback
<T>
): void;|新增| -|
|数据管理-distributeddata|on(event:'syncComplete', syncCallback: Callback
<Array
<[
string
,
number
]
>
>):void|新增| -|
|数据管理-distributeddata|createKVManager(config: KVManagerConfig, callback: AsyncCallback
\<
KVManager>): void;
<br/>
createKVManager(config: KVManagerConfig): Promise
\
<
KVManager>;|新增| -|
|数据管理-distributeddata|getKVStore
\<
T extends KVStore>(options: Options, storeId: string): Promise
\<
T>;
<br/>
getKVStore
\<
T extends KVStore>(options: Options, storeId: string, callback: AsyncCallback
\
<
T>): void;|新增| -|
|数据管理-distributeddata|on(event:'syncComplete', syncCallback: Callback
\<
Array
\
<
[string, number]>>):void|新增| -|
|数据管理-rdb|type ValueType = number / string / boolean;|新增| -|
|数据管理-rdb|type ValuesBucket = { [key: string]: ValueType / Uint8Array / null; }|新增| -|
|数据管理-rdb|name: string;|新增| -|
...
...
@@ -202,13 +202,13 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|数据管理-rdb|notEqualTo(field: string, value: ValueType): RdbPredicates;|新增| -|
|数据管理-rdb|beginWrap(): RdbPredicates;|新增| -|
|数据管理-rdb|endWrap(): RdbPredicates;|新增| -|
|数据管理-rdb|
function getRdbStore(config: StoreConfig, version: number, callback: AsyncCallback
<RdbStore>
): void;function getRdbStore(config: StoreConfig, version: number): Promise
<RdbStore>
;|新增| -|
|数据管理-rdb|
function deleteRdbStore(name: string, callback: AsyncCallback
<void>
): void;function deleteRdbStore(name: string): Promise
<void>
;|新增| -|
|数据管理-rdb|insert(name: string, values: ValuesBucket, callback: AsyncCallback
<number>
): void;insert(name: string, values: ValuesBucket): Promise
<number>
;|新增| -|
|数据管理-rdb|update(values: ValuesBucket, rdbPredicates: RdbPredicates, callback: AsyncCallback
<number>
): void;update(values: ValuesBucket, rdbPredicates: RdbPredicates): Promise
<number>
;|新增| -|
|数据管理-rdb|delete(rdbPredicates: RdbPredicates, callback: AsyncCallback
<number>
): void;delete(rdbPredicates: RdbPredicates): Promise
<number>
;|新增| -|
|数据管理-rdb|query(rdbPredicates: RdbPredicates, columns: Array
<string>
, callback: AsyncCallback
<ResultSet>
): void;query(rdbPredicates: RdbPredicates, columns: Array
<string>
): Promise
<ResultSet>
;|新增| -|
|数据管理-rdb|executeSql(sql: string, bindArgs: Array
<ValueType>
, callback: AsyncCallback
<void>
): void;executeSql(sql: string, bindArgs: Array
<ValueType>
): Promise
<void>
;|新增| -|
|数据管理-rdb|
getRdbStore(config: StoreConfig, version: number, callback: AsyncCallback
\<
RdbStore>): void;
<br/>
getRdbStore(config: StoreConfig, version: number): Promise
\
<
RdbStore>;|新增| -|
|数据管理-rdb|
deleteRdbStore(name: string, callback: AsyncCallback
\<
void>): void;
<br/>
deleteRdbStore(name: string): Promise
\
<
void>;|新增| -|
|数据管理-rdb|insert(name: string, values: ValuesBucket, callback: AsyncCallback
\<
number>): void;
<br/>
insert(name: string, values: ValuesBucket): Promise
\
<
number>;|新增| -|
|数据管理-rdb|update(values: ValuesBucket, rdbPredicates: RdbPredicates, callback: AsyncCallback
\<
number>): void;
<br/>
update(values: ValuesBucket, rdbPredicates: RdbPredicates): Promise
\
<
number>;|新增| -|
|数据管理-rdb|delete(rdbPredicates: RdbPredicates, callback: AsyncCallback
\<
number>): void;
<br/>
delete(rdbPredicates: RdbPredicates): Promise
\
<
number>;|新增| -|
|数据管理-rdb|query(rdbPredicates: RdbPredicates, columns: Array
\<
string>, callback: AsyncCallback
\<
ResultSet>): void;
<br/>
query(rdbPredicates: RdbPredicates, columns: Array
\<
string>): Promise
\
<
ResultSet>;|新增| -|
|数据管理-rdb|executeSql(sql: string, bindArgs: Array
\<
ValueType>, callback: AsyncCallback
\<
void>): void;
<br/>
executeSql(sql: string, bindArgs: Array
\<
ValueType>): Promise
\
<
void>;|新增| -|
|数据管理-rdb|like(field: string, value: string): RdbPredicates;|新增| -|
|数据管理-rdb|glob(field: string, value: string): RdbPredicates;|新增| -|
|数据管理-rdb|between(field: string, low: ValueType, high: ValueType): RdbPredicates;|新增| -|
...
...
@@ -243,10 +243,10 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|数据管理-dataAbility|distinct(): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|limitAs(value: number): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|offsetAs(rowOffset: number): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|groupBy(fields: Array
<string>
): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|groupBy(fields: Array
\
<
string>): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|indexedBy(field: string): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|in(field: string, value: Array
<ValueType>
): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|notIn(field: string, value: Array
<ValueType>
): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|in(field: string, value: Array
\
<
ValueType>): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|notIn(field: string, value: Array
\
<
ValueType>): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|glob(field: string, value: string): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|between(field: string, low: ValueType, high: ValueType): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|notBetween(field: string, low: ValueType, high: ValueType): DataAbilityPredicates;|新增| -|
...
...
@@ -257,7 +257,7 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|数据管理-dataAbility|orderByAsc(field: string): DataAbilityPredicates;|新增| -|
|数据管理-rdb|isColumnNull(columnIndex: number): boolean;|新增| -|
|数据管理-rdb|close(): void;|新增| -|
|数据管理-dataAbility|
function
createRdbPredicates(name: string, dataAbilityPredicates: DataAbilityPredicates): rdb.RdbPredicates;|新增| -|
|数据管理-dataAbility|createRdbPredicates(name: string, dataAbilityPredicates: DataAbilityPredicates): rdb.RdbPredicates;|新增| -|
|数据管理-dataAbility|equalTo(field: string, value: ValueType): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|notEqualTo(field: string, value: ValueType): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|beginWrap():DataAbilityPredicates;|新增| -|
...
...
@@ -267,7 +267,7 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|数据管理-rdb|distinct(): RdbPredicates;|新增| -|
|数据管理-rdb|limitAs(value: number): RdbPredicates;|新增| -|
|数据管理-rdb|offsetAs(rowOffset: number): RdbPredicates;|新增| -|
|数据管理-rdb|groupBy(fields: Array
<string>
): RdbPredicates;|新增| -|
|数据管理-rdb|groupBy(fields: Array
\
<
string>): RdbPredicates;|新增| -|
|数据管理-rdb|indexedBy(field: string): RdbPredicates;|新增| -|
|数据管理-dataAbility|or(): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|and(): DataAbilityPredicates;|新增| -|
...
...
@@ -277,9 +277,9 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|数据管理-dataAbility|isNull(field: string): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|isNotNull(field: string): DataAbilityPredicates;|新增| -|
|数据管理-dataAbility|like(field: string, value: string): DataAbilityPredicates;|新增| -|
|数据管理-rdb|in(field: string, value: Array
<ValueType>
): RdbPredicates;|新增| -|
|数据管理-rdb|notIn(field: string, value: Array
<ValueType>
): RdbPredicates;|新增| -|
|数据管理-rdb|columnNames: Array
<string>
;|新增| -|
|数据管理-rdb|in(field: string, value: Array
\
<
ValueType>): RdbPredicates;|新增| -|
|数据管理-rdb|notIn(field: string, value: Array
\
<
ValueType>): RdbPredicates;|新增| -|
|数据管理-rdb|columnNames: Array
\
<
string>;|新增| -|
|数据管理-rdb|columnCount: number;|新增| -|
|数据管理-rdb|rowCount: number;|新增| -|
|数据管理-rdb|rowIndex: number;|新增| -|
...
...
@@ -288,7 +288,7 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|事件通知-notification|title: string;|新增| -|
|事件通知-notification|sound?: string;|新增| -|
|事件通知-notification|text: string;|新增| -|
|事件通知-notification|vibrationValues?: Array
<number>
;|新增| -|
|事件通知-notification|vibrationValues?: Array
\
<
number>;|新增| -|
|事件通知-wantAgent|want?: Want;|新增| -|
|事件通知-notification|vibrationEnabled?: boolean;|新增| -|
|事件通知-notification|badgeFlag?: boolean;|新增| -|
...
...
@@ -301,7 +301,7 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|事件通知-notification|briefText: string;|新增| -|
|事件通知-notification|bypassDnd?: boolean;|新增| -|
|事件通知-notification|additionalText?: string;|新增| -|
|事件通知-wantagent|
function cancel(info: WantAgentInfo, callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-wantagent|
cancel(info: WantAgentInfo, callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-wantAgent|enum OperationType|新增| -|
|事件通知-wantAgent|enum WantAgentFlags|新增| -|
|事件通知-wantAgent|permission?: string;|新增| -|
...
...
@@ -309,20 +309,20 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|事件通知-notification|normal?: NotificationBasicContent;|新增| -|
|事件通知-notification|expandedTitle: string;|新增| -|
|事件通知-notification|expandedTitle: string;|新增| -|
|事件通知-wantAgent|
function trigger(info: WantAgentInfo, triggerInfo: TriggerInfo, callback: AsyncCallback
<CompleteData>
): void;|新增| -|
|事件通知-wantAgent|
trigger(info: WantAgentInfo, triggerInfo: TriggerInfo, callback: AsyncCallback
\
<
CompleteData>): void;|新增| -|
|事件通知-wantAgent|extraInfo?: {[key: string]: any};|新增| -|
|事件通知-notification|multiLine?: NotificationMultiLineContent;|新增| -|
|事件通知-notification|level?: notification.SlotLevel;|新增| -|
|事件通知-notification|lightColor?: number;|新增| -|
|事件通知-notification|lightEnabled?: boolean;|新增| -|
|事件通知-notification|lines: Array
<S
tring>
;|新增| -|
|事件通知-notification|lines: Array
\<
s
tring>;|新增| -|
|事件通知-notification|lockscreenVisibility?: number;|新增| -|
|事件通知-notification|longText: string;|新增| -|
|事件通知-wantAgent|
function getBundleName(info: WantAgentInfo, callback: AsyncCallback
<string>
): void;|新增| -|
|事件通知-wantAgent|
getBundleName(info: WantAgentInfo, callback: AsyncCallback
\
<
string>): void;|新增| -|
|事件通知-notification|longText?: NotificationLongTextContent;|新增| -|
|事件通知-notification|longTitle: string;|新增| -|
|事件通知-wantAgent|
function judgeEquality(info: WantAgentInfo, info2: WantAgentInfo, callback: AsyncCallback
<boolean>
): void;|新增| -|
|事件通知-wantAgent|
function getUid(info: WantAgentInfo, callback: AsyncCallback
<number>
): void;|新增| -|
|事件通知-wantAgent|
judgeEquality(info: WantAgentInfo, info2: WantAgentInfo, callback: AsyncCallback
\
<
boolean>): void;|新增| -|
|事件通知-wantAgent|
getUid(info: WantAgentInfo, callback: AsyncCallback
\
<
number>): void;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL = common.event.IVI_TEMPERATURE_ABNORMAL,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_IVI_VOLTAGE_RECOVERY = common.event.IVI_VOLTAGE_RECOVERY,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_IVI_TEMPERATURE_RECOVERY = common.event.IVI_TEMPERATURE_RECOVERY,|新增| -|
...
...
@@ -391,35 +391,35 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|事件通知-commonEvent|COMMON_EVENT_HWID_LOGOFF = common.event.HWID_LOGOFF,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_WIFI_POWER_STATE = usual.event.wifi.POWER_STATE,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_WIFI_SCAN_FINISHED = usual.event.wifi.SCAN_FINISHED,|新增| -|
|事件通知-commonEvent|clearAbortCommonEvent(): Promise
<void>
;|新增| -|
|事件通知-commonEvent|clearAbortCommonEvent(): Promise
\
<
void>;|新增| -|
|事件通知-commonEvent|bundleName?: string;|新增| -|
|事件通知-commonEvent|code?: number;|新增| -|
|事件通知-commonEvent|data?: string;|新增| -|
|事件通知-commonEvent|subscriberPermissions?: Array
<string>
;|新增| -|
|事件通知-commonEvent|subscriberPermissions?: Array
\
<
string>;|新增| -|
|事件通知-commonEvent|isOrdered?: boolean;|新增| -|
|事件通知-commonEvent|isSticky?: boolean;|新增| -|
|事件通知-commonEvent|abortCommonEvent(callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-commonEvent|abortCommonEvent(): Promise
<void>
;|新增| -|
|事件通知-commonEvent|
function createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise
<CommonEventSubscriber>
;|新增| -|
|事件通知-commonEvent|
function createSubscriber(subscribeInfo: CommonEventSubscribeInfo, callback: AsyncCallback
<CommonEventSubscriber>
): void;|新增| -|
|事件通知-commonEvent|
function subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback
<CommonEventData>
): void;|新增| -|
|事件通知-commonEvent|
function publish(event: string, options: CommonEventPublishData, callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-commonEvent|isOrderedCommonEvent(callback: AsyncCallback
<boolean>
): void;|新增| -|
|事件通知-commonEvent|isOrderedCommonEvent(): Promise
<boolean>
;|新增| -|
|事件通知-commonEvent|abortCommonEvent(callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-commonEvent|abortCommonEvent(): Promise
\
<
void>;|新增| -|
|事件通知-commonEvent|
createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise
\
<
CommonEventSubscriber>;|新增| -|
|事件通知-commonEvent|
createSubscriber(subscribeInfo: CommonEventSubscribeInfo, callback: AsyncCallback
\
<
CommonEventSubscriber>): void;|新增| -|
|事件通知-commonEvent|
subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback
\
<
CommonEventData>): void;|新增| -|
|事件通知-commonEvent|
publish(event: string, options: CommonEventPublishData, callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-commonEvent|isOrderedCommonEvent(callback: AsyncCallback
\
<
boolean>): void;|新增| -|
|事件通知-commonEvent|isOrderedCommonEvent(): Promise
\
<
boolean>;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BOOT_COMPLETED = usual.event.BOOT_COMPLETED,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_LOCKED_BOOT_COMPLETED = usual.event.LOCKED_BOOT_COMPLETED,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_SHUTDOWN = usual.event.SHUTDOWN,|新增| -|
|事件通知-commonEvent|isStickyCommonEvent(): Promise
<boolean>
;|新增| -|
|事件通知-commonEvent|getData(callback: AsyncCallback
<string>
): void;|新增| -|
|事件通知-commonEvent|getData(): Promise
<string>
;|新增| -|
|事件通知-commonEvent|getSubscribeInfo(callback: AsyncCallback
<CommonEventSubscribeInfo>
): void;|新增| -|
|事件通知-commonEvent|getSubscribeInfo(): Promise
<CommonEventSubscribeInfo>
;|新增| -|
|事件通知-commonEvent|
function publish(event: string, callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-commonEvent|isStickyCommonEvent(): Promise
\
<
boolean>;|新增| -|
|事件通知-commonEvent|getData(callback: AsyncCallback
\
<
string>): void;|新增| -|
|事件通知-commonEvent|getData(): Promise
\
<
string>;|新增| -|
|事件通知-commonEvent|getSubscribeInfo(callback: AsyncCallback
\
<
CommonEventSubscribeInfo>): void;|新增| -|
|事件通知-commonEvent|getSubscribeInfo(): Promise
\
<
CommonEventSubscribeInfo>;|新增| -|
|事件通知-commonEvent|
publish(event: string, callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-commonEvent|event: string|新增| -|
|事件通知-commonEvent|bundleName?: string;|新增| -|
|事件通知-commonEvent|code?: number;|新增| -|
|事件通知-commonEvent|data?: string;|新增| -|
|事件通知-commonEvent|setCode(code: number, callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-commonEvent|setCode(code: number, callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_DRIVE_MODE = common.event.DRIVE_MODE,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_HOME_MODE = common.event.HOME_MODE,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_OFFICE_MODE = common.event.OFFICE_MODE,|新增| -|
...
...
@@ -455,36 +455,36 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|事件通知-commonEvent|COMMON_EVENT_BATTERY_OKAY = usual.event.BATTERY_OKAY,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_POWER_CONNECTED = usual.event.POWER_CONNECTED,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_POWER_DISCONNECTED = usual.event.POWER_DISCONNECTED,|新增| -|
|事件通知-commonEvent|
function unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback
<void>
): void;|新增| -|
|事件通知-commonEvent|
unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED = usual.event.bluetooth.remotedevice.ACL_CONNECTED,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED = usual.event.bluetooth.remotedevice.ACL_DISCONNECTED,|新增| -|
|事件通知-commonEvent|getAbortCommonEvent(callback: AsyncCallback
<boolean>
): void;|新增| -|
|事件通知-commonEvent|getAbortCommonEvent(callback: AsyncCallback
\
<
boolean>): void;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE = usual.event.bluetooth.remotedevice.NAME_UPDATE,|新增| -|
|事件通知-commonEvent|getAbortCommonEvent(): Promise
<boolean>
;|新增| -|
|事件通知-commonEvent|getAbortCommonEvent(): Promise
\
<
boolean>;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE = usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE = usual.event.bluetooth.remotedevice.PAIR_STATE,|新增| -|
|事件通知-commonEvent|getCode(callback: AsyncCallback
<number>
): void;|新增| -|
|事件通知-commonEvent|setCode(code: number): Promise
<void>
;|新增| -|
|事件通知-commonEvent|getCode(callback: AsyncCallback
\
<
number>): void;|新增| -|
|事件通知-commonEvent|setCode(code: number): Promise
\
<
void>;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE = usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE = usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE,|新增| -|
|事件通知-commonEvent|getCode(): Promise
<number>
;|新增| -|
|事件通知-commonEvent|getCode(): Promise
\
<
number>;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT = usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT,|新增| -|
|事件通知-commonEvent|setCodeAndData(code: number, data: string, callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-commonEvent|setCodeAndData(code: number, data: string, callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT = usual.event.bluetooth.remotedevice.SDP_RESULT,|新增| -|
|事件通知-commonEvent|isStickyCommonEvent(callback: AsyncCallback
<boolean>
): void;|新增| -|
|事件通知-commonEvent|isStickyCommonEvent(callback: AsyncCallback
\
<
boolean>): void;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE = usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE,|新增| -|
|事件通知-commonEvent|setCodeAndData(code: number, data: string): Promise
<void>
;|新增| -|
|事件通知-commonEvent|events: Array
<string>
;|新增| -|
|事件通知-commonEvent|setCodeAndData(code: number, data: string): Promise
\
<
void>;|新增| -|
|事件通知-commonEvent|events: Array
\
<
string>;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE = usual.event.bluetooth.host.STATE_UPDATE,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE = usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE,|新增| -|
|事件通知-commonEvent|setData(data: string, callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-commonEvent|setData(data: string, callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE = usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE = usual.event.bluetooth.host.REQ_DISCOVERABLE,|新增| -|
|事件通知-commonEvent|publisherPermission?: string;|新增| -|
|事件通知-commonEvent|setData(data: string): Promise
<void>
;|新增| -|
|事件通知-commonEvent|setData(data: string): Promise
\
<
void>;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE = usual.event.bluetooth.remotedevice.UUID_VALUE,|新增| -|
|事件通知-commonEvent|publisherDeviceId?: string;|新增| -|
|事件通知-commonEvent|clearAbortCommonEvent(callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-commonEvent|clearAbortCommonEvent(callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-commonEvent|userId?: number;|新增| -|
|事件通知-commonEvent|COMMON_EVENT_TIMEZONE_CHANGED = usual.event.TIMEZONE_CHANGED,|新增| -|
|事件通知-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ = usual.event.bluetooth.remotedevice.PAIRING_REQ,|新增| -|
...
...
@@ -527,63 +527,63 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|事件通知-notification|badgeIconStyle?: number;|新增| -|
|事件通知-notification|showDeliveryTime?: boolean;|新增| -|
|事件通知-notification|isAlertOnce?: boolean;|新增| -|
|事件通知-notification|
function getActiveNotifications(callback: AsyncCallback
<Array
<
NotificationRequest
>
>): void;|新增| -|
|事件通知-notification|
getActiveNotifications(callback: AsyncCallback
\<
Array
\
<
NotificationRequest>>): void;|新增| -|
|事件通知-notification|isStopwatch?: boolean;|新增| -|
|事件通知-notification|isCountDown?: boolean;|新增| -|
|事件通知-notification|
function getActiveNotifications(): Promise
<Array
<
NotificationRequest
>
>;|新增| -|
|事件通知-notification|
function getActiveNotificationCount(callback: AsyncCallback
<number>
): void;|新增| -|
|事件通知-notification|
getActiveNotifications(): Promise
\<
Array
\
<
NotificationRequest>>;|新增| -|
|事件通知-notification|
getActiveNotificationCount(callback: AsyncCallback
\
<
number>): void;|新增| -|
|事件通知-notification|readonly creatorUid?: number;|新增| -|
|事件通知-notification|
function getActiveNotificationCount(): Promise
<number>
;|新增| -|
|事件通知-notification|
getActiveNotificationCount(): Promise
\
<
number>;|新增| -|
|事件通知-notification|readonly creatorPid?: number;|新增| -|
|事件通知-notification|
function cancel(id: number, label?: string): Promise
<void>
;|新增| -|
|事件通知-notification|
cancel(id: number, label?: string): Promise
\
<
void>;|新增| -|
|事件通知-notification|classification?: string;|新增| -|
|事件通知-notification|readonly hashCode?: string;|新增| -|
|事件通知-notification|
function cancelAll(callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-notification|actionButtons?: Array
<NotificationActionButton>
;|新增| -|
|事件通知-notification|
function cancelAll(): Promise
<void>
;|新增| -|
|事件通知-notification|
cancelAll(callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-notification|actionButtons?: Array
\
<
NotificationActionButton>;|新增| -|
|事件通知-notification|
cancelAll(): Promise
\
<
void>;|新增| -|
|事件通知-notification|smallIcon?: image.PixelMap;|新增| -|
|事件通知-notification|isUnremovable?: boolean;|新增| -|
|事件通知-notification|largeIcon?: image.PixelMap;|新增| -|
|事件通知-notification|deliveryTime?: number;|新增| -|
|事件通知-notification|readonly creatorBundleName?: string;|新增| -|
|事件通知-notification|tapDismissed?: boolean;|新增| -|
|事件通知-notification|
function publish(request: NotificationRequest): Promise
<void>
;|新增| -|
|事件通知-notification|
publish(request: NotificationRequest): Promise
\
<
void>;|新增| -|
|事件通知-notification|autoDeletedTime?: number;|新增| -|
|事件通知-notification|
function cancel(id: number, callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-notification|
cancel(id: number, callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-notification|content: NotificationContent;|新增| -|
|事件通知-notification|wantAgent?: WantAgentInfo;|新增| -|
|事件通知-notification|
function cancel(id: number, label: string, callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-notification|
function getSlot(slotType: SlotType, callback: AsyncCallback
<NotificationSlot>
): void;|新增| -|
|事件通知-notification|
cancel(id: number, label: string, callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-notification|
getSlot(slotType: SlotType, callback: AsyncCallback
\
<
NotificationSlot>): void;|新增| -|
|事件通知-notification|extraInfo?: {[key: string]: any};|新增| -|
|事件通知-notification|
function getSlot(slotType: SlotType): Promise
<NotificationSlot>
;|新增| -|
|事件通知-notification|
getSlot(slotType: SlotType): Promise
\
<
NotificationSlot>;|新增| -|
|事件通知-notification|SERVICE_INFORMATION = 2,|新增| -|
|事件通知-notification|color?: number;|新增| -|
|事件通知-notification|id?: number;|新增| -|
|事件通知-notification|
function getSlots(callback: AsyncCallback
<Array
<
NotificationSlot
>
>): void;|新增| -|
|事件通知-notification|
getSlots(callback: AsyncCallback
\<
Array
\
<
NotificationSlot>>): void;|新增| -|
|事件通知-notification|CONTENT_INFORMATION = 3,|新增| -|
|事件通知-notification|slotType?: notification.SlotType;|新增| -|
|事件通知-notification|colorEnabled?: boolean;|新增| -|
|事件通知-notification|OTHER_TYPES = 0xFFFF,|新增| -|
|事件通知-notification|isOngoing?: boolean;|新增| -|
|事件通知-notification|
function addSlot(type: SlotType, callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-notification|
addSlot(type: SlotType, callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-notification|id: number;|新增| -|
|事件通知-notification|
function addSlot(type: SlotType): Promise
<void>
;|新增| -|
|事件通知-notification|
addSlot(type: SlotType): Promise
\
<
void>;|新增| -|
|事件通知-notification|desc?: string;|新增| -|
|事件通知-notification|
function publish(request: NotificationRequest, callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-notification|
function removeAllSlots(callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-notification|
function removeAllSlots(): Promise
<void>
;|新增| -|
|事件通知-notification|
function getSlots(): Promise
<Array
<
NotificationSlot
>
>;|新增| -|
|事件通知-notification|
function removeSlot(slotType: SlotType, callback: AsyncCallback
<void>
): void;|新增| -|
|事件通知-notification|
function removeSlot(slotType: SlotType): Promise
<void>
;|新增| -|
|全球化-resourceManager|getString(resId: number, callback: AsyncCallback
<string>
);getString(resId: number): Promise
<string>
;|新增| -|
|全球化-resourceManager|getStringArray(resId: number, callback: AsyncCallback
<Array
<
string
>
>);getStringArray(resId: number): Promise
<Array
<
string
>
>;|新增| -|
|全球化-resourceManager|getConfiguration(callback: AsyncCallback
<Configuration>
);getConfiguration(): Promise
<Configuration>
;|新增| -|
|全球化-resourceManager|getDeviceCapability(callback: AsyncCallback
<DeviceCapability>
);getDeviceCapability(): Promise
<DeviceCapability>
;|新增| -|
|全球化-resourceManager|getMedia(resId: number, callback: AsyncCallback
<Uint8Array>
);getMedia(resId: number): Promise
<Uint8Array>
;getMediaBase64(resId: number, callback: AsyncCallback
<string>
);getMediaBase64(resId: number): Promise
<string>
;|新增| -|
|全球化-resourceManager|"getPluralString(resId: number, num: number, callback: AsyncCallback
<string>
);getPluralString(resId: number, num: number): Promise
<string>
;"|新增| -|
|事件通知-notification|
publish(request: NotificationRequest, callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-notification|
removeAllSlots(callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-notification|
removeAllSlots(): Promise
\
<
void>;|新增| -|
|事件通知-notification|
getSlots(): Promise
\<
Array
\
<
NotificationSlot>>;|新增| -|
|事件通知-notification|
removeSlot(slotType: SlotType, callback: AsyncCallback
\
<
void>): void;|新增| -|
|事件通知-notification|
removeSlot(slotType: SlotType): Promise
\
<
void>;|新增| -|
|全球化-resourceManager|getString(resId: number, callback: AsyncCallback
\<
string>);
<br/>
getString(resId: number): Promise
\
<
string>;|新增| -|
|全球化-resourceManager|getStringArray(resId: number, callback: AsyncCallback
\<
Array
\<
string>>);
<br/>
getStringArray(resId: number): Promise
\<
Array
\
<
string>>;|新增| -|
|全球化-resourceManager|getConfiguration(callback: AsyncCallback
\<
Configuration>);
<br/>
getConfiguration(): Promise
\
<
Configuration>;|新增| -|
|全球化-resourceManager|getDeviceCapability(callback: AsyncCallback
\<
DeviceCapability>);
<br/>
getDeviceCapability(): Promise
\
<
DeviceCapability>;|新增| -|
|全球化-resourceManager|getMedia(resId: number, callback: AsyncCallback
\<
Uint8Array>);
<br/>
getMedia(resId: number): Promise
\<
Uint8Array>;
<br/>
getMediaBase64(resId: number, callback: AsyncCallback
\<
string>);
<br/>
getMediaBase64(resId: number): Promise
\
<
string>;|新增| -|
|全球化-resourceManager|"getPluralString(resId: number, num: number, callback: AsyncCallback
\<
string>);
<br/>
getPluralString(resId: number, num: number): Promise
\
<
string>;"|新增| -|
|全球化-resourceManager|DeviceCapability|新增| -|
|全球化-resourceManager|"getMediaBase64(resId: number, callback: AsyncCallback
<Uint8Array>
);getMediaBase64(resId: number): Promise
<Uint9Array>
;"|新增| -|
|全球化-resourceManager|"getResourceManager(callback: AsyncCallback
<ResourceManager>
);getResourceManager(bundleName: string, callback: AsyncCallback
<ResourceManager>
);getResourceManager(): Promise
<ResourceManager>
;getResourceManager(bundleName: string): Promise
<ResourceManager>
;"|新增| -|
|全球化-resourceManager|"getMediaBase64(resId: number, callback: AsyncCallback
\<
Uint8Array>);
<br/>
getMediaBase64(resId: number): Promise
\
<
Uint9Array>;"|新增| -|
|全球化-resourceManager|"getResourceManager(callback: AsyncCallback
\<
ResourceManager>);
<br/>
getResourceManager(bundleName: string, callback: AsyncCallback
\<
ResourceManager>);
<br/>
getResourceManager(): Promise
\<
ResourceManager>;
<br/>
getResourceManager(bundleName: string): Promise
\
<
ResourceManager>;"|新增| -|
|全球化-resourceManager|DeviceType|新增| -|
|全球化-resourceManager|Direction|新增| -|
|全球化-resourceManager|Configuration|新增| -|
...
...
@@ -615,11 +615,11 @@ OpenHarmony 3.0 LTS相较于OpenHarmony 2.2 Beta2版本的API变更如下:
|电源服务-batteryInfo|BatteryPluggedType:AC|新增| -|
|电源服务-batteryInfo|BatteryPluggedType:USB|新增| -|
|电源服务-runningLock|RunningLock:unlock()|新增| -|
|电源服务-runningLock|runningLock:isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback
<boolean>
): void;|新增| -|
|电源服务-runningLock|runningLock:isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback
\
<
boolean>): void;|新增| -|
|电源服务-runningLock|runningLock:createRunningLock(name: string, type: runningLockType): RunningLock|新增| -|
|电源服务-runningLock|RunningLock:lock(timeout: number)|新增| -|
|电源服务-runningLock|RunningLock:isUsed(): boolean|新增| -|
|电源服务-runninglock|RunningLockType:BACKGROUND|新增| -|
|电源服务-runninglock|RunningLockType:PROXIMITY_SCREEN_CONTROL|新增| -|
|电源服务-power|power:rebootDevice(reason ?: string)|新增| -|
|电源服务-power|power:isScreenOn(callback: AsyncCallback
<boolean>
): void;|新增| -|
|电源服务-power|power:isScreenOn(callback: AsyncCallback
\
<
boolean>): void;|新增| -|
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ability.md
浏览文件 @
e39dc96d
...
...
@@ -6,18 +6,18 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,元能力子
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| featureability | FeatureAbility | static getDeviceList(flag: number): Promise
<Result>
; | 新增 |
| featureability | FeatureAbility | static getDeviceList(flag: number): Promise
\
<
Result>; | 新增 |
| customizeData | CustomizeData | extra: string; | 新增 |
| applicationInfo | ApplicationInfo | readonly entityType: string; | 新增 |
| applicationInfo | ApplicationInfo | readonly uid: number; | 新增 |
| applicationInfo | ApplicationInfo | readonly accessTokenId: number; | 新增 |
| applicationInfo | ApplicationInfo | readonly removable: boolean; | 新增 |
| applicationInfo | ApplicationInfo | readonly metaData: Map
<string
,
Array
<
CustomizeData
>
>; | 新增 |
| applicationInfo | ApplicationInfo | readonly metaData: Map
\<
string, Array
\
<
CustomizeData>>; | 新增 |
| applicationInfo | ApplicationInfo | readonly codePath: string; | 新增 |
| applicationInfo | ApplicationInfo | readonly moduleInfos: Array
<ModuleInfo>
; | 新增 |
| applicationInfo | ApplicationInfo | readonly moduleInfos: Array
\
<
ModuleInfo>; | 新增 |
| shellCmdResult | ShellCmdResult | exitCode: number; | 新增 |
| shellCmdResult | ShellCmdResult | stdResult: String; | 新增 |
| ProcessRunningInfo | ProcessRunningInfo | bundleNames: Array
<string>
; | 新增 |
| ProcessRunningInfo | ProcessRunningInfo | bundleNames: Array
\
<
string>; | 新增 |
| ProcessRunningInfo | ProcessRunningInfo | processName: string; | 新增 |
| ProcessRunningInfo | ProcessRunningInfo | uid: number; | 新增 |
| ProcessRunningInfo | ProcessRunningInfo | pid: number; | 新增 |
...
...
@@ -26,29 +26,29 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,元能力子
| abilityDelegatorArgs | AbilityDelegatorArgs | testCaseNames: string; | 新增 |
| abilityDelegatorArgs | AbilityDelegatorArgs | parameters: {[key: string]: string}; | 新增 |
| abilityDelegatorArgs | AbilityDelegatorArgs | bundleName: string; | 新增 |
| abilityDelegator | AbilityDelegator | executeShellCommand(cmd: string, callback: AsyncCallback
<ShellCmdResult>
): void;
<br>
executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback
<ShellCmdResult>
): void;
<br>
executeShellCommand(cmd: string, timeoutSecs?: number): Promise
<ShellCmdResult>
; | 新增 |
| abilityDelegator | AbilityDelegator | print(msg: string, callback: AsyncCallback
<void>
): void;
<br>
print(msg: string): Promise
<void>
; | 新增 |
| context | Context | printDrawnCompleted(callback: AsyncCallback
<void>
): void;
<br>
printDrawnCompleted(): Promise
<void>
; | 新增 |
| context | Context | isUpdatingConfigurations(callback: AsyncCallback
<boolean>
): void;
<br>
isUpdatingConfigurations(): Promise
<boolean>
; | 新增 |
| context | Context | getAbilityInfo(callback: AsyncCallback
<AbilityInfo>
): void
<br>
getAbilityInfo(): Promise
<AbilityInfo>
; | 新增 |
| abilityDelegator | AbilityDelegator | executeShellCommand(cmd: string, callback: AsyncCallback
\<
ShellCmdResult>): void;
<br>
executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback
\<
ShellCmdResult>): void;
<br>
executeShellCommand(cmd: string, timeoutSecs?: number): Promise
\
<
ShellCmdResult>; | 新增 |
| abilityDelegator | AbilityDelegator | print(msg: string, callback: AsyncCallback
\<
void>): void;
<br>
print(msg: string): Promise
\
<
void>; | 新增 |
| context | Context | printDrawnCompleted(callback: AsyncCallback
\<
void>): void;
<br>
printDrawnCompleted(): Promise
\
<
void>; | 新增 |
| context | Context | isUpdatingConfigurations(callback: AsyncCallback
\<
boolean>): void;
<br>
isUpdatingConfigurations(): Promise
\
<
boolean>; | 新增 |
| context | Context | getAbilityInfo(callback: AsyncCallback
\<
AbilityInfo>): void
<br>
getAbilityInfo(): Promise
\
<
AbilityInfo>; | 新增 |
| context | Context | getApplicationContext(): Context; | 新增 |
| context | Context | getAppVersionInfo(callback: AsyncCallback
<AppVersionInfo>
): void
<br>
getAppVersionInfo(): Promise
<AppVersionInfo>
; | 新增 |
| context | Context | getHapModuleInfo(callback: AsyncCallback
<HapModuleInfo>
): void
<br>
getHapModuleInfo(): Promise
<HapModuleInfo>
; | 新增 |
| context | Context | getAppType(callback: AsyncCallback
<string>
): void
<br>
getAppType(): Promise
<string>
; | 新增 |
| context | Context | getOrCreateDistributedDir(): Promise
<string>
;
<br>
getOrCreateDistributedDir(callback: AsyncCallback
<string>
): void; | 新增 |
| context | Context | getCacheDir(callback: AsyncCallback
<string>
): void;
<br>
getCacheDir(): Promise
<string>
; | 新增 |
| context | Context | getFilesDir(callback: AsyncCallback
<string>
): void;
<br>
getFilesDir(): Promise
<string>
; | 新增 |
| context | Context | setWakeUpScreen(wakeUp: boolean, callback: AsyncCallback
<void>
): void
<br>
setWakeUpScreen(wakeUp: boolean): Promise
<void>
; | 新增 |
| context | Context | setShowOnLockScreen(show: boolean, callback: AsyncCallback
<void>
): void
<br>
setShowOnLockScreen(show: boolean): Promise
<void>
; | 新增 |
| context | Context | setDisplayOrientation(orientation: DisplayOrientation, callback: AsyncCallback
<void>
): void
<br>
setDisplayOrientation(orientation: DisplayOrientation): Promise
<void>
; | 新增 |
| context | Context | getDisplayOrientation(callback: AsyncCallback
<DisplayOrientation>
): void
<br>
getDisplayOrientation(): Promise
<DisplayOrientation>
; | 新增 |
| context | Context | getAppVersionInfo(callback: AsyncCallback
\<
AppVersionInfo>): void
<br>
getAppVersionInfo(): Promise
\
<
AppVersionInfo>; | 新增 |
| context | Context | getHapModuleInfo(callback: AsyncCallback
\<
HapModuleInfo>): void
<br>
getHapModuleInfo(): Promise
\
<
HapModuleInfo>; | 新增 |
| context | Context | getAppType(callback: AsyncCallback
\<
string>): void
<br>
getAppType(): Promise
\
<
string>; | 新增 |
| context | Context | getOrCreateDistributedDir(): Promise
\<
string>;
<br>
getOrCreateDistributedDir(callback: AsyncCallback
\
<
string>): void; | 新增 |
| context | Context | getCacheDir(callback: AsyncCallback
\<
string>): void;
<br>
getCacheDir(): Promise
\
<
string>; | 新增 |
| context | Context | getFilesDir(callback: AsyncCallback
\<
string>): void;
<br>
getFilesDir(): Promise
\
<
string>; | 新增 |
| context | Context | setWakeUpScreen(wakeUp: boolean, callback: AsyncCallback
\<
void>): void
<br>
setWakeUpScreen(wakeUp: boolean): Promise
\
<
void>; | 新增 |
| context | Context | setShowOnLockScreen(show: boolean, callback: AsyncCallback
\<
void>): void
<br>
setShowOnLockScreen(show: boolean): Promise
\
<
void>; | 新增 |
| context | Context | setDisplayOrientation(orientation: DisplayOrientation, callback: AsyncCallback
\<
void>): void
<br>
setDisplayOrientation(orientation: DisplayOrientation): Promise
\
<
void>; | 新增 |
| context | Context | getDisplayOrientation(callback: AsyncCallback
\<
DisplayOrientation>): void
<br>
getDisplayOrientation(): Promise
\
<
DisplayOrientation>; | 新增 |
| appVersionInfo | AppVersionInfo | readonly versionName: string; | 新增 |
| appVersionInfo | AppVersionInfo | readonly versionCode: number; | 新增 |
| appVersionInfo | AppVersionInfo | readonly appName: string; | 新增 |
| dataAbilityHelper | PacMap | [key: string]: number
\|
string
\|
boolean
\|
Array
<string
\|
number
\|
boolean
>
\|
null; | 新增 |
| dataAbilityHelper | DataAbilityHelper | executeBatch(uri: string, operations: Array
<DataAbilityOperation>
, callback: AsyncCallback
<Array
<
DataAbilityResult
>
>): void;
<br>
executeBatch(uri: string, operations: Array
<DataAbilityOperation>
): Promise
<Array
<
DataAbilityResult
>
>; | 新增 |
| dataAbilityHelper | DataAbilityHelper | call(uri: string, method: string, arg: string, extras: PacMap, callback: AsyncCallback
<PacMap>
): void;
<br>
call(uri: string, method: string, arg: string, extras: PacMap): Promise
<PacMap>
; | 新增 |
| ohos.application.Want | Want | entities?: Array
<string>
; | 新增 |
| dataAbilityHelper | PacMap | [key: string]: number
\|
string
\|
boolean
\|
Array
\
<
string
\|
number
\|
boolean>
\|
null; | 新增 |
| dataAbilityHelper | DataAbilityHelper | executeBatch(uri: string, operations: Array
\<
DataAbilityOperation>, callback: AsyncCallback
\<
Array
\<
DataAbilityResult>>): void;
<br>
executeBatch(uri: string, operations: Array
\<
DataAbilityOperation>): Promise
\<
Array
\
<
DataAbilityResult>>; | 新增 |
| dataAbilityHelper | DataAbilityHelper | call(uri: string, method: string, arg: string, extras: PacMap, callback: AsyncCallback
\<
PacMap>): void;
<br>
call(uri: string, method: string, arg: string, extras: PacMap): Promise
\
<
PacMap>; | 新增 |
| ohos.application.Want | Want | entities?: Array
\
<
string>; | 新增 |
| ohos.application.Want | Want | parameters?: {[key: string]: any}; | 新增 |
| ohos.application.Want | Want | action?: string; | 新增 |
| ohos.application.Want | Want | flags?: number; | 新增 |
...
...
@@ -59,8 +59,8 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,元能力子
| ohos.application.Want | Want | deviceId?: string; | 新增 |
| ohos.application.testRunner | TestRunner | onRun(): void; | 新增 |
| ohos.application.testRunner | TestRunner | onPrepare(): void; | 新增 |
| ohos.application.formProvider | formProvider |
function updateForm(formId: string, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback
<void>
): void;
<br>
function updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise
<void>
; | 新增 |
| ohos.application.formProvider | formProvider |
function setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback
<void>
): void;
<br>
function setFormNextRefreshTime(formId: string, minute: number): Promise
<void>
; | 新增 |
| ohos.application.formProvider | formProvider |
updateForm(formId: string, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback
\<
void>): void;
<br>
updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise
\
<
void>; | 新增 |
| ohos.application.formProvider | formProvider |
setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback
\<
void>): void;
<br>
setFormNextRefreshTime(formId: string, minute: number): Promise
\
<
void>; | 新增 |
| ohos.application.formInfo | FormParam | TEMPORARY_KEY = "ohos.extra.param.key.form_temporary" | 新增 |
| ohos.application.formInfo | FormParam | HEIGHT_KEY = "ohos.extra.param.key.form_height" | 新增 |
| ohos.application.formInfo | FormParam | WIDTH_KEY = "ohos.extra.param.key.form_width" | 新增 |
...
...
@@ -77,7 +77,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,元能力子
| ohos.application.formInfo | ColorMode | MODE_AUTO = -1 | 新增 |
| ohos.application.formInfo | FormType | JS = 1 | 新增 |
| ohos.application.formInfo | FormInfo | customizeData: {[key: string]: [value: string]}; | 新增 |
| ohos.application.formInfo | FormInfo | supportDimensions: Array
<number>
; | 新增 |
| ohos.application.formInfo | FormInfo | supportDimensions: Array
\
<
number>; | 新增 |
| ohos.application.formInfo | FormInfo | defaultDimension: number; | 新增 |
| ohos.application.formInfo | FormInfo | updateDuration: number; | 新增 |
| ohos.application.formInfo | FormInfo | formConfigAbility: string; | 新增 |
...
...
@@ -117,42 +117,42 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,元能力子
| ohos.application.formError | FormError | ERR_PERMISSION_DENY = 2 | 新增 |
| ohos.application.formError | FormError | ERR_COMMON = 1 | 新增 |
| ohos.application.formBindingData | FormBindingData | data: Object | 新增 |
| ohos.application.formBindingData | formBindingData |
function
createFormBindingData(obj?: Object
\|
string): FormBindingData; | 新增 |
| ohos.application.formBindingData | formBindingData | createFormBindingData(obj?: Object
\|
string): FormBindingData; | 新增 |
| ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_LIGHT = 1 | 新增 |
| ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_DARK = 0 | 新增 |
| ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_NOT_SET = -1 | 新增 |
| ohos.application.Configuration | Configuration | colorMode: ConfigurationConstant.ColorMode; | 新增 |
| ohos.application.Configuration | Configuration | language: string; | 新增 |
| ohos.application.appManager | appManager |
function getAppMemorySize(): Promise
<number>
;
<br>
function getAppMemorySize(callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.application.appManager | appManager |
function isRamConstrainedDevice(): Promise
<boolean>
;
<br>
function isRamConstrainedDevice(callback: AsyncCallback
<boolean>
): void; | 新增 |
| ohos.application.appManager | appManager |
function getProcessRunningInfos(): Promise
<Array
<
ProcessRunningInfo
>
>;
<br>
function getProcessRunningInfos(callback: AsyncCallback
<Array
<
ProcessRunningInfo
>
>): void; | 新增 |
| ohos.application.appManager | appManager |
function isRunningInStabilityTest(callback: AsyncCallback
<boolean>
): void;
<br>
function isRunningInStabilityTest(): Promise
<boolean>
; | 新增 |
| ohos.application.appManager | appManager |
getAppMemorySize(): Promise
\<
number>;
<br>
getAppMemorySize(callback: AsyncCallback
\
<
number>): void; | 新增 |
| ohos.application.appManager | appManager |
isRamConstrainedDevice(): Promise
\<
boolean>;
<br>
isRamConstrainedDevice(callback: AsyncCallback
\
<
boolean>): void; | 新增 |
| ohos.application.appManager | appManager |
getProcessRunningInfos(): Promise
\<
Array
\<
ProcessRunningInfo>>;
<br>
getProcessRunningInfos(callback: AsyncCallback
\<
Array
\
<
ProcessRunningInfo>>): void; | 新增 |
| ohos.application.appManager | appManager |
isRunningInStabilityTest(callback: AsyncCallback
\<
boolean>): void;
<br>
isRunningInStabilityTest(): Promise
\
<
boolean>; | 新增 |
| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | DESTROY | 新增 |
| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | BACKGROUND | 新增 |
| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | FOREGROUND | 新增 |
| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | CREATE | 新增 |
| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | UNINITIALIZED | 新增 |
| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry |
function
getArguments(): AbilityDelegatorArgs; | 新增 |
| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry |
function
getAbilityDelegator(): AbilityDelegator; | 新增 |
| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry | getArguments(): AbilityDelegatorArgs; | 新增 |
| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry | getAbilityDelegator(): AbilityDelegator; | 新增 |
| ohos.abilityAccessCtrl | GrantStatus | PERMISSION_GRANTED = 0 | 新增 |
| ohos.abilityAccessCtrl | GrantStatus | PERMISSION_DENIED = -1 | 新增 |
| ohos.abilityAccessCtrl | AtManager | verifyAccessToken(tokenID: number, permissionName: string): Promise
<GrantStatus>
; | 新增 |
| ohos.abilityAccessCtrl | abilityAccessCtrl |
function
createAtManager(): AtManager; | 新增 |
| ohos.abilityAccessCtrl | AtManager | verifyAccessToken(tokenID: number, permissionName: string): Promise
\
<
GrantStatus>; | 新增 |
| ohos.abilityAccessCtrl | abilityAccessCtrl | createAtManager(): AtManager; | 新增 |
| ohos.ability.wantConstant | Action | ACTION_APP_ACCOUNT_OAUTH = "ohos.account.appAccount.action.oauth" | 新增 |
| ohos.ability.wantConstant | Action | ACTION_VIDEO_CAPTURE = "ohos.want.action.videoCapture" | 新增 |
| ohos.ability.wantConstant | Action | ACTION_IMAGE_CAPTURE = "ohos.want.action.imageCapture" | 新增 |
| ohos.ability.particleAbility | ErrorCode | INVALID_PARAMETER = -1 | 新增 |
| ohos.ability.particleAbility | particleAbility |
function disconnectAbility(connection: number, callback:AsyncCallback
<void>
): void;
<br>
function disconnectAbility(connection: number): Promise
<void>
; | 新增 |
| ohos.ability.particleAbility | particleAbility |
function
connectAbility(request: Want, options:ConnectOptions): number; | 新增 |
| ohos.ability.particleAbility | particleAbility |
function cancelBackgroundRunning(callback: AsyncCallback
<void>
): void;
<br>
function cancelBackgroundRunning(): Promise
<void>
; | 新增 |
| ohos.ability.particleAbility | particleAbility |
function startBackgroundRunning(id: number, request: NotificationRequest, callback: AsyncCallback
<void>
): void;
<br>
function startBackgroundRunning(id: number, request: NotificationRequest): Promise
<void>
; | 新增 |
| ohos.ability.featureAbility | featureAbility |
function getWindow(callback: AsyncCallback
<window.Window>
): void;
<br>
function getWindow(): Promise
<window.Window>
; | 新增 |
| ohos.ability.particleAbility | particleAbility |
disconnectAbility(connection: number, callback:AsyncCallback
\<
void>): void;
<br>
disconnectAbility(connection: number): Promise
\
<
void>; | 新增 |
| ohos.ability.particleAbility | particleAbility | connectAbility(request: Want, options:ConnectOptions): number; | 新增 |
| ohos.ability.particleAbility | particleAbility |
cancelBackgroundRunning(callback: AsyncCallback
\<
void>): void;
<br>
cancelBackgroundRunning(): Promise
\
<
void>; | 新增 |
| ohos.ability.particleAbility | particleAbility |
startBackgroundRunning(id: number, request: NotificationRequest, callback: AsyncCallback
\<
void>): void;
<br>
startBackgroundRunning(id: number, request: NotificationRequest): Promise
\
<
void>; | 新增 |
| ohos.ability.featureAbility | featureAbility |
getWindow(callback: AsyncCallback
\<
window.Window>): void;
<br>
getWindow(): Promise
\
<
window.Window>; | 新增 |
| ohos.ability.errorCode | ErrorCode | NO_ERROR = 0 | 新增 |
| ohos.ability.errorCode | ErrorCode | INVALID_PARAMETER = -1 | 新增 |
| ohos.ability.errorCode | ErrorCode | ABILITY_NOT_FOUND = -2 | 新增 |
| ohos.ability.errorCode | ErrorCode | PERMISSION_DENY = -3 | 新增 |
| lifecycle | LifecycleData | call?(method: string, arg: string, extras: PacMap, callback: AsyncCallback
<PacMap>
): void; | 新增 |
| lifecycle | LifecycleData | executeBatch?(ops: Array
<DataAbilityOperation>
, callback: AsyncCallback
<Array
<
DataAbilityResult
>
>): void; | 新增 |
| lifecycle | LifecycleData | call?(method: string, arg: string, extras: PacMap, callback: AsyncCallback
\
<
PacMap>): void; | 新增 |
| lifecycle | LifecycleData | executeBatch?(ops: Array
\<
DataAbilityOperation>, callback: AsyncCallback
\<
Array
\
<
DataAbilityResult>>): void; | 新增 |
| lifecycle | LifecycleService | onReconnect?(want: Want): void; | 新增 |
| lifecycle | LifecycleApp | onMemoryLevel?(level: number): void; | 新增 |
| lifecycle | LifecycleApp | onNewWant?(want: Want): void; | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ability_api-9-canary.md
浏览文件 @
e39dc96d
...
...
@@ -7,29 +7,29 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,元能力
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| AbilityContext | AbilityContext | restoreWindowStage(contentStorage: ContentStorage) : void; | 新增 |
| AbilityContext | AbilityContext | requestPermissionsFromUser(permissions: Array
<string>
, requestCallback: AsyncCallback
<PermissionRequestResult>
) : void;
<br>
requestPermissionsFromUser(permissions: Array
<string>
) : Promise
<PermissionRequestResult>
; | 新增 |
| AbilityContext | AbilityContext | setMissionLabel(label: string, callback:AsyncCallback
<void>
): void;
<br>
setMissionLabel(label: string): Promise
<void>
; | 新增 |
| AbilityContext | AbilityContext | disconnectAbility(connection: number, callback:AsyncCallback
<void>
): void;
<br>
disconnectAbility(connection: number): Promise
<void>
; | 新增 |
| AbilityContext | AbilityContext | requestPermissionsFromUser(permissions: Array
\<
string>, requestCallback: AsyncCallback
\<
PermissionRequestResult>) : void;
<br>
requestPermissionsFromUser(permissions: Array
\<
string>) : Promise
\
<
PermissionRequestResult>; | 新增 |
| AbilityContext | AbilityContext | setMissionLabel(label: string, callback:AsyncCallback
\<
void>): void;
<br>
setMissionLabel(label: string): Promise
\
<
void>; | 新增 |
| AbilityContext | AbilityContext | disconnectAbility(connection: number, callback:AsyncCallback
\<
void>): void;
<br>
disconnectAbility(connection: number): Promise
\
<
void>; | 新增 |
| AbilityContext | AbilityContext | connectAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): number; | 新增 |
| AbilityContext | AbilityContext | connectAbility(want: Want, options: ConnectOptions): number; | 新增 |
| AbilityContext | AbilityContext | terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback
<void>
): void;
<br>
terminateSelfWithResult(parameter: AbilityResult): Promise
<void>
; | 新增 |
| AbilityContext | AbilityContext | terminateSelf(callback: AsyncCallback
<void>
): void;
<br>
terminateSelf(): Promise
<void>
; | 新增 |
| AbilityContext | AbilityContext | startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncCallback
<AbilityResult>
): void;
<br>
startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback
<void>
): void;
<br>
startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartOptions): Promise
<AbilityResult>
; | 新增 |
| AbilityContext | AbilityContext | startAbilityForResult(want: Want, callback: AsyncCallback
<AbilityResult>
): void;
<br>
startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback
<AbilityResult>
): void;
<br>
startAbilityForResult(want: Want, options?: StartOptions): Promise
<AbilityResult>
; | 新增 |
| AbilityContext | AbilityContext | startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback
<void>
): void;
<br>
startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback
<void>
): void;
<br>
startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise
<void>
; | 新增 |
| AbilityContext | AbilityContext | startAbilityByCall(want: Want): Promise
<Caller>
; | 新增 |
| AbilityContext | AbilityContext | startAbility(want: Want, callback: AsyncCallback
<void>
): void;
<br>
startAbility(want: Want, options: StartOptions, callback: AsyncCallback
<void>
): void;
<br>
startAbility(want: Want, options?: StartOptions): Promise
<void>
; | 新增 |
| AbilityContext | AbilityContext | terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback
\<
void>): void;
<br>
terminateSelfWithResult(parameter: AbilityResult): Promise
\
<
void>; | 新增 |
| AbilityContext | AbilityContext | terminateSelf(callback: AsyncCallback
\<
void>): void;
<br>
terminateSelf(): Promise
\
<
void>; | 新增 |
| AbilityContext | AbilityContext | startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncCallback
\<
AbilityResult>): void;
<br>
startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback
\<
void>): void;
<br>
startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartOptions): Promise
\
<
AbilityResult>; | 新增 |
| AbilityContext | AbilityContext | startAbilityForResult(want: Want, callback: AsyncCallback
\<
AbilityResult>): void;
<br>
startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback
\<
AbilityResult>): void;
<br>
startAbilityForResult(want: Want, options?: StartOptions): Promise
\
<
AbilityResult>; | 新增 |
| AbilityContext | AbilityContext | startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback
\<
void>): void;
<br>
startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback
\<
void>): void;
<br>
startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise
\
<
void>; | 新增 |
| AbilityContext | AbilityContext | startAbilityByCall(want: Want): Promise
\
<
Caller>; | 新增 |
| AbilityContext | AbilityContext | startAbility(want: Want, callback: AsyncCallback
\<
void>): void;
<br>
startAbility(want: Want, options: StartOptions, callback: AsyncCallback
\<
void>): void;
<br>
startAbility(want: Want, options?: StartOptions): Promise
\
<
void>; | 新增 |
| AbilityContext | AbilityContext | config: Configuration; | 新增 |
| AbilityContext | AbilityContext | currentHapModuleInfo: HapModuleInfo; | 新增 |
| AbilityContext | AbilityContext | abilityInfo: AbilityInfo; | 新增 |
| abilityDelegator | AbilityDelegator | doAbilityBackground(ability: Ability, callback: AsyncCallback
<boolean>
): void;
<br>
doAbilityBackground(ability: Ability): Promise
<boolean>
; | 新增 |
| abilityDelegator | AbilityDelegator | doAbilityForeground(ability: Ability, callback: AsyncCallback
<boolean>
): void;
<br>
doAbilityForeground(ability: Ability): Promise
<boolean>
; | 新增 |
| abilityDelegator | AbilityDelegator | getCurrentTopAbility(callback: AsyncCallback
<Ability>
): void;
<br>
getCurrentTopAbility(): Promise
<Ability>
| 新增 |
| abilityDelegator | AbilityDelegator | doAbilityBackground(ability: Ability, callback: AsyncCallback
\<
boolean>): void;
<br>
doAbilityBackground(ability: Ability): Promise
\
<
boolean>; | 新增 |
| abilityDelegator | AbilityDelegator | doAbilityForeground(ability: Ability, callback: AsyncCallback
\<
boolean>): void;
<br>
doAbilityForeground(ability: Ability): Promise
\
<
boolean>; | 新增 |
| abilityDelegator | AbilityDelegator | getCurrentTopAbility(callback: AsyncCallback
\<
Ability>): void;
<br>
getCurrentTopAbility(): Promise
\
<
Ability> | 新增 |
| abilityDelegator | AbilityDelegator | getAbilityState(ability: Ability): number; | 新增 |
| abilityDelegator | AbilityDelegator | getAppContext(): Context; | 新增 |
| abilityDelegator | AbilityDelegator | waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback
<Ability>
): void;
<br>
waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback
<Ability>
): void;
<br>
waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise
<Ability>
; | 新增 |
| abilityDelegator | AbilityDelegator | removeAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback
<void>
): void;
<br>
removeAbilityMonitor(monitor: AbilityMonitor): Promise
<void>
; | 新增 |
| abilityDelegator | AbilityDelegator | addAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback
<void>
): void;
<br>
addAbilityMonitor(monitor: AbilityMonitor): Promise
<void>
; | 新增 |
| abilityDelegator | AbilityDelegator | waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback
\<
Ability>): void;
<br>
waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback
\<
Ability>): void;
<br>
waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise
\
<
Ability>; | 新增 |
| abilityDelegator | AbilityDelegator | removeAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback
\<
void>): void;
<br>
removeAbilityMonitor(monitor: AbilityMonitor): Promise
\
<
void>; | 新增 |
| abilityDelegator | AbilityDelegator | addAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback
\<
void>): void;
<br>
addAbilityMonitor(monitor: AbilityMonitor): Promise
\
<
void>; | 新增 |
| abilityMonitor | AbilityMonitor | onWindowStageDestroy?:() => void; | 新增 |
| abilityMonitor | AbilityMonitor | onWindowStageRestore?:() => void; | 新增 |
| abilityMonitor | AbilityMonitor | onWindowStageCreate?:() => void; | 新增 |
...
...
@@ -61,9 +61,9 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,元能力
| extensionAbilityInfo | ExtensionAbilityInfo | readonly writePermission: string; | 新增 |
| extensionAbilityInfo | ExtensionAbilityInfo | readonly readPermission: string; | 新增 |
| extensionAbilityInfo | ExtensionAbilityInfo | readonly enabled: boolean; | 新增 |
| extensionAbilityInfo | ExtensionAbilityInfo | readonly metadata: Array
<Metadata>
; | 新增 |
| extensionAbilityInfo | ExtensionAbilityInfo | readonly metadata: Array
\
<
Metadata>; | 新增 |
| extensionAbilityInfo | ExtensionAbilityInfo | readonly applicationInfo: ApplicationInfo; | 新增 |
| extensionAbilityInfo | ExtensionAbilityInfo | readonly permissions: Array
<string>
; | 新增 |
| extensionAbilityInfo | ExtensionAbilityInfo | readonly permissions: Array
\
<
string>; | 新增 |
| extensionAbilityInfo | ExtensionAbilityInfo | readonly extensionAbilityType: bundle.ExtensionAbilityType; | 新增 |
| extensionAbilityInfo | ExtensionAbilityInfo | readonly isVisible: boolean; | 新增 |
| extensionAbilityInfo | ExtensionAbilityInfo | readonly iconId: number; | 新增 |
...
...
@@ -75,13 +75,13 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,元能力
| ExtensionContext | ExtensionContext | config: Configuration; | 新增 |
| ExtensionContext | ExtensionContext | currentHapModuleInfo: HapModuleInfo; | 新增 |
| ExtensionRunningInfo | ExtensionRunningInfo | type: bundle.ExtensionAbilityType; | 新增 |
| ExtensionRunningInfo | ExtensionRunningInfo | clientPackage: Array
<String>
; | 新增 |
| ExtensionRunningInfo | ExtensionRunningInfo | clientPackage: Array
\
<
String>; | 新增 |
| ExtensionRunningInfo | ExtensionRunningInfo | startTime: number; | 新增 |
| ExtensionRunningInfo | ExtensionRunningInfo | processName: string; | 新增 |
| ExtensionRunningInfo | ExtensionRunningInfo | uid: number; | 新增 |
| ExtensionRunningInfo | ExtensionRunningInfo | pid: number; | 新增 |
| ExtensionRunningInfo | ExtensionRunningInfo | extension: ElementName; | 新增 |
| FormExtensionContext | FormExtensionContext | updateForm(formId: string, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback
<void>
): void;
<br>
updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise
<void>
; | 新增 |
| FormExtensionContext | FormExtensionContext | updateForm(formId: string, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback
\<
void>): void;
<br>
updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise
\
<
void>; | 新增 |
| ohos.application.Ability | Ability | onConfigurationUpdated(config: Configuration): void; | 新增 |
| ohos.application.Ability | Ability | onNewWant(want: Want): void; | 新增 |
| ohos.application.Ability | Ability | onContinue(wantParam : {[key: string]: any}): AbilityConstant.OnContinueResult; | 新增 |
...
...
@@ -100,8 +100,8 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,元能力
| ohos.application.Ability | Callee | on(method: string, callback: function): void; | 新增 |
| ohos.application.Ability | Caller | onRelease(callback: function): void; | 新增 |
| ohos.application.Ability | Caller | release(): void; | 新增 |
| ohos.application.Ability | Caller | callWithResult(method: string, data: rpc.Sequenceable): Promise
<rpc.MessageParcel>
; | 新增 |
| ohos.application.Ability | Caller | call(method: string, data: rpc.Sequenceable): Promise
<void>
; | 新增 |
| ohos.application.Ability | Caller | callWithResult(method: string, data: rpc.Sequenceable): Promise
\
<
rpc.MessageParcel>; | 新增 |
| ohos.application.Ability | Caller | call(method: string, data: rpc.Sequenceable): Promise
\
<
void>; | 新增 |
| ohos.application.AbilityConstant | OnContinueResult | MISMATCH = 2 | 新增 |
| ohos.application.AbilityConstant | OnContinueResult | REJECT = 1 | 新增 |
| ohos.application.AbilityConstant | OnContinueResult | AGREE = 0 | 新增 |
...
...
@@ -114,7 +114,7 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,元能力
| ohos.application.AbilityConstant | LaunchReason | UNKNOWN = 0 | 新增 |
| ohos.application.AbilityConstant | LaunchParam | lastExitReason: LastExitReason; | 新增 |
| ohos.application.AbilityConstant | LaunchParam | launchReason: LaunchReason; | 新增 |
| ohos.application.abilityManager | abilityManager |
function getExtensionRunningInfos(upperLimit: number): Promise
<Array
<
ExtensionRunningInfo
>
>;
<br>
function getExtensionRunningInfos(upperLimit: number, callback: AsyncCallback
<Array
<
ExtensionRunningInfo
>
>): void; | 新增 |
| ohos.application.abilityManager | abilityManager |
getExtensionRunningInfos(upperLimit: number): Promise
\<
Array
\<
ExtensionRunningInfo>>;
<br>
getExtensionRunningInfos(upperLimit: number, callback: AsyncCallback
\<
Array
\
<
ExtensionRunningInfo>>): void; | 新增 |
| ohos.application.AbilityStage | AbilityStage | onConfigurationUpdated(config: Configuration): void; | 新增 |
| ohos.application.AbilityStage | AbilityStage | onAcceptWant(want: Want): string; | 新增 |
| ohos.application.AbilityStage | AbilityStage | onCreate(): void; | 新增 |
...
...
@@ -132,15 +132,15 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,元能力
| ohos.application.ConfigurationConstant | Direction | DIRECTION_HORIZONTAL = 1 | 新增 |
| ohos.application.ConfigurationConstant | Direction | DIRECTION_VERTICAL = 0 | 新增 |
| ohos.application.ConfigurationConstant | Direction | DIRECTION_NOT_SET = -1 | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | denormalizeUri?(uri: string, callback: AsyncCallback
<string>
): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | normalizeUri?(uri: string, callback: AsyncCallback
<string>
): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | batchInsert?(uri: string, valueBuckets: Array
<rdb.ValuesBucket>
, callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | getType?(uri: string, callback: AsyncCallback
<string>
): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | "query?(uri: string, columns: Array
<string>
, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback
<ResultSet>
): void;" | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | delete?(uri: string, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | "update?(uri: string, valueBucket: rdb.ValuesBucket, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback
<number>
): void;" | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | insert?(uri: string, valueBucket: rdb.ValuesBucket, callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | getFileTypes?(uri: string, mimeTypeFilter: string, callback: AsyncCallback
<Array
<
string
>
>): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | denormalizeUri?(uri: string, callback: AsyncCallback
\
<
string>): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | normalizeUri?(uri: string, callback: AsyncCallback
\
<
string>): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | batchInsert?(uri: string, valueBuckets: Array
\<
rdb.ValuesBucket>, callback: AsyncCallback
\
<
number>): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | getType?(uri: string, callback: AsyncCallback
\
<
string>): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | "query?(uri: string, columns: Array
\<
string>, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback
\
<
ResultSet>): void;" | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | delete?(uri: string, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback
\
<
number>): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | "update?(uri: string, valueBucket: rdb.ValuesBucket, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback
\
<
number>): void;" | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | insert?(uri: string, valueBucket: rdb.ValuesBucket, callback: AsyncCallback
\
<
number>): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | getFileTypes?(uri: string, mimeTypeFilter: string, callback: AsyncCallback
\<
Array
\
<
string>>): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | onCreate?(want: Want): void; | 新增 |
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | context?: ExtensionContext; | 新增 |
| ohos.application.FormExtension | FormExtension | onConfigurationUpdated(config: Configuration): void; | 新增 |
...
...
@@ -176,22 +176,22 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,元能力
| ohos.application.ServiceExtensionAbility | ServiceExtensionAbility | context: ServiceExtensionContext; | 新增 |
| ohos.application.StartOptions | StartOptions | displayId?: number; | 新增 |
| ohos.application.StartOptions | StartOptions | windowMode?: number; | 新增 |
| ohos.application.uriPermissionManager | uriPermissionManager |
function verifyUriPermission(uri: string, flag: wantConstant.Flags, accessTokenId: number, callback: AsyncCallback
<number>
): void;
<br>
function verifyUriPermission(uri: string, flag: wantConstant.Flags, accessTokenId: number): Promise
<number>
; | 新增 |
| ohos.wantAgent | wantAgent |
function getOperationType(agent: WantAgent, callback: AsyncCallback
<number>
): void;
<br>
function getOperationType(agent: WantAgent): Promise
<number>
; | 新增 |
| PermissionRequestResult | PermissionRequestResult | authResults: Array
<number>
; | 新增 |
| PermissionRequestResult | PermissionRequestResult | permissions: Array
<string>
; | 新增 |
| ServiceExtAbilityContext | ServiceExtAbilityContext | disconnectAbility(connection: number, callback:AsyncCallback
<void>
): void;
<br>
disconnectAbility(connection: number): Promise
<void>
; | 新增 |
| ohos.application.uriPermissionManager | uriPermissionManager |
verifyUriPermission(uri: string, flag: wantConstant.Flags, accessTokenId: number, callback: AsyncCallback
\<
number>): void;
<br>
verifyUriPermission(uri: string, flag: wantConstant.Flags, accessTokenId: number): Promise
\
<
number>; | 新增 |
| ohos.wantAgent | wantAgent |
getOperationType(agent: WantAgent, callback: AsyncCallback
\<
number>): void;
<br>
getOperationType(agent: WantAgent): Promise
\
<
number>; | 新增 |
| PermissionRequestResult | PermissionRequestResult | authResults: Array
\
<
number>; | 新增 |
| PermissionRequestResult | PermissionRequestResult | permissions: Array
\
<
string>; | 新增 |
| ServiceExtAbilityContext | ServiceExtAbilityContext | disconnectAbility(connection: number, callback:AsyncCallback
\<
void>): void;
<br>
disconnectAbility(connection: number): Promise
\
<
void>; | 新增 |
| ServiceExtAbilityContext | ServiceExtAbilityContext | connectAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): number; | 新增 |
| ServiceExtAbilityContext | ServiceExtAbilityContext | connectAbility(want: Want, options: ConnectOptions): number; | 新增 |
| ServiceExtAbilityContext | ServiceExtAbilityContext | terminateSelf(callback: AsyncCallback
<void>
): void;
<br>
terminateSelf(): Promise
<void>
; | 新增 |
| ServiceExtAbilityContext | ServiceExtAbilityContext | startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback
<void>
): void;
<br>
startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback
<void>
): void;
<br>
startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise
<void>
; | 新增 |
| ServiceExtAbilityContext | ServiceExtAbilityContext | startAbility(want: Want, callback: AsyncCallback
<void>
): void;
<br>
startAbility(want: Want, options: StartOptions, callback: AsyncCallback
<void>
): void;
<br>
startAbility(want: Want, options?: StartOptions): Promise
<void>
; | 新增 |
| ServiceExtensionContext | ServiceExtensionContext | disconnectAbility(connection: number, callback:AsyncCallback
<void>
): void;
<br>
disconnectAbility(connection: number): Promise
<void>
; | 新增 |
| ServiceExtAbilityContext | ServiceExtAbilityContext | terminateSelf(callback: AsyncCallback
\<
void>): void;
<br>
terminateSelf(): Promise
\
<
void>; | 新增 |
| ServiceExtAbilityContext | ServiceExtAbilityContext | startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback
\<
void>): void;
<br>
startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback
\<
void>): void;
<br>
startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise
\
<
void>; | 新增 |
| ServiceExtAbilityContext | ServiceExtAbilityContext | startAbility(want: Want, callback: AsyncCallback
\<
void>): void;
<br>
startAbility(want: Want, options: StartOptions, callback: AsyncCallback
\<
void>): void;
<br>
startAbility(want: Want, options?: StartOptions): Promise
\
<
void>; | 新增 |
| ServiceExtensionContext | ServiceExtensionContext | disconnectAbility(connection: number, callback:AsyncCallback
\<
void>): void;
<br>
disconnectAbility(connection: number): Promise
\
<
void>; | 新增 |
| ServiceExtensionContext | ServiceExtensionContext | connectAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): number; | 新增 |
| ServiceExtensionContext | ServiceExtensionContext | connectAbility(want: Want, options: ConnectOptions): number; | 新增 |
| ServiceExtensionContext | ServiceExtensionContext | terminateSelf(callback: AsyncCallback
<void>
): void;
<br>
terminateSelf(): Promise
<void>
; | 新增 |
| ServiceExtensionContext | ServiceExtensionContext | startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback
<void>
): void;
<br>
startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback
<void>
): void;
<br>
startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise
<void>
; | 新增 |
| ServiceExtensionContext | ServiceExtensionContext | startAbility(want: Want, callback: AsyncCallback
<void>
): void;
<br>
startAbility(want: Want, options: StartOptions, callback: AsyncCallback
<void>
): void;
<br>
startAbility(want: Want, options?: StartOptions): Promise
<void>
; | 新增 |
| ServiceExtensionContext | ServiceExtensionContext | terminateSelf(callback: AsyncCallback
\<
void>): void;
<br>
terminateSelf(): Promise
\
<
void>; | 新增 |
| ServiceExtensionContext | ServiceExtensionContext | startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback
\<
void>): void;
<br>
startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback
\<
void>): void;
<br>
startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise
\
<
void>; | 新增 |
| ServiceExtensionContext | ServiceExtensionContext | startAbility(want: Want, callback: AsyncCallback
\<
void>): void;
<br>
startAbility(want: Want, options: StartOptions, callback: AsyncCallback
\<
void>): void;
<br>
startAbility(want: Want, options?: StartOptions): Promise
\
<
void>; | 新增 |
| ServiceExtensionContext | ServiceExtensionContext | extensionAbilityInfo: ExtensionAbilityInfo; | 新增 |
| want | Want | extensionAbilityType?: number; | 新增 |
| want | Want | extensionAbilityName?: string; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md
浏览文件 @
e39dc96d
...
...
@@ -11,7 +11,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,无障碍子
| ohos.accessibility | EventInfo | currentIndex?: number; | 新增 |
| ohos.accessibility | EventInfo | beginIndex?: number; | 新增 |
| ohos.accessibility | EventInfo | lastContent?: string; | 新增 |
| ohos.accessibility | EventInfo | contents?: Array
<string>
; | 新增 |
| ohos.accessibility | EventInfo | contents?: Array
\
<
string>; | 新增 |
| ohos.accessibility | EventInfo | textMoveUnit?: TextMoveUnit; | 新增 |
| ohos.accessibility | EventInfo | triggerAction: Action; | 新增 |
| ohos.accessibility | EventInfo | description?: string; | 新增 |
...
...
@@ -21,10 +21,10 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,无障碍子
| ohos.accessibility | EventInfo | windowUpdateType?: WindowUpdateType; | 新增 |
| ohos.accessibility | EventInfo | type: EventType; | 新增 |
| ohos.accessibility | EventInfo | constructor(jsonObject); | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly eventTypes: Array
<EventType>
; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly eventTypes: Array
\
<
EventType>; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly description: string; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly capabilities: Array
<Capability>
; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly abilityTypes: Array
<AbilityType>
; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly capabilities: Array
\
<
Capability>; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly abilityTypes: Array
\
<
AbilityType>; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly bundleName: string; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly name: string; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly id: string; | 新增 |
...
...
@@ -34,18 +34,18 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,无障碍子
| ohos.accessibility | CaptionsStyle | fontColor: number
\|
string; | 新增 |
| ohos.accessibility | CaptionsStyle | fontScale: number; | 新增 |
| ohos.accessibility | CaptionsStyle | fontFamily: CaptionsFontFamily; | 新增 |
| ohos.accessibility | CaptionsManager | off(type: 'styleChange', callback?: Callback
<CaptionsStyle>
): void; | 新增 |
| ohos.accessibility | CaptionsManager | off(type: 'enableChange', callback?: Callback
<boolean>
): void; | 新增 |
| ohos.accessibility | CaptionsManager | on(type: 'styleChange', callback: Callback
<CaptionsStyle>
): void; | 新增 |
| ohos.accessibility | CaptionsManager | on(type: 'enableChange', callback: Callback
<boolean>
): void; | 新增 |
| ohos.accessibility | CaptionsManager | off(type: 'styleChange', callback?: Callback
\
<
CaptionsStyle>): void; | 新增 |
| ohos.accessibility | CaptionsManager | off(type: 'enableChange', callback?: Callback
\
<
boolean>): void; | 新增 |
| ohos.accessibility | CaptionsManager | on(type: 'styleChange', callback: Callback
\
<
CaptionsStyle>): void; | 新增 |
| ohos.accessibility | CaptionsManager | on(type: 'enableChange', callback: Callback
\
<
boolean>): void; | 新增 |
| ohos.accessibility | CaptionsManager | style: CaptionsStyle; | 新增 |
| ohos.accessibility | CaptionsManager | enabled: boolean; | 新增 |
| ohos.accessibility | accessibility |
function
getCaptionsManager(): CaptionsManager; | 新增 |
| ohos.accessibility | accessibility |
function off(type: 'touchGuideStateChange', callback?: Callback
<boolean>
): void; | 新增 |
| ohos.accessibility | accessibility |
function off(type: 'accessibilityStateChange', callback?: Callback
<boolean>
): void; | 新增 |
| ohos.accessibility | accessibility |
function on(type: 'touchGuideStateChange', callback: Callback
<boolean>
): void; | 新增 |
| ohos.accessibility | accessibility |
function on(type: 'accessibilityStateChange', callback: Callback
<boolean>
): void; | 新增 |
| ohos.accessibility | accessibility |
function sendEvent(event: EventInfo, callback: AsyncCallback
<void>
): void;
<br>
function sendEvent(event: EventInfo): Promise
<void>
; | 新增 |
| ohos.accessibility | accessibility |
function getAbilityLists(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback
<Array
<
AccessibilityAbilityInfo
>
>): void;
<br>
function getAbilityLists(abilityType: AbilityType, stateType: AbilityState): Promise
<Array
<
AccessibilityAbilityInfo
>
>; | 新增 |
| ohos.accessibility | accessibility |
function isOpenTouchGuide(callback: AsyncCallback
<boolean>
): void;
<br>
function isOpenTouchGuide(): Promise
<boolean>
; | 新增 |
| ohos.accessibility | accessibility |
function isOpenAccessibility(callback: AsyncCallback
<boolean>
): void;
<br>
function isOpenAccessibility(): Promise
<boolean>
; | 新增 |
| ohos.accessibility | accessibility | getCaptionsManager(): CaptionsManager; | 新增 |
| ohos.accessibility | accessibility |
off(type: 'touchGuideStateChange', callback?: Callback
\
<
boolean>): void; | 新增 |
| ohos.accessibility | accessibility |
off(type: 'accessibilityStateChange', callback?: Callback
\
<
boolean>): void; | 新增 |
| ohos.accessibility | accessibility |
on(type: 'touchGuideStateChange', callback: Callback
\
<
boolean>): void; | 新增 |
| ohos.accessibility | accessibility |
on(type: 'accessibilityStateChange', callback: Callback
\
<
boolean>): void; | 新增 |
| ohos.accessibility | accessibility |
sendEvent(event: EventInfo, callback: AsyncCallback
\<
void>): void;
<br>
sendEvent(event: EventInfo): Promise
\
<
void>; | 新增 |
| ohos.accessibility | accessibility |
getAbilityLists(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback
\<
Array
\<
AccessibilityAbilityInfo>>): void;
<br>
getAbilityLists(abilityType: AbilityType, stateType: AbilityState): Promise
\<
Array
\
<
AccessibilityAbilityInfo>>; | 新增 |
| ohos.accessibility | accessibility |
isOpenTouchGuide(callback: AsyncCallback
\<
boolean>): void;
<br>
isOpenTouchGuide(): Promise
\
<
boolean>; | 新增 |
| ohos.accessibility | accessibility |
isOpenAccessibility(callback: AsyncCallback
\<
boolean>): void;
<br>
isOpenAccessibility(): Promise
\
<
boolean>; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-account.md
浏览文件 @
e39dc96d
#
账
号子系统JS API变更
#
帐
号子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
账
号子系统的API变更如下:
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,
帐
号子系统的API变更如下:
## 接口变更
...
...
@@ -20,27 +20,27 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,账号子系
| ohos.account.osAccount | OsAccountInfo | createTime: number; | 新增 |
| ohos.account.osAccount | OsAccountInfo | photo: string; | 新增 |
| ohos.account.osAccount | OsAccountInfo | isVerified: boolean; | 新增 |
| ohos.account.osAccount | OsAccountInfo | constraints: Array
<string>
; | 新增 |
| ohos.account.osAccount | OsAccountInfo | constraints: Array
\
<
string>; | 新增 |
| ohos.account.osAccount | OsAccountInfo | type: OsAccountType; | 新增 |
| ohos.account.osAccount | OsAccountInfo | localName: string; | 新增 |
| ohos.account.osAccount | OsAccountInfo | localId: number; | 新增 |
| ohos.account.osAccount | AccountManager | getSerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback
<number>
): void;
<br>
getSerialNumberByOsAccountLocalId(localId: number): Promise
<number>
; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback
<number>
): void;
<br>
getOsAccountLocalIdBySerialNumber(serialNumber: number): Promise
<number>
; | 新增 |
| ohos.account.osAccount | AccountManager | getDistributedVirtualDeviceId(callback: AsyncCallback
<string>
): void;
<br>
getDistributedVirtualDeviceId(): Promise
<string>
; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountTypeFromProcess(callback: AsyncCallback
<OsAccountType>
): void;
<br>
getOsAccountTypeFromProcess(): Promise
<OsAccountType>
; | 新增 |
| ohos.account.osAccount | AccountManager | queryCurrentOsAccount(callback: AsyncCallback
<OsAccountInfo>
): void;
<br>
queryCurrentOsAccount(): Promise
<OsAccountInfo>
; | 新增 |
| ohos.account.osAccount | AccountManager | queryActivatedOsAccountIds(callback: AsyncCallback
<Array
<
number
>
>): void;
<br>
queryActivatedOsAccountIds(): Promise
<Array
<
number
>
>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountAllConstraints(localId: number, callback: AsyncCallback
<Array
<
string
>
>): void;
<br>
getOsAccountAllConstraints(localId: number): Promise
<Array
<
string
>
>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback
<number>
): void;
<br>
getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise
<number>
; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback
<number>
): void;
<br>
getOsAccountLocalIdFromUid(uid: number): Promise
<number>
; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromProcess(callback: AsyncCallback
<number>
): void;
<br>
getOsAccountLocalIdFromProcess(): Promise
<number>
; | 新增 |
| ohos.account.osAccount | AccountManager | getCreatedOsAccountsCount(callback: AsyncCallback
<number>
): void;
<br>
getCreatedOsAccountsCount(): Promise
<number>
; | 新增 |
| ohos.account.osAccount | AccountManager | isOsAccountVerified(callback: AsyncCallback
<boolean>
): void;
<br>
isOsAccountVerified(localId: number, callback: AsyncCallback
<boolean>
): void;
<br>
isOsAccountVerified(localId?: number): Promise
<boolean>
; | 新增 |
| ohos.account.osAccount | AccountManager | isTestOsAccount(callback: AsyncCallback
<boolean>
): void;
<br>
isTestOsAccount(): Promise
<boolean>
; | 新增 |
| ohos.account.osAccount | AccountManager | isOsAccountConstraintEnable(localId: number, constraint: string, callback: AsyncCallback
<boolean>
): void;
<br>
isOsAccountConstraintEnable(localId: number, constraint: string): Promise
<boolean>
; | 新增 |
| ohos.account.osAccount | AccountManager | isOsAccountActived(localId: number, callback: AsyncCallback
<boolean>
): void;
<br>
isOsAccountActived(localId: number): Promise
<boolean>
; | 新增 |
| ohos.account.osAccount | AccountManager | isMultiOsAccountEnable(callback: AsyncCallback
<boolean>
): void;
<br>
isMultiOsAccountEnable(): Promise
<boolean>
; | 新增 |
| ohos.account.osAccount | osAccount |
function
getAccountManager(): AccountManager; | 新增 |
| ohos.account.osAccount | AccountManager | getSerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback
\<
number>): void;
<br>
getSerialNumberByOsAccountLocalId(localId: number): Promise
\
<
number>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback
\<
number>): void;
<br>
getOsAccountLocalIdBySerialNumber(serialNumber: number): Promise
\
<
number>; | 新增 |
| ohos.account.osAccount | AccountManager | getDistributedVirtualDeviceId(callback: AsyncCallback
\<
string>): void;
<br>
getDistributedVirtualDeviceId(): Promise
\
<
string>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountTypeFromProcess(callback: AsyncCallback
\<
OsAccountType>): void;
<br>
getOsAccountTypeFromProcess(): Promise
\
<
OsAccountType>; | 新增 |
| ohos.account.osAccount | AccountManager | queryCurrentOsAccount(callback: AsyncCallback
\<
OsAccountInfo>): void;
<br>
queryCurrentOsAccount(): Promise
\
<
OsAccountInfo>; | 新增 |
| ohos.account.osAccount | AccountManager | queryActivatedOsAccountIds(callback: AsyncCallback
\<
Array
\<
number>>): void;
<br>
queryActivatedOsAccountIds(): Promise
\<
Array
\
<
number>>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountAllConstraints(localId: number, callback: AsyncCallback
\<
Array
\<
string>>): void;
<br>
getOsAccountAllConstraints(localId: number): Promise
\<
Array
\
<
string>>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback
\<
number>): void;
<br>
getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise
\
<
number>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback
\<
number>): void;
<br>
getOsAccountLocalIdFromUid(uid: number): Promise
\
<
number>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromProcess(callback: AsyncCallback
\<
number>): void;
<br>
getOsAccountLocalIdFromProcess(): Promise
\
<
number>; | 新增 |
| ohos.account.osAccount | AccountManager | getCreatedOsAccountsCount(callback: AsyncCallback
\<
number>): void;
<br>
getCreatedOsAccountsCount(): Promise
\
<
number>; | 新增 |
| ohos.account.osAccount | AccountManager | isOsAccountVerified(callback: AsyncCallback
\<
boolean>): void;
<br>
isOsAccountVerified(localId: number, callback: AsyncCallback
\<
boolean>): void;
<br>
isOsAccountVerified(localId?: number): Promise
\
<
boolean>; | 新增 |
| ohos.account.osAccount | AccountManager | isTestOsAccount(callback: AsyncCallback
\<
boolean>): void;
<br>
isTestOsAccount(): Promise
\
<
boolean>; | 新增 |
| ohos.account.osAccount | AccountManager | isOsAccountConstraintEnable(localId: number, constraint: string, callback: AsyncCallback
\<
boolean>): void;
<br>
isOsAccountConstraintEnable(localId: number, constraint: string): Promise
\
<
boolean>; | 新增 |
| ohos.account.osAccount | AccountManager | isOsAccountActived(localId: number, callback: AsyncCallback
\<
boolean>): void;
<br>
isOsAccountActived(localId: number): Promise
\
<
boolean>; | 新增 |
| ohos.account.osAccount | AccountManager | isMultiOsAccountEnable(callback: AsyncCallback
\<
boolean>): void;
<br>
isMultiOsAccountEnable(): Promise
\
<
boolean>; | 新增 |
| ohos.account.osAccount | osAccount | getAccountManager(): AccountManager; | 新增 |
| ohos.account.appAccount | Authenticator | authenticate(name: string, authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | 新增 |
| ohos.account.appAccount | Authenticator | addAccountImplicitly(authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | 新增 |
| ohos.account.appAccount | AuthenticatorCallback | onRequestRedirected: (request: Want) => void; | 新增 |
...
...
@@ -82,31 +82,31 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,账号子系
| ohos.account.appAccount | OAuthTokenInfo | authType: string; | 新增 |
| ohos.account.appAccount | AppAccountInfo | name: string; | 新增 |
| ohos.account.appAccount | AppAccountInfo | owner: string; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAuthenticatorInfo(owner: string, callback: AsyncCallback
<AuthenticatorInfo>
): void;
<br>
getAuthenticatorInfo(owner: string): Promise
<AuthenticatorInfo>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAuthenticatorCallback(sessionId: string, callback: AsyncCallback
<AuthenticatorCallback>
): void;
<br>
getAuthenticatorCallback(sessionId: string): Promise
<AuthenticatorCallback>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | getOAuthList(name: string, authType: string, callback: AsyncCallback
<Array
<
string
>
>): void;
<br>
getOAuthList(name: string, authType: string): Promise
<Array
<
string
>
>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAllOAuthTokens(name: string, owner: string, callback: AsyncCallback
<Array
<
OAuthTokenInfo
>
>): void;
<br>
getAllOAuthTokens(name: string, owner: string): Promise
<Array
<
OAuthTokenInfo
>
>; | 新增 |
| ohos.account.appAccount | AppAccountManager | checkOAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback
<boolean>
): void;
<br>
checkOAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise
<boolean>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean, callback: AsyncCallback
<void>
): void;
<br>
setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | deleteOAuthToken(name: string, owner: string, authType: string, token: string, callback: AsyncCallback
<void>
): void;
<br>
deleteOAuthToken(name: string, owner: string, authType: string, token: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | setOAuthToken(name: string, authType: string, token: string, callback: AsyncCallback
<void>
): void;
<br>
setOAuthToken(name: string, authType: string, token: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | getOAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback
<string>
): void;
<br>
getOAuthToken(name: string, owner: string, authType: string): Promise
<string>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAuthenticatorInfo(owner: string, callback: AsyncCallback
\<
AuthenticatorInfo>): void;
<br>
getAuthenticatorInfo(owner: string): Promise
\
<
AuthenticatorInfo>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAuthenticatorCallback(sessionId: string, callback: AsyncCallback
\<
AuthenticatorCallback>): void;
<br>
getAuthenticatorCallback(sessionId: string): Promise
\
<
AuthenticatorCallback>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getOAuthList(name: string, authType: string, callback: AsyncCallback
\<
Array
\<
string>>): void;
<br>
getOAuthList(name: string, authType: string): Promise
\<
Array
\
<
string>>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAllOAuthTokens(name: string, owner: string, callback: AsyncCallback
\<
Array
\<
OAuthTokenInfo>>): void;
<br>
getAllOAuthTokens(name: string, owner: string): Promise
\<
Array
\
<
OAuthTokenInfo>>; | 新增 |
| ohos.account.appAccount | AppAccountManager | checkOAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback
\<
boolean>): void;
<br>
checkOAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise
\
<
boolean>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean, callback: AsyncCallback
\<
void>): void;
<br>
setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise
\
<
void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | deleteOAuthToken(name: string, owner: string, authType: string, token: string, callback: AsyncCallback
\<
void>): void;
<br>
deleteOAuthToken(name: string, owner: string, authType: string, token: string): Promise
\
<
void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setOAuthToken(name: string, authType: string, token: string, callback: AsyncCallback
\<
void>): void;
<br>
setOAuthToken(name: string, authType: string, token: string): Promise
\
<
void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getOAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback
\<
string>): void;
<br>
getOAuthToken(name: string, owner: string, authType: string): Promise
\
<
string>; | 新增 |
| ohos.account.appAccount | AppAccountManager | authenticate(name: string, owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | 新增 |
| ohos.account.appAccount | AppAccountManager | off(type: 'change', callback?: Callback
<Array
<
AppAccountInfo
>
>): void; | 新增 |
| ohos.account.appAccount | AppAccountManager | on(type: 'change', owners: Array
<string>
, callback: Callback
<Array
<
AppAccountInfo
>
>): void; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAssociatedData(name: string, key: string, callback: AsyncCallback
<string>
): void;
<br>
getAssociatedData(name: string, key: string): Promise
<string>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAccountExtraInfo(name: string, callback: AsyncCallback
<string>
): void;
<br>
getAccountExtraInfo(name: string): Promise
<string>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAccountCredential(name: string, credentialType: string, callback: AsyncCallback
<string>
): void;
<br>
getAccountCredential(name: string, credentialType: string): Promise
<string>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAllAccounts(owner: string, callback: AsyncCallback
<Array
<
AppAccountInfo
>
>): void;
<br>
getAllAccounts(owner: string): Promise
<Array
<
AppAccountInfo
>
>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAllAccessibleAccounts(callback: AsyncCallback
<Array
<
AppAccountInfo
>
>): void;
<br>
getAllAccessibleAccounts(): Promise
<Array
<
AppAccountInfo
>
>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback
<void>
): void;
<br>
setAssociatedData(name: string, key: string, value: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback
<void>
): void;
<br>
setAppAccountSyncEnable(name: string, isEnable: boolean): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback
<void>
): void;
<br>
setAccountExtraInfo(name: string, extraInfo: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAccountCredential(name: string, credentialType: string, credential: string, callback: AsyncCallback
<void>
): void;
<br>
setAccountCredential(name: string, credentialType: string, credential: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | checkAppAccountSyncEnable(name: string, callback: AsyncCallback
<boolean>
): void;
<br>
checkAppAccountSyncEnable(name: string): Promise
<boolean>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | enableAppAccess(name: string, bundleName: string, callback: AsyncCallback
<void>
): void;
<br>
enableAppAccess(name: string, bundleName: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | disableAppAccess(name: string, bundleName: string, callback: AsyncCallback
<void>
): void;
<br>
disableAppAccess(name: string, bundleName: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | deleteAccount(name: string, callback: AsyncCallback
<void>
): void;
<br>
deleteAccount(name: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | AppAccountManager | off(type: 'change', callback?: Callback
\<
Array
\
<
AppAccountInfo>>): void; | 新增 |
| ohos.account.appAccount | AppAccountManager | on(type: 'change', owners: Array
\<
string>, callback: Callback
\<
Array
\
<
AppAccountInfo>>): void; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAssociatedData(name: string, key: string, callback: AsyncCallback
\<
string>): void;
<br>
getAssociatedData(name: string, key: string): Promise
\
<
string>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAccountExtraInfo(name: string, callback: AsyncCallback
\<
string>): void;
<br>
getAccountExtraInfo(name: string): Promise
\
<
string>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAccountCredential(name: string, credentialType: string, callback: AsyncCallback
\<
string>): void;
<br>
getAccountCredential(name: string, credentialType: string): Promise
\
<
string>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAllAccounts(owner: string, callback: AsyncCallback
\<
Array
\<
AppAccountInfo>>): void;
<br>
getAllAccounts(owner: string): Promise
\<
Array
\
<
AppAccountInfo>>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAllAccessibleAccounts(callback: AsyncCallback
\<
Array
\<
AppAccountInfo>>): void;
<br>
getAllAccessibleAccounts(): Promise
\<
Array
\
<
AppAccountInfo>>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback
\<
void>): void;
<br>
setAssociatedData(name: string, key: string, value: string): Promise
\
<
void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback
\<
void>): void;
<br>
setAppAccountSyncEnable(name: string, isEnable: boolean): Promise
\
<
void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback
\<
void>): void;
<br>
setAccountExtraInfo(name: string, extraInfo: string): Promise
\
<
void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAccountCredential(name: string, credentialType: string, credential: string, callback: AsyncCallback
\<
void>): void;
<br>
setAccountCredential(name: string, credentialType: string, credential: string): Promise
\
<
void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | checkAppAccountSyncEnable(name: string, callback: AsyncCallback
\<
boolean>): void;
<br>
checkAppAccountSyncEnable(name: string): Promise
\
<
boolean>; | 新增 |
| ohos.account.appAccount | AppAccountManager | enableAppAccess(name: string, bundleName: string, callback: AsyncCallback
\<
void>): void;
<br>
enableAppAccess(name: string, bundleName: string): Promise
\
<
void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | disableAppAccess(name: string, bundleName: string, callback: AsyncCallback
\<
void>): void;
<br>
disableAppAccess(name: string, bundleName: string): Promise
\
<
void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | deleteAccount(name: string, callback: AsyncCallback
\<
void>): void;
<br>
deleteAccount(name: string): Promise
\
<
void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | addAccountImplicitly(owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | 新增 |
| ohos.account.appAccount | AppAccountManager | addAccount(name: string, callback: AsyncCallback
<void>
): void;
<br>
addAccount(name: string, extraInfo: string, callback: AsyncCallback
<void>
): void;
<br>
addAccount(name: string, extraInfo?: string): Promise
<void>
; | 新增 |
| ohos.account.appAccount | appAccount |
function
createAppAccountManager(): AppAccountManager; | 新增 |
| ohos.account.appAccount | AppAccountManager | addAccount(name: string, callback: AsyncCallback
\<
void>): void;
<br>
addAccount(name: string, extraInfo: string, callback: AsyncCallback
\<
void>): void;
<br>
addAccount(name: string, extraInfo?: string): Promise
\
<
void>; | 新增 |
| ohos.account.appAccount | appAccount | createAppAccountManager(): AppAccountManager; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-battery.md
浏览文件 @
e39dc96d
...
...
@@ -6,9 +6,9 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,电源服务
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.thermal | thermal |
function
getThermalLevel(): ThermalLevel; | 新增 |
| ohos.thermal | thermal |
function unsubscribeThermalLevel(callback?: AsyncCallback
<void>
): void; | 新增 |
| ohos.thermal | thermal |
function subscribeThermalLevel(callback: AsyncCallback
<ThermalLevel>
): void; | 新增 |
| ohos.thermal | thermal | getThermalLevel(): ThermalLevel; | 新增 |
| ohos.thermal | thermal |
unsubscribeThermalLevel(callback?: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.thermal | thermal |
subscribeThermalLevel(callback: AsyncCallback
\
<
ThermalLevel>): void; | 新增 |
| ohos.thermal | ThermalLevel | EMERGENCY = 6 | 新增 |
| ohos.thermal | ThermalLevel | WARNING = 5 | 新增 |
| ohos.thermal | ThermalLevel | OVERHEATED = 4 | 新增 |
...
...
@@ -16,5 +16,5 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,电源服务
| ohos.thermal | ThermalLevel | WARM = 2 | 新增 |
| ohos.thermal | ThermalLevel | NORMAL = 1 | 新增 |
| ohos.thermal | ThermalLevel | COOL = 0 | 新增 |
| ohos.runninglock | runningLock |
function createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback
<RunningLock>
): void;
<br>
function createRunningLock(name: string, type: RunningLockType): Promise
<RunningLock>
; | 新增 |
| ohos.runninglock | runningLock |
function isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback
<boolean>
): void;
<br>
function isRunningLockTypeSupported(type: RunningLockType): Promise
<boolean>
; | 新增 |
| ohos.runninglock | runningLock |
createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback
\<
RunningLock>): void;
<br>
createRunningLock(name: string, type: RunningLockType): Promise
\
<
RunningLock>; | 新增 |
| ohos.runninglock | runningLock |
isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback
\<
boolean>): void;
<br>
isRunningLockTypeSupported(type: RunningLockType): Promise
\
<
boolean>; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md
浏览文件 @
e39dc96d
...
...
@@ -14,13 +14,13 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,包管理子
| launcherAbilityInfo | LauncherAbilityInfo | readonly labelId: number; | 新增 |
| launcherAbilityInfo | LauncherAbilityInfo | readonly elementName : ElementName; | 新增 |
| launcherAbilityInfo | LauncherAbilityInfo | readonly applicationInfo: ApplicationInfo; | 新增 |
| bundleInfo | BundleInfo | readonly reqPermissionStates: Array
<number>
; | 新增 |
| bundleInfo | BundleInfo | readonly hapModuleInfos: Array
<HapModuleInfo>
; | 新增 |
| bundleInfo | BundleInfo | readonly abilityInfos: Array
<AbilityInfo>
; | 新增 |
| bundleInfo | BundleInfo | readonly reqPermissionStates: Array
\
<
number>; | 新增 |
| bundleInfo | BundleInfo | readonly hapModuleInfos: Array
\
<
HapModuleInfo>; | 新增 |
| bundleInfo | BundleInfo | readonly abilityInfos: Array
\
<
AbilityInfo>; | 新增 |
| abilityInfo | AbilityInfo | readonly enabled: boolean; | 新增 |
| abilityInfo | AbilityInfo | readonly metaData: Array
<CustomizeData>
; | 新增 |
| ohos.zlib | zlib |
function unzipFile(inFile:string, outFile:string, options: Options): Promise
<void>
; | 新增 |
| ohos.zlib | zlib |
function zipFile(inFile:string, outFile:string, options: Options): Promise
<void>
; | 新增 |
| abilityInfo | AbilityInfo | readonly metaData: Array
\
<
CustomizeData>; | 新增 |
| ohos.zlib | zlib |
unzipFile(inFile:string, outFile:string, options: Options): Promise
\
<
void>; | 新增 |
| ohos.zlib | zlib |
zipFile(inFile:string, outFile:string, options: Options): Promise
\
<
void>; | 新增 |
| ohos.zlib | Options | strategy?: CompressStrategy; | 新增 |
| ohos.zlib | Options | memLevel?: MemLevel; | 新增 |
| ohos.zlib | Options | level?: CompressLevel; | 新增 |
...
...
@@ -38,12 +38,12 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,包管理子
| ohos.zlib | CompressLevel | COMPRESS_LEVEL_NO_COMPRESSION = 0 | 新增 |
| ohos.zlib | ErrorCode | ERROR_CODE_ERRNO = -1 | 新增 |
| ohos.zlib | ErrorCode | ERROR_CODE_OK = 0 | 新增 |
| ohos.bundle | bundle |
function isApplicationEnabled(bundleName: string, callback: AsyncCallback
<boolean>
): void;
<br>
function isApplicationEnabled(bundleName: string): Promise
<boolean>
; | 新增 |
| ohos.bundle | bundle |
function isAbilityEnabled(info: AbilityInfo, callback: AsyncCallback
<boolean>
): void;
<br>
function isAbilityEnabled(info: AbilityInfo): Promise
<boolean>
; | 新增 |
| ohos.bundle | bundle |
function getAbilityIcon(bundleName: string, abilityName: string, callback: AsyncCallback
<image.PixelMap>
): void;
<br>
function getAbilityIcon(bundleName: string, abilityName: string): Promise
<image.PixelMap>
; | 新增 |
| ohos.bundle | bundle |
function getAbilityLabel(bundleName: string, abilityName: string, callback: AsyncCallback
<string>
): void;
<br>
function getAbilityLabel(bundleName: string, abilityName: string): Promise
<string>
; | 新增 |
| ohos.bundle | bundle |
function getNameForUid(uid: number, callback: AsyncCallback
<string>
) : void
<br>
function getNameForUid(uid: number) : Promise
<string>
; | 新增 |
| ohos.bundle | bundle |
function getAbilityInfo(bundleName: string, abilityName: string, callback: AsyncCallback
<AbilityInfo>
): void;
<br>
function getAbilityInfo(bundleName: string, abilityName: string): Promise
<AbilityInfo>
; | 新增 |
| ohos.bundle | bundle |
isApplicationEnabled(bundleName: string, callback: AsyncCallback
\<
boolean>): void;
<br>
isApplicationEnabled(bundleName: string): Promise
\
<
boolean>; | 新增 |
| ohos.bundle | bundle |
isAbilityEnabled(info: AbilityInfo, callback: AsyncCallback
\<
boolean>): void;
<br>
isAbilityEnabled(info: AbilityInfo): Promise
\
<
boolean>; | 新增 |
| ohos.bundle | bundle |
getAbilityIcon(bundleName: string, abilityName: string, callback: AsyncCallback
\<
image.PixelMap>): void;
<br>
getAbilityIcon(bundleName: string, abilityName: string): Promise
\
<
image.PixelMap>; | 新增 |
| ohos.bundle | bundle |
getAbilityLabel(bundleName: string, abilityName: string, callback: AsyncCallback
\<
string>): void;
<br>
getAbilityLabel(bundleName: string, abilityName: string): Promise
\
<
string>; | 新增 |
| ohos.bundle | bundle |
getNameForUid(uid: number, callback: AsyncCallback
\<
string>) : void
<br>
getNameForUid(uid: number) : Promise
\
<
string>; | 新增 |
| ohos.bundle | bundle |
getAbilityInfo(bundleName: string, abilityName: string, callback: AsyncCallback
\<
AbilityInfo>): void;
<br>
getAbilityInfo(bundleName: string, abilityName: string): Promise
\
<
AbilityInfo>; | 新增 |
| ohos.bundle | InstallErrorCode | STATUS_UNINSTALL_PERMISSION_DENIED = 0x45 | 新增 |
| ohos.bundle | InstallErrorCode | STATUS_INSTALL_PERMISSION_DENIED = 0x44 | 新增 |
| ohos.bundle | InstallErrorCode | STATUS_GRANT_REQUEST_PERMISSIONS_FAILED = 0x43 | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-bundle_api-9-canary.md
浏览文件 @
e39dc96d
...
...
@@ -6,14 +6,14 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,包管理
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| bundleInfo | BundleInfo | readonly extensionAbilityInfo: Array
<ExtensionAbilityInfo>
; | 新增 |
| hapModuleInfo | HapModuleInfo | readonly metadata: Array
<Metadata>
; | 新增 |
| hapModuleInfo | HapModuleInfo | readonly extensionAbilityInfo: Array
<ExtensionAbilityInfo>
; | 新增 |
| bundleInfo | BundleInfo | readonly extensionAbilityInfo: Array
\
<
ExtensionAbilityInfo>; | 新增 |
| hapModuleInfo | HapModuleInfo | readonly metadata: Array
\
<
Metadata>; | 新增 |
| hapModuleInfo | HapModuleInfo | readonly extensionAbilityInfo: Array
\
<
ExtensionAbilityInfo>; | 新增 |
| hapModuleInfo | HapModuleInfo | readonly mainElementName: string; | 新增 |
| metadata | Metadata | resource: string; | 新增 |
| metadata | Metadata | value: string; | 新增 |
| metadata | Metadata | name: string; | 新增 |
| ohos.bundle | bundle |
function queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, userId: number, callback: AsyncCallback
<Array
<
ExtensionAbilityInfo
>
>): void;
<br>
function queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, callback: AsyncCallback
<Array
<
ExtensionAbilityInfo
>
>): void;
<br>
function queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, userId?: number): Promise
<Array
<
ExtensionAbilityInfo
>
>; | 新增 |
| ohos.bundle | bundle |
queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, userId: number, callback: AsyncCallback
\<
Array
\<
ExtensionAbilityInfo>>): void;
<br>
queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, callback: AsyncCallback
\<
Array
\<
ExtensionAbilityInfo>>): void;
<br>
queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, userId?: number): Promise
\<
Array
\
<
ExtensionAbilityInfo>>; | 新增 |
| ohos.bundle | ExtensionAbilityType | UNSPECIFIED = 9 | 新增 |
| ohos.bundle | ExtensionAbilityType | WALLPAPER = 8 | 新增 |
| ohos.bundle | ExtensionAbilityType | STATIC_SUBSCRIBER = 7 | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md
浏览文件 @
e39dc96d
...
...
@@ -7,7 +7,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,基础通信
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| tagSession | TagSession | getMaxSendLength(): number; | 新增 |
| tagSession | TagSession | sendData(data: number[]): Promise
<number
[]
>
;
<br>
sendData(data: number[], callback: AsyncCallback
<number
[]
>
): void; | 新增 |
| tagSession | TagSession | sendData(data: number[]): Promise
\<
number[]>;
<br>
sendData(data: number[], callback: AsyncCallback
\
<
number[]>): void; | 新增 |
| tagSession | TagSession | getSendDataTimeout(): number; | 新增 |
| tagSession | TagSession | setSendDataTimeout(timeout: number): boolean; | 新增 |
| tagSession | TagSession | isTagConnected(): boolean; | 新增 |
...
...
@@ -25,11 +25,11 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,基础通信
| ohos.wifiext | PowerModel | THROUGH_WALL = 2 | 新增 |
| ohos.wifiext | PowerModel | GENERAL = 1 | 新增 |
| ohos.wifiext | PowerModel | SLEEPING = 0 | 新增 |
| ohos.wifiext | wifiext |
function
setPowerModel(model: PowerModel) : boolean | 新增 |
| ohos.wifiext | wifiext |
function getPowerModel (): Promise
<PowerModel>
;
<br>
function getPowerModel (callback: AsyncCallback
<PowerModel>
): void; | 新增 |
| ohos.wifiext | wifiext |
function getSupportedPowerModel(): Promise
<Array
<
PowerModel
>
>;
<br>
function getSupportedPowerModel(callback: AsyncCallback
<Array
<
PowerModel
>
>): void; | 新增 |
| ohos.wifiext | wifiext |
function
disableHotspot(): boolean; | 新增 |
| ohos.wifiext | wifiext |
function
enableHotspot(): boolean; | 新增 |
| ohos.wifiext | wifiext | setPowerModel(model: PowerModel) : boolean | 新增 |
| ohos.wifiext | wifiext |
getPowerModel (): Promise
\<
PowerModel>;
<br>
getPowerModel (callback: AsyncCallback
\
<
PowerModel>): void; | 新增 |
| ohos.wifiext | wifiext |
getSupportedPowerModel(): Promise
\<
Array
\<
PowerModel>>;
<br>
getSupportedPowerModel(callback: AsyncCallback
\<
Array
\
<
PowerModel>>): void; | 新增 |
| ohos.wifiext | wifiext | disableHotspot(): boolean; | 新增 |
| ohos.wifiext | wifiext | enableHotspot(): boolean; | 新增 |
| ohos.wifi | GroupOwnerBand | GO_BAND_5GHZ = 2 | 新增 |
| ohos.wifi | GroupOwnerBand | GO_BAND_2GHZ = 1 | 新增 |
| ohos.wifi | GroupOwnerBand | GO_BAND_AUTO = 0 | 新增 |
...
...
@@ -90,49 +90,49 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,基础通信
| ohos.wifi | WifiLinkedInfo | ssid: string; | 新增 |
| ohos.wifi | WifiScanInfo | channelWidth: number; | 新增 |
| ohos.wifi | WifiScanInfo | capabilities: string; | 新增 |
| ohos.wifi | wifi |
function off(type: "p2pDiscoveryChange", callback?: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function on(type: "p2pDiscoveryChange", callback: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function off(type: "p2pPersistentGroupChange", callback?: Callback
<void>
): void; | 新增 |
| ohos.wifi | wifi |
function on(type: "p2pPersistentGroupChange", callback: Callback
<void>
): void; | 新增 |
| ohos.wifi | wifi |
function off(type: "p2pPeerDeviceChange", callback?: Callback
<WifiP2pDevice
[]
>
): void; | 新增 |
| ohos.wifi | wifi |
function on(type: "p2pPeerDeviceChange", callback: Callback
<WifiP2pDevice
[]
>
): void; | 新增 |
| ohos.wifi | wifi |
function off(type: "p2pDeviceChange", callback?: Callback
<WifiP2pDevice>
): void; | 新增 |
| ohos.wifi | wifi |
function on(type: "p2pDeviceChange", callback: Callback
<WifiP2pDevice>
): void; | 新增 |
| ohos.wifi | wifi |
function off(type: "p2pConnectionChange", callback?: Callback
<WifiP2pLinkedInfo>
): void; | 新增 |
| ohos.wifi | wifi |
function on(type: "p2pConnectionChange", callback: Callback
<WifiP2pLinkedInfo>
): void; | 新增 |
| ohos.wifi | wifi |
function off(type: "p2pStateChange", callback?: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function on(type: "p2pStateChange", callback: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function off(type: "hotspotStateChange", callback?: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function on(type: "hotspotStateChange", callback: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function off(type: "wifiRssiChange", callback?: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function on(type: "wifiRssiChange", callback: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function off(type: "wifiScanStateChange", callback?: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function on(type: "wifiScanStateChange", callback: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function off(type: "wifiConnectionChange", callback?: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function on(type: "wifiConnectionChange", callback: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function off(type: "wifiStateChange", callback?: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function on(type: "wifiStateChange", callback: Callback
<number>
): void; | 新增 |
| ohos.wifi | wifi |
function
stopDiscoverDevices(): boolean; | 新增 |
| ohos.wifi | wifi |
function
startDiscoverDevices(): boolean; | 新增 |
| ohos.wifi | wifi |
function
p2pCancelConnect(): boolean; | 新增 |
| ohos.wifi | wifi |
function
p2pConnect(config: WifiP2PConfig): boolean; | 新增 |
| ohos.wifi | wifi |
function
removeGroup(): boolean; | 新增 |
| ohos.wifi | wifi |
function
createGroup(config: WifiP2PConfig): boolean; | 新增 |
| ohos.wifi | wifi |
function getP2pPeerDevices(): Promise
<WifiP2pDevice
[]
>
;
<br>
function getP2pPeerDevices(callback: AsyncCallback
<WifiP2pDevice
[]
>
): void; | 新增 |
| ohos.wifi | wifi |
function getCurrentGroup(): Promise
<WifiP2pGroupInfo>
;
<br>
function getCurrentGroup(callback: AsyncCallback
<WifiP2pGroupInfo>
): void; | 新增 |
| ohos.wifi | wifi |
function getP2pLinkedInfo(): Promise
<WifiP2pLinkedInfo>
;
<br>
function getP2pLinkedInfo(callback: AsyncCallback
<WifiP2pLinkedInfo>
): void; | 新增 |
| ohos.wifi | wifi |
function
getCountryCode(): string; | 新增 |
| ohos.wifi | wifi |
function
getIpInfo(): IpInfo; | 新增 |
| ohos.wifi | wifi |
function
isFeatureSupported(featureId: number): boolean; | 新增 |
| ohos.wifi | wifi |
function
isConnected(): boolean; | 新增 |
| ohos.wifi | wifi |
function getLinkedInfo(): Promise
<WifiLinkedInfo>
;
<br>
function getLinkedInfo(callback: AsyncCallback
<WifiLinkedInfo>
): void; | 新增 |
| ohos.wifi | wifi |
function removeUntrustedConfig(config: WifiDeviceConfig): Promise
<boolean>
;
<br>
function removeUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback
<boolean>
): void; | 新增 |
| ohos.wifi | wifi |
function addUntrustedConfig(config: WifiDeviceConfig): Promise
<boolean>
;
<br>
function addUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback
<boolean>
): void; | 新增 |
| ohos.wifi | wifi |
off(type: "p2pDiscoveryChange", callback?: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi |
on(type: "p2pDiscoveryChange", callback: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi |
off(type: "p2pPersistentGroupChange", callback?: Callback
\
<
void>): void; | 新增 |
| ohos.wifi | wifi |
on(type: "p2pPersistentGroupChange", callback: Callback
\
<
void>): void; | 新增 |
| ohos.wifi | wifi |
off(type: "p2pPeerDeviceChange", callback?: Callback
\
<
WifiP2pDevice[]>): void; | 新增 |
| ohos.wifi | wifi |
on(type: "p2pPeerDeviceChange", callback: Callback
\
<
WifiP2pDevice[]>): void; | 新增 |
| ohos.wifi | wifi |
off(type: "p2pDeviceChange", callback?: Callback
\
<
WifiP2pDevice>): void; | 新增 |
| ohos.wifi | wifi |
on(type: "p2pDeviceChange", callback: Callback
\
<
WifiP2pDevice>): void; | 新增 |
| ohos.wifi | wifi |
off(type: "p2pConnectionChange", callback?: Callback
\
<
WifiP2pLinkedInfo>): void; | 新增 |
| ohos.wifi | wifi |
on(type: "p2pConnectionChange", callback: Callback
\
<
WifiP2pLinkedInfo>): void; | 新增 |
| ohos.wifi | wifi |
off(type: "p2pStateChange", callback?: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi |
on(type: "p2pStateChange", callback: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi |
off(type: "hotspotStateChange", callback?: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi |
on(type: "hotspotStateChange", callback: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi |
off(type: "wifiRssiChange", callback?: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi |
on(type: "wifiRssiChange", callback: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi |
off(type: "wifiScanStateChange", callback?: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi |
on(type: "wifiScanStateChange", callback: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi |
off(type: "wifiConnectionChange", callback?: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi |
on(type: "wifiConnectionChange", callback: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi |
off(type: "wifiStateChange", callback?: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi |
on(type: "wifiStateChange", callback: Callback
\
<
number>): void; | 新增 |
| ohos.wifi | wifi | stopDiscoverDevices(): boolean; | 新增 |
| ohos.wifi | wifi | startDiscoverDevices(): boolean; | 新增 |
| ohos.wifi | wifi | p2pCancelConnect(): boolean; | 新增 |
| ohos.wifi | wifi | p2pConnect(config: WifiP2PConfig): boolean; | 新增 |
| ohos.wifi | wifi | removeGroup(): boolean; | 新增 |
| ohos.wifi | wifi | createGroup(config: WifiP2PConfig): boolean; | 新增 |
| ohos.wifi | wifi |
getP2pPeerDevices(): Promise
\<
WifiP2pDevice[]>;
<br>
getP2pPeerDevices(callback: AsyncCallback
\
<
WifiP2pDevice[]>): void; | 新增 |
| ohos.wifi | wifi |
getCurrentGroup(): Promise
\<
WifiP2pGroupInfo>;
<br>
getCurrentGroup(callback: AsyncCallback
\
<
WifiP2pGroupInfo>): void; | 新增 |
| ohos.wifi | wifi |
getP2pLinkedInfo(): Promise
\<
WifiP2pLinkedInfo>;
<br>
getP2pLinkedInfo(callback: AsyncCallback
\
<
WifiP2pLinkedInfo>): void; | 新增 |
| ohos.wifi | wifi | getCountryCode(): string; | 新增 |
| ohos.wifi | wifi | getIpInfo(): IpInfo; | 新增 |
| ohos.wifi | wifi | isFeatureSupported(featureId: number): boolean; | 新增 |
| ohos.wifi | wifi | isConnected(): boolean; | 新增 |
| ohos.wifi | wifi |
getLinkedInfo(): Promise
\<
WifiLinkedInfo>;
<br>
getLinkedInfo(callback: AsyncCallback
\
<
WifiLinkedInfo>): void; | 新增 |
| ohos.wifi | wifi |
removeUntrustedConfig(config: WifiDeviceConfig): Promise
\<
boolean>;
<br>
removeUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback
\
<
boolean>): void; | 新增 |
| ohos.wifi | wifi |
addUntrustedConfig(config: WifiDeviceConfig): Promise
\<
boolean>;
<br>
addUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback
\
<
boolean>): void; | 新增 |
| ohos.nfc.tag | TagInfo | supportedProfiles: number[]; | 新增 |
| ohos.nfc.tag | tag |
function
getNfcVTag(tagInfo: TagInfo): NfcVTag | 新增 |
| ohos.nfc.tag | tag |
function
getNfcFTag(tagInfo: TagInfo): NfcFTag | 新增 |
| ohos.nfc.tag | tag |
function
getNfcBTag(tagInfo: TagInfo): NfcBTag | 新增 |
| ohos.nfc.tag | tag |
function
getNfcATag(tagInfo: TagInfo): NfcATag | 新增 |
| ohos.nfc.tag | tag | getNfcVTag(tagInfo: TagInfo): NfcVTag | 新增 |
| ohos.nfc.tag | tag | getNfcFTag(tagInfo: TagInfo): NfcFTag | 新增 |
| ohos.nfc.tag | tag | getNfcBTag(tagInfo: TagInfo): NfcBTag | 新增 |
| ohos.nfc.tag | tag | getNfcATag(tagInfo: TagInfo): NfcATag | 新增 |
| ohos.nfc.tag | tag | const MIFARE_ULTRALIGHT = 9; | 新增 |
| ohos.nfc.tag | tag | const MIFARE_CLASSIC = 8; | 新增 |
| ohos.nfc.tag | tag | const NDEF = 6; | 新增 |
...
...
@@ -141,33 +141,33 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,基础通信
| ohos.nfc.tag | tag | const ISO_DEP = 3; | 新增 |
| ohos.nfc.tag | tag | const NFC_B = 2; | 新增 |
| ohos.nfc.tag | tag | const NFC_A = 1; | 新增 |
| ohos.nfc.controller | nfcController |
function
getNfcState(): NfcState | 新增 |
| ohos.nfc.controller | nfcController |
function
isNfcOpen(): boolean | 新增 |
| ohos.nfc.controller | nfcController |
function
closeNfc(): boolean | 新增 |
| ohos.nfc.controller | nfcController |
function
openNfc(): boolean | 新增 |
| ohos.nfc.controller | nfcController |
function off(type: "nfcStateChange", callback?: Callback
<NfcState>
): void | 新增 |
| ohos.nfc.controller | nfcController |
function on(type: "nfcStateChange", callback: Callback
<NfcState>
): void | 新增 |
| ohos.nfc.controller | nfcController |
function
isNfcAvailable(): boolean | 新增 |
| ohos.nfc.controller | nfcController | getNfcState(): NfcState | 新增 |
| ohos.nfc.controller | nfcController | isNfcOpen(): boolean | 新增 |
| ohos.nfc.controller | nfcController | closeNfc(): boolean | 新增 |
| ohos.nfc.controller | nfcController | openNfc(): boolean | 新增 |
| ohos.nfc.controller | nfcController |
off(type: "nfcStateChange", callback?: Callback
\
<
NfcState>): void | 新增 |
| ohos.nfc.controller | nfcController |
on(type: "nfcStateChange", callback: Callback
\
<
NfcState>): void | 新增 |
| ohos.nfc.controller | nfcController | isNfcAvailable(): boolean | 新增 |
| ohos.nfc.controller | NfcState | STATE_TURNING_OFF = 4 | 新增 |
| ohos.nfc.controller | NfcState | STATE_ON = 3 | 新增 |
| ohos.nfc.controller | NfcState | STATE_TURNING_ON = 2 | 新增 |
| ohos.nfc.controller | NfcState | STATE_OFF = 1 | 新增 |
| ohos.nfc.cardEmulation | HceService | sendResponse(responseApdu: number[]): void; | 新增 |
| ohos.nfc.cardEmulation | HceService | on(type: "hceCmd", callback: AsyncCallback
<number
[]
>
): void; | 新增 |
| ohos.nfc.cardEmulation | HceService | on(type: "hceCmd", callback: AsyncCallback
\
<
number[]>): void; | 新增 |
| ohos.nfc.cardEmulation | HceService | stopHCE(): boolean; | 新增 |
| ohos.nfc.cardEmulation | HceService | startHCE(aidList: string[]): boolean; | 新增 |
| ohos.nfc.cardEmulation | cardEmulation |
function
isSupported(feature: number): boolean; | 新增 |
| ohos.nfc.cardEmulation | cardEmulation | isSupported(feature: number): boolean; | 新增 |
| ohos.nfc.cardEmulation | FeatureType | ESE = 2 | 新增 |
| ohos.nfc.cardEmulation | FeatureType | UICC = 1 | 新增 |
| ohos.nfc.cardEmulation | FeatureType | HCE = 0 | 新增 |
| ohos.connectedTag | NfcRfType | NFC_RF_ENTER = 1 | 新增 |
| ohos.connectedTag | NfcRfType | NFC_RF_LEAVE = 0 | 新增 |
| ohos.connectedTag | connectedTag |
function off(type: "notify", callback?:Callback
<number>
): void; | 新增 |
| ohos.connectedTag | connectedTag |
function on(type: "notify", callback: Callback
<number>
): void; | 新增 |
| ohos.connectedTag | connectedTag |
function writeNdefTag(data: string): Promise
<void>
;
<br>
function writeNdefTag(data: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.connectedTag | connectedTag |
function readNdefTag(): Promise
<string>
;
<br>
function readNdefTag(callback: AsyncCallback
<string>
): void; | 新增 |
| ohos.connectedTag | connectedTag |
function
uninit(): boolean; | 新增 |
| ohos.connectedTag | connectedTag |
function
init(): boolean; | 新增 |
| ohos.connectedTag | connectedTag |
off(type: "notify", callback?:Callback
\
<
number>): void; | 新增 |
| ohos.connectedTag | connectedTag |
on(type: "notify", callback: Callback
\
<
number>): void; | 新增 |
| ohos.connectedTag | connectedTag |
writeNdefTag(data: string): Promise
\<
void>;
<br>
writeNdefTag(data: string, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.connectedTag | connectedTag |
readNdefTag(): Promise
\<
string>;
<br>
readNdefTag(callback: AsyncCallback
\
<
string>): void; | 新增 |
| ohos.connectedTag | connectedTag | uninit(): boolean; | 新增 |
| ohos.connectedTag | connectedTag | init(): boolean; | 新增 |
| ohos.bluetooth | ProfileId | PROFILE_HANDS_FREE_AUDIO_GATEWAY = 4 | 新增 |
| ohos.bluetooth | ProfileId | PROFILE_A2DP_SOURCE = 1 | 新增 |
| ohos.bluetooth | PlayingState | STATE_PLAYING | 新增 |
...
...
@@ -317,9 +317,9 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,基础通信
| ohos.bluetooth | ServiceData | serviceUuid: string; | 新增 |
| ohos.bluetooth | ManufactureData | manufactureValue: ArrayBuffer; | 新增 |
| ohos.bluetooth | ManufactureData | manufactureId: number; | 新增 |
| ohos.bluetooth | AdvertiseData | serviceData: Array
<ServiceData>
; | 新增 |
| ohos.bluetooth | AdvertiseData | manufactureData: Array
<ManufactureData>
; | 新增 |
| ohos.bluetooth | AdvertiseData | serviceUuids: Array
<string>
; | 新增 |
| ohos.bluetooth | AdvertiseData | serviceData: Array
\
<
ServiceData>; | 新增 |
| ohos.bluetooth | AdvertiseData | manufactureData: Array
\
<
ManufactureData>; | 新增 |
| ohos.bluetooth | AdvertiseData | serviceUuids: Array
\
<
string>; | 新增 |
| ohos.bluetooth | AdvertiseSetting | connectable?: boolean; | 新增 |
| ohos.bluetooth | AdvertiseSetting | txPower?: number; | 新增 |
| ohos.bluetooth | AdvertiseSetting | interval?: number; | 新增 |
...
...
@@ -369,40 +369,40 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,基础通信
| ohos.bluetooth | BLEDescriptor | descriptorUuid: string; | 新增 |
| ohos.bluetooth | BLEDescriptor | characteristicUuid: string; | 新增 |
| ohos.bluetooth | BLEDescriptor | serviceUuid: string; | 新增 |
| ohos.bluetooth | BLECharacteristic | descriptors: Array
<BLEDescriptor>
; | 新增 |
| ohos.bluetooth | BLECharacteristic | descriptors: Array
\
<
BLEDescriptor>; | 新增 |
| ohos.bluetooth | BLECharacteristic | characteristicValue: ArrayBuffer; | 新增 |
| ohos.bluetooth | BLECharacteristic | characteristicUuid: string; | 新增 |
| ohos.bluetooth | BLECharacteristic | serviceUuid: string; | 新增 |
| ohos.bluetooth | GattService | includeServices?: Array
<GattService>
; | 新增 |
| ohos.bluetooth | GattService | characteristics: Array
<BLECharacteristic>
; | 新增 |
| ohos.bluetooth | GattService | includeServices?: Array
\
<
GattService>; | 新增 |
| ohos.bluetooth | GattService | characteristics: Array
\
<
BLECharacteristic>; | 新增 |
| ohos.bluetooth | GattService | isPrimary: boolean; | 新增 |
| ohos.bluetooth | GattService | serviceUuid: string; | 新增 |
| ohos.bluetooth | GattClientDevice | off(type: "BLEConnectionStateChange", callback?: Callback
<BLEConnectChangedState>
): void; | 新增 |
| ohos.bluetooth | GattClientDevice | on(type: "BLEConnectionStateChange", callback: Callback
<BLEConnectChangedState>
): void; | 新增 |
| ohos.bluetooth | GattClientDevice | off(type: "BLECharacteristicChange", callback?: Callback
<BLECharacteristic>
): void; | 新增 |
| ohos.bluetooth | GattClientDevice | on(type: "BLECharacteristicChange", callback: Callback
<BLECharacteristic>
): void; | 新增 |
| ohos.bluetooth | GattClientDevice | off(type: "BLEConnectionStateChange", callback?: Callback
\
<
BLEConnectChangedState>): void; | 新增 |
| ohos.bluetooth | GattClientDevice | on(type: "BLEConnectionStateChange", callback: Callback
\
<
BLEConnectChangedState>): void; | 新增 |
| ohos.bluetooth | GattClientDevice | off(type: "BLECharacteristicChange", callback?: Callback
\
<
BLECharacteristic>): void; | 新增 |
| ohos.bluetooth | GattClientDevice | on(type: "BLECharacteristicChange", callback: Callback
\
<
BLECharacteristic>): void; | 新增 |
| ohos.bluetooth | GattClientDevice | setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): boolean; | 新增 |
| ohos.bluetooth | GattClientDevice | setBLEMtuSize(mtu: number): boolean; | 新增 |
| ohos.bluetooth | GattClientDevice | getRssiValue(callback: AsyncCallback
<number>
): void;
<br>
getRssiValue(): Promise
<number>
; | 新增 |
| ohos.bluetooth | GattClientDevice | getRssiValue(callback: AsyncCallback
\<
number>): void;
<br>
getRssiValue(): Promise
\
<
number>; | 新增 |
| ohos.bluetooth | GattClientDevice | writeDescriptorValue(descriptor: BLEDescriptor): boolean; | 新增 |
| ohos.bluetooth | GattClientDevice | writeCharacteristicValue(characteristic: BLECharacteristic): boolean; | 新增 |
| ohos.bluetooth | GattClientDevice | readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback
<BLEDescriptor>
): void;
<br>
readDescriptorValue(descriptor: BLEDescriptor): Promise
<BLEDescriptor>
; | 新增 |
| ohos.bluetooth | GattClientDevice | readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback
<BLECharacteristic>
): void;
<br>
readCharacteristicValue(characteristic: BLECharacteristic): Promise
<BLECharacteristic>
; | 新增 |
| ohos.bluetooth | GattClientDevice | getServices(callback: AsyncCallback
<Array
<
GattService
>
>): void;
<br>
getServices(): Promise
<Array
<
GattService
>
>; | 新增 |
| ohos.bluetooth | GattClientDevice | getDeviceName(callback: AsyncCallback
<string>
): void;
<br>
getDeviceName(): Promise
<string>
; | 新增 |
| ohos.bluetooth | GattClientDevice | readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback
\<
BLEDescriptor>): void;
<br>
readDescriptorValue(descriptor: BLEDescriptor): Promise
\
<
BLEDescriptor>; | 新增 |
| ohos.bluetooth | GattClientDevice | readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback
\<
BLECharacteristic>): void;
<br>
readCharacteristicValue(characteristic: BLECharacteristic): Promise
\
<
BLECharacteristic>; | 新增 |
| ohos.bluetooth | GattClientDevice | getServices(callback: AsyncCallback
\<
Array
\<
GattService>>): void;
<br>
getServices(): Promise
\<
Array
\
<
GattService>>; | 新增 |
| ohos.bluetooth | GattClientDevice | getDeviceName(callback: AsyncCallback
\<
string>): void;
<br>
getDeviceName(): Promise
\
<
string>; | 新增 |
| ohos.bluetooth | GattClientDevice | close(): boolean; | 新增 |
| ohos.bluetooth | GattClientDevice | disconnect(): boolean; | 新增 |
| ohos.bluetooth | GattClientDevice | connect(): boolean; | 新增 |
| ohos.bluetooth | GattServer | off(type: "connectStateChange", callback?: Callback
<BLEConnectChangedState>
): void; | 新增 |
| ohos.bluetooth | GattServer | on(type: "connectStateChange", callback: Callback
<BLEConnectChangedState>
): void; | 新增 |
| ohos.bluetooth | GattServer | off(type: "descriptorWrite", callback?: Callback
<DescriptorWriteReq>
): void; | 新增 |
| ohos.bluetooth | GattServer | on(type: "descriptorWrite", callback: Callback
<DescriptorWriteReq>
): void; | 新增 |
| ohos.bluetooth | GattServer | off(type: "descriptorRead", callback?: Callback
<DescriptorReadReq>
): void; | 新增 |
| ohos.bluetooth | GattServer | on(type: "descriptorRead", callback: Callback
<DescriptorReadReq>
): void; | 新增 |
| ohos.bluetooth | GattServer | off(type: "characteristicWrite", callback?: Callback
<CharacteristicWriteReq>
): void; | 新增 |
| ohos.bluetooth | GattServer | on(type: "characteristicWrite", callback: Callback
<CharacteristicWriteReq>
): void; | 新增 |
| ohos.bluetooth | GattServer | off(type: "characteristicRead", callback?: Callback
<CharacteristicReadReq>
): void; | 新增 |
| ohos.bluetooth | GattServer | on(type: "characteristicRead", callback: Callback
<CharacteristicReadReq>
): void; | 新增 |
| ohos.bluetooth | GattServer | off(type: "connectStateChange", callback?: Callback
\
<
BLEConnectChangedState>): void; | 新增 |
| ohos.bluetooth | GattServer | on(type: "connectStateChange", callback: Callback
\
<
BLEConnectChangedState>): void; | 新增 |
| ohos.bluetooth | GattServer | off(type: "descriptorWrite", callback?: Callback
\
<
DescriptorWriteReq>): void; | 新增 |
| ohos.bluetooth | GattServer | on(type: "descriptorWrite", callback: Callback
\
<
DescriptorWriteReq>): void; | 新增 |
| ohos.bluetooth | GattServer | off(type: "descriptorRead", callback?: Callback
\
<
DescriptorReadReq>): void; | 新增 |
| ohos.bluetooth | GattServer | on(type: "descriptorRead", callback: Callback
\
<
DescriptorReadReq>): void; | 新增 |
| ohos.bluetooth | GattServer | off(type: "characteristicWrite", callback?: Callback
\
<
CharacteristicWriteReq>): void; | 新增 |
| ohos.bluetooth | GattServer | on(type: "characteristicWrite", callback: Callback
\
<
CharacteristicWriteReq>): void; | 新增 |
| ohos.bluetooth | GattServer | off(type: "characteristicRead", callback?: Callback
\
<
CharacteristicReadReq>): void; | 新增 |
| ohos.bluetooth | GattServer | on(type: "characteristicRead", callback: Callback
\
<
CharacteristicReadReq>): void; | 新增 |
| ohos.bluetooth | GattServer | sendResponse(serverResponse: ServerResponse): boolean; | 新增 |
| ohos.bluetooth | GattServer | notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): boolean; | 新增 |
| ohos.bluetooth | GattServer | close(): void; | 新增 |
...
...
@@ -410,54 +410,54 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,基础通信
| ohos.bluetooth | GattServer | addService(service: GattService): boolean; | 新增 |
| ohos.bluetooth | GattServer | stopAdvertising(): void; | 新增 |
| ohos.bluetooth | GattServer | startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void; | 新增 |
| ohos.bluetooth | BLE |
function off(type: "BLEDeviceFind", callback?: Callback
<Array
<
ScanResult
>
>): void; | 新增 |
| ohos.bluetooth | BLE |
function on(type: "BLEDeviceFind", callback: Callback
<Array
<
ScanResult
>
>): void; | 新增 |
| ohos.bluetooth | BLE |
function
stopBLEScan(): void; | 新增 |
| ohos.bluetooth | BLE |
function startBLEScan(filters: Array
<ScanFilter>
, options?: ScanOptions): void; | 新增 |
| ohos.bluetooth | BLE |
function getConnectedBLEDevices(): Array
<string>
; | 新增 |
| ohos.bluetooth | BLE |
function
createGattClientDevice(deviceId: string): GattClientDevice; | 新增 |
| ohos.bluetooth | BLE |
function
createGattServer(): GattServer; | 新增 |
| ohos.bluetooth | HandsFreeAudioGatewayProfile | off(type: "connectionStateChange", callback?: Callback
<StateChangeParam>
): void; | 新增 |
| ohos.bluetooth | HandsFreeAudioGatewayProfile | on(type: "connectionStateChange", callback: Callback
<StateChangeParam>
): void; | 新增 |
| ohos.bluetooth | BLE |
off(type: "BLEDeviceFind", callback?: Callback
\<
Array
\
<
ScanResult>>): void; | 新增 |
| ohos.bluetooth | BLE |
on(type: "BLEDeviceFind", callback: Callback
\<
Array
\
<
ScanResult>>): void; | 新增 |
| ohos.bluetooth | BLE | stopBLEScan(): void; | 新增 |
| ohos.bluetooth | BLE |
startBLEScan(filters: Array
\
<
ScanFilter>, options?: ScanOptions): void; | 新增 |
| ohos.bluetooth | BLE |
getConnectedBLEDevices(): Array
\
<
string>; | 新增 |
| ohos.bluetooth | BLE | createGattClientDevice(deviceId: string): GattClientDevice; | 新增 |
| ohos.bluetooth | BLE | createGattServer(): GattServer; | 新增 |
| ohos.bluetooth | HandsFreeAudioGatewayProfile | off(type: "connectionStateChange", callback?: Callback
\
<
StateChangeParam>): void; | 新增 |
| ohos.bluetooth | HandsFreeAudioGatewayProfile | on(type: "connectionStateChange", callback: Callback
\
<
StateChangeParam>): void; | 新增 |
| ohos.bluetooth | HandsFreeAudioGatewayProfile | disconnect(device: string): boolean; | 新增 |
| ohos.bluetooth | HandsFreeAudioGatewayProfile | connect(device: string): boolean; | 新增 |
| ohos.bluetooth | A2dpSourceProfile | getPlayingState(device: string): PlayingState; | 新增 |
| ohos.bluetooth | A2dpSourceProfile | off(type: "connectionStateChange", callback?: Callback
<StateChangeParam>
): void; | 新增 |
| ohos.bluetooth | A2dpSourceProfile | on(type: "connectionStateChange", callback: Callback
<StateChangeParam>
): void; | 新增 |
| ohos.bluetooth | A2dpSourceProfile | off(type: "connectionStateChange", callback?: Callback
\
<
StateChangeParam>): void; | 新增 |
| ohos.bluetooth | A2dpSourceProfile | on(type: "connectionStateChange", callback: Callback
\
<
StateChangeParam>): void; | 新增 |
| ohos.bluetooth | A2dpSourceProfile | disconnect(device: string): boolean; | 新增 |
| ohos.bluetooth | A2dpSourceProfile | connect(device: string): boolean; | 新增 |
| ohos.bluetooth | BaseProfile | getDeviceState(device: string): ProfileConnectionState; | 新增 |
| ohos.bluetooth | BaseProfile | getConnectionDevices(): Array
<string>
; | 新增 |
| ohos.bluetooth | bluetooth |
function
getProfile(profileId: ProfileId): A2dpSourceProfile
\|
HandsFreeAudioGatewayProfile; | 新增 |
| ohos.bluetooth | bluetooth |
function off(type: "sppRead", clientSocket: number, callback?: Callback
<ArrayBuffer>
): void; | 新增 |
| ohos.bluetooth | bluetooth |
function on(type: "sppRead", clientSocket: number, callback: Callback
<ArrayBuffer>
): void; | 新增 |
| ohos.bluetooth | bluetooth |
function
sppWrite(clientSocket: number, data: ArrayBuffer): boolean; | 新增 |
| ohos.bluetooth | bluetooth |
function
sppCloseClientSocket(socket: number): void; | 新增 |
| ohos.bluetooth | bluetooth |
function
sppCloseServerSocket(socket: number): void; | 新增 |
| ohos.bluetooth | bluetooth |
function sppConnect(device: string, option: SppOption, callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.bluetooth | bluetooth |
function sppAccept(serverSocket: number, callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.bluetooth | bluetooth |
function sppListen(name: string, option: SppOption, callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.bluetooth | bluetooth |
function off(type: "stateChange", callback?: Callback
<BluetoothState>
): void; | 新增 |
| ohos.bluetooth | bluetooth |
function on(type: "stateChange", callback: Callback
<BluetoothState>
): void; | 新增 |
| ohos.bluetooth | bluetooth |
function off(type: "pinRequired", callback?: Callback
<PinRequiredParam>
): void; | 新增 |
| ohos.bluetooth | bluetooth |
function on(type: "pinRequired", callback: Callback
<PinRequiredParam>
): void; | 新增 |
| ohos.bluetooth | bluetooth |
function off(type: "bondStateChange", callback?: Callback
<BondStateParam>
): void; | 新增 |
| ohos.bluetooth | bluetooth |
function on(type: "bondStateChange", callback: Callback
<BondStateParam>
): void; | 新增 |
| ohos.bluetooth | bluetooth |
function off(type: "bluetoothDeviceFind", callback?: Callback
<Array
<
string
>
>): void; | 新增 |
| ohos.bluetooth | bluetooth |
function on(type: "bluetoothDeviceFind", callback: Callback
<Array
<
string
>
>): void; | 新增 |
| ohos.bluetooth | bluetooth |
function
stopBluetoothDiscovery(): boolean; | 新增 |
| ohos.bluetooth | bluetooth |
function
startBluetoothDiscovery(): boolean; | 新增 |
| ohos.bluetooth | bluetooth |
function
getBluetoothScanMode(): ScanMode; | 新增 |
| ohos.bluetooth | bluetooth |
function
setBluetoothScanMode(mode: ScanMode, duration: number): boolean; | 新增 |
| ohos.bluetooth | bluetooth |
function
setLocalName(name: string): boolean; | 新增 |
| ohos.bluetooth | bluetooth |
function
setDevicePairingConfirmation(device: string, accept: boolean): boolean; | 新增 |
| ohos.bluetooth | bluetooth |
function
getProfileConnState(profileId: ProfileId): ProfileConnectionState; | 新增 |
| ohos.bluetooth | bluetooth |
function getPairedDevices(): Array
<string>
; | 新增 |
| ohos.bluetooth | bluetooth |
function
getLocalName(): string; | 新增 |
| ohos.bluetooth | bluetooth |
function
disableBluetooth(): boolean; | 新增 |
| ohos.bluetooth | bluetooth |
function
enableBluetooth(): boolean; | 新增 |
| ohos.bluetooth | bluetooth |
function
getRemoteDeviceClass(deviceId: string): DeviceClass; | 新增 |
| ohos.bluetooth | bluetooth |
function
getRemoteDeviceName(deviceId: string): string; | 新增 |
| ohos.bluetooth | bluetooth |
function
pairDevice(deviceId: string): boolean; | 新增 |
| ohos.bluetooth | bluetooth |
function
getBtConnectionState(): ProfileConnectionState; | 新增 |
| ohos.bluetooth | bluetooth |
function
getState(): BluetoothState; | 新增 |
| ohos.bluetooth | BaseProfile | getConnectionDevices(): Array
\
<
string>; | 新增 |
| ohos.bluetooth | bluetooth | getProfile(profileId: ProfileId): A2dpSourceProfile
\|
HandsFreeAudioGatewayProfile; | 新增 |
| ohos.bluetooth | bluetooth |
off(type: "sppRead", clientSocket: number, callback?: Callback
\
<
ArrayBuffer>): void; | 新增 |
| ohos.bluetooth | bluetooth |
on(type: "sppRead", clientSocket: number, callback: Callback
\
<
ArrayBuffer>): void; | 新增 |
| ohos.bluetooth | bluetooth | sppWrite(clientSocket: number, data: ArrayBuffer): boolean; | 新增 |
| ohos.bluetooth | bluetooth | sppCloseClientSocket(socket: number): void; | 新增 |
| ohos.bluetooth | bluetooth | sppCloseServerSocket(socket: number): void; | 新增 |
| ohos.bluetooth | bluetooth |
sppConnect(device: string, option: SppOption, callback: AsyncCallback
\
<
number>): void; | 新增 |
| ohos.bluetooth | bluetooth |
sppAccept(serverSocket: number, callback: AsyncCallback
\
<
number>): void; | 新增 |
| ohos.bluetooth | bluetooth |
sppListen(name: string, option: SppOption, callback: AsyncCallback
\
<
number>): void; | 新增 |
| ohos.bluetooth | bluetooth |
off(type: "stateChange", callback?: Callback
\
<
BluetoothState>): void; | 新增 |
| ohos.bluetooth | bluetooth |
on(type: "stateChange", callback: Callback
\
<
BluetoothState>): void; | 新增 |
| ohos.bluetooth | bluetooth |
off(type: "pinRequired", callback?: Callback
\
<
PinRequiredParam>): void; | 新增 |
| ohos.bluetooth | bluetooth |
on(type: "pinRequired", callback: Callback
\
<
PinRequiredParam>): void; | 新增 |
| ohos.bluetooth | bluetooth |
off(type: "bondStateChange", callback?: Callback
\
<
BondStateParam>): void; | 新增 |
| ohos.bluetooth | bluetooth |
on(type: "bondStateChange", callback: Callback
\
<
BondStateParam>): void; | 新增 |
| ohos.bluetooth | bluetooth |
off(type: "bluetoothDeviceFind", callback?: Callback
\<
Array
\
<
string>>): void; | 新增 |
| ohos.bluetooth | bluetooth |
on(type: "bluetoothDeviceFind", callback: Callback
\<
Array
\
<
string>>): void; | 新增 |
| ohos.bluetooth | bluetooth | stopBluetoothDiscovery(): boolean; | 新增 |
| ohos.bluetooth | bluetooth | startBluetoothDiscovery(): boolean; | 新增 |
| ohos.bluetooth | bluetooth | getBluetoothScanMode(): ScanMode; | 新增 |
| ohos.bluetooth | bluetooth | setBluetoothScanMode(mode: ScanMode, duration: number): boolean; | 新增 |
| ohos.bluetooth | bluetooth | setLocalName(name: string): boolean; | 新增 |
| ohos.bluetooth | bluetooth | setDevicePairingConfirmation(device: string, accept: boolean): boolean; | 新增 |
| ohos.bluetooth | bluetooth | getProfileConnState(profileId: ProfileId): ProfileConnectionState; | 新增 |
| ohos.bluetooth | bluetooth |
getPairedDevices(): Array
\
<
string>; | 新增 |
| ohos.bluetooth | bluetooth | getLocalName(): string; | 新增 |
| ohos.bluetooth | bluetooth | disableBluetooth(): boolean; | 新增 |
| ohos.bluetooth | bluetooth | enableBluetooth(): boolean; | 新增 |
| ohos.bluetooth | bluetooth | getRemoteDeviceClass(deviceId: string): DeviceClass; | 新增 |
| ohos.bluetooth | bluetooth | getRemoteDeviceName(deviceId: string): string; | 新增 |
| ohos.bluetooth | bluetooth | pairDevice(deviceId: string): boolean; | 新增 |
| ohos.bluetooth | bluetooth | getBtConnectionState(): ProfileConnectionState; | 新增 |
| ohos.bluetooth | bluetooth | getState(): BluetoothState; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-complier-and-runtime.md
浏览文件 @
e39dc96d
...
...
@@ -45,21 +45,21 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,公共基础
| ohos.xml | XmlSerializer | addEmptyElement(name: string): void; | 新增 |
| ohos.xml | XmlSerializer | setAttributes(name: string, value: string): void; | 新增 |
| ohos.xml | XmlSerializer | constructor(buffer: ArrayBuffer
\|
DataView, encoding?: string); | 新增 |
| ohos.util.Vector | Vector |
[
Symbol.iterator
](
):
IterableIterator
<T>
; | 新增 |
| ohos.util.Vector | Vector | copyToArray(array: Array
<T>
): void; | 新增 |
| ohos.util.Vector | Vector |
\[
Symbol.iterator](): IterableIterator
\
<
T>; | 新增 |
| ohos.util.Vector | Vector | copyToArray(array: Array
\
<
T>): void; | 新增 |
| ohos.util.Vector | Vector | trimToCurrentLength(): void; | 新增 |
| ohos.util.Vector | Vector | toString(): string; | 新增 |
| ohos.util.Vector | Vector | increaseCapacityTo(newCapacity: number): void; | 新增 |
| ohos.util.Vector | Vector | isEmpty(): boolean; | 新增 |
| ohos.util.Vector | Vector | convertToArray(): Array
<T>
; | 新增 |
| ohos.util.Vector | Vector | convertToArray(): Array
\
<
T>; | 新增 |
| ohos.util.Vector | Vector | getCapacity(): number; | 新增 |
| ohos.util.Vector | Vector | setLength(newSize: number): void; | 新增 |
| ohos.util.Vector | Vector | clone(): Vector
<T>
; | 新增 |
| ohos.util.Vector | Vector | clone(): Vector
\
<
T>; | 新增 |
| ohos.util.Vector | Vector | clear(): void; | 新增 |
| ohos.util.Vector | Vector | subVector(fromIndex: number, toIndex: number): Vector
<T>
; | 新增 |
| ohos.util.Vector | Vector | subVector(fromIndex: number, toIndex: number): Vector
\
<
T>; | 新增 |
| ohos.util.Vector | Vector | sort(comparator?: (firstValue: T, secondValue: T) => number): void; | 新增 |
| ohos.util.Vector | Vector | forEach(callbackfn: (value: T, index?: number, vector?: Vector
<T>
) => void, thisArg?: Object): void; | 新增 |
| ohos.util.Vector | Vector | replaceAllElements(callbackfn: (value: T, index?: number, vector?: Vector
<T>
) => T, thisArg?: Object): void; | 新增 |
| ohos.util.Vector | Vector | forEach(callbackfn: (value: T, index?: number, vector?: Vector
\
<
T>) => void, thisArg?: Object): void; | 新增 |
| ohos.util.Vector | Vector | replaceAllElements(callbackfn: (value: T, index?: number, vector?: Vector
\
<
T>) => T, thisArg?: Object): void; | 新增 |
| ohos.util.Vector | Vector | removeByRange(fromIndex: number, toIndex: number): void; | 新增 |
| ohos.util.Vector | Vector | getIndexFrom(element: T, index: number): number; | 新增 |
| ohos.util.Vector | Vector | getLastIndexFrom(element: T, index: number): number; | 新增 |
...
...
@@ -76,10 +76,10 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,公共基础
| ohos.util.Vector | Vector | add(element: T): boolean; | 新增 |
| ohos.util.Vector | Vector | length: number; | 新增 |
| ohos.util.Vector | Vector | constructor(); | 新增 |
| ohos.util.TreeSet | TreeSet |
[
Symbol.iterator
](
):
IterableIterator
<T>
; | 新增 |
| ohos.util.TreeSet | TreeSet | entries(): IterableIterator
<
[
T
,
T
]
>
; | 新增 |
| ohos.util.TreeSet | TreeSet | values(): IterableIterator
<T>
; | 新增 |
| ohos.util.TreeSet | TreeSet | forEach(callbackfn: (value?: T, key?: T, set?: TreeSet
<T>
) => void, thisArg?: Object): void;
| 新增 |
| ohos.util.TreeSet | TreeSet |
\[
Symbol.iterator](): IterableIterator
\
<
T>; | 新增 |
| ohos.util.TreeSet | TreeSet | entries(): IterableIterator
\
<
[T, T]>; | 新增 |
| ohos.util.TreeSet | TreeSet | values(): IterableIterator
\
<
T>; | 新增 |
| ohos.util.TreeSet | TreeSet | forEach(callbackfn: (value?: T, key?: T, set?: TreeSet
\<
T>) => void, thisArg?: Object): void;
| 新增 |
| ohos.util.TreeSet | TreeSet | popLast(): T; | 新增 |
| ohos.util.TreeSet | TreeSet | popFirst(): T; | 新增 |
| ohos.util.TreeSet | TreeSet | getHigherValue(key: T): T; | 新增 |
...
...
@@ -93,18 +93,18 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,公共基础
| ohos.util.TreeSet | TreeSet | isEmpty(): boolean; | 新增 |
| ohos.util.TreeSet | TreeSet | length: number; | 新增 |
| ohos.util.TreeSet | TreeSet | constructor(comparator?: (firstValue: T, secondValue: T) => boolean) | 新增 |
| ohos.util.TreeMap | TreeMap |
[
Symbol.iterator
](
):
IterableIterator
<
[
K
,
V
]
>
; | 新增 |
| ohos.util.TreeMap | TreeMap | entries(): IterableIterator
<
[
K
,
V
]
>
; | 新增 |
| ohos.util.TreeMap | TreeMap | forEach(callbackfn: (value?: V, key?: K, map?: TreeMap
<K
,
V
>
) => void, thisArg?: Object): void; | 新增 |
| ohos.util.TreeMap | TreeMap |
\[
Symbol.iterator](): IterableIterator
\
<
[K, V]>; | 新增 |
| ohos.util.TreeMap | TreeMap | entries(): IterableIterator
\
<
[K, V]>; | 新增 |
| ohos.util.TreeMap | TreeMap | forEach(callbackfn: (value?: V, key?: K, map?: TreeMap
\
<
K, V>) => void, thisArg?: Object): void; | 新增 |
| ohos.util.TreeMap | TreeMap | replace(key: K, newValue: V): boolean; | 新增 |
| ohos.util.TreeMap | TreeMap | values(): IterableIterator
<V>
; | 新增 |
| ohos.util.TreeMap | TreeMap | keys(): IterableIterator
<K>
; | 新增 |
| ohos.util.TreeMap | TreeMap | values(): IterableIterator
\
<
V>; | 新增 |
| ohos.util.TreeMap | TreeMap | keys(): IterableIterator
\
<
K>; | 新增 |
| ohos.util.TreeMap | TreeMap | getHigherKey(key: K): K; | 新增 |
| ohos.util.TreeMap | TreeMap | getLowerKey(key: K): K; | 新增 |
| ohos.util.TreeMap | TreeMap | clear(): void; | 新增 |
| ohos.util.TreeMap | TreeMap | remove(key: K): V; | 新增 |
| ohos.util.TreeMap | TreeMap | set(key: K, value: V): Object; | 新增 |
| ohos.util.TreeMap | TreeMap | setAll(map: TreeMap
<K
,
V
>
): void; | 新增 |
| ohos.util.TreeMap | TreeMap | setAll(map: TreeMap
\
<
K, V>): void; | 新增 |
| ohos.util.TreeMap | TreeMap | getLastKey(): K; | 新增 |
| ohos.util.TreeMap | TreeMap | getFirstKey(): K; | 新增 |
| ohos.util.TreeMap | TreeMap | get(key: K): V; | 新增 |
...
...
@@ -113,8 +113,8 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,公共基础
| ohos.util.TreeMap | TreeMap | isEmpty(): boolean; | 新增 |
| ohos.util.TreeMap | TreeMap | length: number; | 新增 |
| ohos.util.TreeMap | TreeMap | constructor(comparator?: (firstValue: K, secondValue: K) => boolean); | 新增 |
| ohos.util.Stack | Stack |
[
Symbol.iterator
](
):
IterableIterator
<T>
; | 新增 |
| ohos.util.Stack | Stack | forEach(callbackfn: (value: T, index?: number, stack?: Stack
<T>
) => void, thisArg?: Object): void; | 新增 |
| ohos.util.Stack | Stack |
\[
Symbol.iterator](): IterableIterator
\
<
T>; | 新增 |
| ohos.util.Stack | Stack | forEach(callbackfn: (value: T, index?: number, stack?: Stack
\
<
T>) => void, thisArg?: Object): void; | 新增 |
| ohos.util.Stack | Stack | locate(element: T): number; | 新增 |
| ohos.util.Stack | Stack | push(item: T): T; | 新增 |
| ohos.util.Stack | Stack | pop(): T; | 新增 |
...
...
@@ -122,15 +122,15 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,公共基础
| ohos.util.Stack | Stack | isEmpty(): boolean; | 新增 |
| ohos.util.Stack | Stack | length: number; | 新增 |
| ohos.util.Stack | Stack | constructor(); | 新增 |
| ohos.util.Queue | Queue |
[
Symbol.iterator
](
):
IterableIterator
<T>
; | 新增 |
| ohos.util.Queue | Queue | forEach(callbackfn: (value: T, index?: number, Queue?: Queue
<T>
) => void, thisArg?: Object): void; | 新增 |
| ohos.util.Queue | Queue |
\[
Symbol.iterator](): IterableIterator
\
<
T>; | 新增 |
| ohos.util.Queue | Queue | forEach(callbackfn: (value: T, index?: number, Queue?: Queue
\
<
T>) => void, thisArg?: Object): void; | 新增 |
| ohos.util.Queue | Queue | pop(): T; | 新增 |
| ohos.util.Queue | Queue | getFirst(): T; | 新增 |
| ohos.util.Queue | Queue | add(element: T): boolean; | 新增 |
| ohos.util.Queue | Queue | length: number; | 新增 |
| ohos.util.Queue | Queue | constructor(); | 新增 |
| ohos.util.PlainArray | PlainArray |
[
Symbol.iterator
](
):
IterableIterator
<
[
number
,
T
]
>
; | 新增 |
| ohos.util.PlainArray | PlainArray | forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray
<T>
) => void, thisArg?: Object): void; | 新增 |
| ohos.util.PlainArray | PlainArray |
\[
Symbol.iterator](): IterableIterator
\
<
[number, T]>; | 新增 |
| ohos.util.PlainArray | PlainArray | forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray
\
<
T>) => void, thisArg?: Object): void; | 新增 |
| ohos.util.PlainArray | PlainArray | getValueAt(index: number): T; | 新增 |
| ohos.util.PlainArray | PlainArray | toString(): String; | 新增 |
| ohos.util.PlainArray | PlainArray | setValueAt(index: number, value: T): void; | 新增 |
...
...
@@ -143,19 +143,19 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,公共基础
| ohos.util.PlainArray | PlainArray | getIndexOfKey(key: number): number; | 新增 |
| ohos.util.PlainArray | PlainArray | get(key: number): T; | 新增 |
| ohos.util.PlainArray | PlainArray | has(key: number): boolean; | 新增 |
| ohos.util.PlainArray | PlainArray | clone(): PlainArray
<T>
; | 新增 |
| ohos.util.PlainArray | PlainArray | clone(): PlainArray
\
<
T>; | 新增 |
| ohos.util.PlainArray | PlainArray | clear(): void; | 新增 |
| ohos.util.PlainArray | PlainArray | add(key: number, value: T): void; | 新增 |
| ohos.util.PlainArray | PlainArray | length: number; | 新增 |
| ohos.util.PlainArray | PlainArray | constructor(); | 新增 |
| ohos.util.List | List |
[
Symbol.iterator
](
):
IterableIterator
<T>
; | 新增 |
| ohos.util.List | List |
\[
Symbol.iterator](): IterableIterator
\
<
T>; | 新增 |
| ohos.util.List | List | isEmpty(): boolean; | 新增 |
| ohos.util.List | List | convertToArray(): Array
<T>
; | 新增 |
| ohos.util.List | List | replaceAllElements(callbackfn: (value: T, index?: number, list?: List
<T>
) => T, thisArg?: Object): void; | 新增 |
| ohos.util.List | List | getSubList(fromIndex: number, toIndex: number): List
<T>
; | 新增 |
| ohos.util.List | List | convertToArray(): Array
\
<
T>; | 新增 |
| ohos.util.List | List | replaceAllElements(callbackfn: (value: T, index?: number, list?: List
\
<
T>) => T, thisArg?: Object): void; | 新增 |
| ohos.util.List | List | getSubList(fromIndex: number, toIndex: number): List
\
<
T>; | 新增 |
| ohos.util.List | List | clear(): void; | 新增 |
| ohos.util.List | List | sort(comparator: (firstValue: T, secondValue: T) => number): void; | 新增 |
| ohos.util.List | List | forEach(callbackfn: (value: T, index?: number, List?: List
<T>
) => void, thisArg?: Object): void; | 新增 |
| ohos.util.List | List | forEach(callbackfn: (value: T, index?: number, List?: List
\
<
T>) => void, thisArg?: Object): void; | 新增 |
| ohos.util.List | List | equal(obj: Object): boolean; | 新增 |
| ohos.util.List | List | set(index: number, element: T): T; | 新增 |
| ohos.util.List | List | getLast(): T; | 新增 |
...
...
@@ -170,11 +170,11 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,公共基础
| ohos.util.List | List | add(element: T): boolean; | 新增 |
| ohos.util.List | List | length: number; | 新增 |
| ohos.util.List | List | constructor(); | 新增 |
| ohos.util.LinkedList | LinkedList |
[
Symbol.iterator
](
):
IterableIterator
<T>
; | 新增 |
| ohos.util.LinkedList | LinkedList | convertToArray(): Array
<T>
; | 新增 |
| ohos.util.LinkedList | LinkedList | clone(): LinkedList
<T>
; | 新增 |
| ohos.util.LinkedList | LinkedList |
\[
Symbol.iterator](): IterableIterator
\
<
T>; | 新增 |
| ohos.util.LinkedList | LinkedList | convertToArray(): Array
\
<
T>; | 新增 |
| ohos.util.LinkedList | LinkedList | clone(): LinkedList
\
<
T>; | 新增 |
| ohos.util.LinkedList | LinkedList | clear(): void; | 新增 |
| ohos.util.LinkedList | LinkedList | forEach(callbackfn: (value: T, index?: number, LinkedList?: LinkedList
<T>
) => void, thisArg?: Object): void; | 新增 |
| ohos.util.LinkedList | LinkedList | forEach(callbackfn: (value: T, index?: number, LinkedList?: LinkedList
\
<
T>) => void, thisArg?: Object): void; | 新增 |
| ohos.util.LinkedList | LinkedList | set(index: number, element: T): T; | 新增 |
| ohos.util.LinkedList | LinkedList | getLast(): T; | 新增 |
| ohos.util.LinkedList | LinkedList | getFirst(): T; | 新增 |
...
...
@@ -194,13 +194,13 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,公共基础
| ohos.util.LinkedList | LinkedList | length: number; | 新增 |
| ohos.util.LinkedList | LinkedList | constructor(); | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | isEmpty(): boolean; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | entries(): IterableIterator
<
[
T
,
T
]
>
; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | values(): IterableIterator
<T>
; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | entries(): IterableIterator
\
<
[T, T]>; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | values(): IterableIterator
\
<
T>; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | getValueAt(index: number): T; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | toArray(): Array
<T>
; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | toArray(): Array
\
<
T>; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | toString(): String; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet |
[
Symbol.iterator
](
):
IterableIterator
<T>
; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | forEach(callbackfn: (value?: T, key?: T, set?: LightWeightSet
<T>
) => void, thisArg?: Object): void; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet |
\[
Symbol.iterator](): IterableIterator
\
<
T>; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | forEach(callbackfn: (value?: T, key?: T, set?: LightWeightSet
\
<
T>) => void, thisArg?: Object): void; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | clear(): void; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | removeAt(index: number): boolean; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | remove(key: T): T; | 新增 |
...
...
@@ -208,39 +208,39 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,公共基础
| ohos.util.LightWeightSet | LightWeightSet | increaseCapacityTo(minimumCapacity: number): void; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | equal(obj: Object): boolean; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | has(key: T): boolean; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | hasAll(set: LightWeightSet
<T>
): boolean; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | addAll(set: LightWeightSet
<T>
): boolean; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | hasAll(set: LightWeightSet
\
<
T>): boolean; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | addAll(set: LightWeightSet
\
<
T>): boolean; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | add(obj: T): boolean; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | length: number; | 新增 |
| ohos.util.LightWeightSet | LightWeightSet | constructor(); | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | values(): IterableIterator
<V>
; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | values(): IterableIterator
\
<
V>; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | getValueAt(index: number): V; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | toString(): String; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap |
[
Symbol.iterator
](
):
IterableIterator
<
[
K
,
V
]
>
; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | forEach(callbackfn: (value?: V, key?: K, map?: LightWeightMap
<K
,
V
>
) => void, thisArg?: Object): void; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap |
\[
Symbol.iterator](): IterableIterator
\
<
[K, V]>; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | forEach(callbackfn: (value?: V, key?: K, map?: LightWeightMap
\
<
K, V>) => void, thisArg?: Object): void; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | setValueAt(index: number, newValue: V): boolean; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | clear(): void; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | removeAt(index: number): boolean; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | remove(key: K): V; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | set(key: K, value: V): Object; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | setAll(map: LightWeightMap
<K
,
V
>
): void; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | keys(): IterableIterator
<K>
; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | setAll(map: LightWeightMap
\
<
K, V>): void; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | keys(): IterableIterator
\
<
K>; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | getKeyAt(index: number): K; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | isEmpty(): boolean; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | getIndexOfValue(value: V): number; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | getIndexOfKey(key: K): number; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | get(key: K): V; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | entries(): IterableIterator
<
[
K
,
V
]
>
; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | entries(): IterableIterator
\
<
[K, V]>; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | increaseCapacityTo(minimumCapacity: number): void; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | hasValue(value: V): boolean; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | hasKey(key: K): boolean; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | hasAll(map: LightWeightMap
<K
,
V
>
): boolean; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | hasAll(map: LightWeightMap
\
<
K, V>): boolean; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | length: number; | 新增 |
| ohos.util.LightWeightMap | LightWeightMap | constructor(); | 新增 |
| ohos.util.HashSet | HashSet |
[
Symbol.iterator
](
):
IterableIterator
<T>
; | 新增 |
| ohos.util.HashSet | HashSet | entries(): IterableIterator
<
[
T
,
T
]
>
; | 新增 |
| ohos.util.HashSet | HashSet | values(): IterableIterator
<T>
; | 新增 |
| ohos.util.HashSet | HashSet | forEach(callbackfn: (value?: T, key?: T, set?: HashSet
<T>
) => void, thisArg?: Object): void; | 新增 |
| ohos.util.HashSet | HashSet |
\[
Symbol.iterator](): IterableIterator
\
<
T>; | 新增 |
| ohos.util.HashSet | HashSet | entries(): IterableIterator
\
<
[T, T]>; | 新增 |
| ohos.util.HashSet | HashSet | values(): IterableIterator
\
<
T>; | 新增 |
| ohos.util.HashSet | HashSet | forEach(callbackfn: (value?: T, key?: T, set?: HashSet
\
<
T>) => void, thisArg?: Object): void; | 新增 |
| ohos.util.HashSet | HashSet | clear(): void; | 新增 |
| ohos.util.HashSet | HashSet | remove(value: T): boolean; | 新增 |
| ohos.util.HashSet | HashSet | add(value: T): boolean; | 新增 |
...
...
@@ -248,24 +248,24 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,公共基础
| ohos.util.HashSet | HashSet | isEmpty(): boolean; | 新增 |
| ohos.util.HashSet | HashSet | length: number; | 新增 |
| ohos.util.HashSet | HashSet | constructor(); | 新增 |
| ohos.util.HashMap | HashMap |
[
Symbol.iterator
](
):
IterableIterator
<
[
K
,
V
]
>
; | 新增 |
| ohos.util.HashMap | HashMap | entries(): IterableIterator
<
[
K
,
V
]
>
; | 新增 |
| ohos.util.HashMap | HashMap | forEach(callbackfn: (value?: V, key?: K, map?: HashMap
<K
,
V
>
) => void, thisArg?: Object): void; | 新增 |
| ohos.util.HashMap | HashMap |
\[
Symbol.iterator](): IterableIterator
\
<
[K, V]>; | 新增 |
| ohos.util.HashMap | HashMap | entries(): IterableIterator
\
<
[K, V]>; | 新增 |
| ohos.util.HashMap | HashMap | forEach(callbackfn: (value?: V, key?: K, map?: HashMap
\
<
K, V>) => void, thisArg?: Object): void; | 新增 |
| ohos.util.HashMap | HashMap | replace(key: K, newValue: V): boolean; | 新增 |
| ohos.util.HashMap | HashMap | values(): IterableIterator
<V>
; | 新增 |
| ohos.util.HashMap | HashMap | keys(): IterableIterator
<K>
; | 新增 |
| ohos.util.HashMap | HashMap | values(): IterableIterator
\
<
V>; | 新增 |
| ohos.util.HashMap | HashMap | keys(): IterableIterator
\
<
K>; | 新增 |
| ohos.util.HashMap | HashMap | clear(): void; | 新增 |
| ohos.util.HashMap | HashMap | remove(key: K): V; | 新增 |
| ohos.util.HashMap | HashMap | set(key: K, value: V): Object; | 新增 |
| ohos.util.HashMap | HashMap | setAll(map: HashMap
<K
,
V
>
): void; | 新增 |
| ohos.util.HashMap | HashMap | setAll(map: HashMap
\
<
K, V>): void; | 新增 |
| ohos.util.HashMap | HashMap | get(key: K): V; | 新增 |
| ohos.util.HashMap | HashMap | hasValue(value: V): boolean; | 新增 |
| ohos.util.HashMap | HashMap | hasKey(key: K): boolean; | 新增 |
| ohos.util.HashMap | HashMap | isEmpty(): boolean; | 新增 |
| ohos.util.HashMap | HashMap | length: number; | 新增 |
| ohos.util.HashMap | HashMap | constructor(); | 新增 |
| ohos.util.Deque | Deque |
[
Symbol.iterator
](
):
IterableIterator
<T>
; | 新增 |
| ohos.util.Deque | Deque | forEach(callbackfn: (value: T, index?: number, deque?: Deque
<T>
) => void, thisArg?: Object): void; | 新增 |
| ohos.util.Deque | Deque |
\[
Symbol.iterator](): IterableIterator
\
<
T>; | 新增 |
| ohos.util.Deque | Deque | forEach(callbackfn: (value: T, index?: number, deque?: Deque
\
<
T>) => void, thisArg?: Object): void; | 新增 |
| ohos.util.Deque | Deque | popLast(): T; | 新增 |
| ohos.util.Deque | Deque | popFirst(): T; | 新增 |
| ohos.util.Deque | Deque | getLast(): T; | 新增 |
...
...
@@ -321,18 +321,18 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,公共基础
| ohos.util | LruBuffer | getCapacity(): number; | 新增 |
| ohos.util | LruBuffer | length:number | 新增 |
| ohos.util | RationalNumber | valueOf(): number; | 新增 |
| ohos.util.ArrayList | ArrayList |
[
Symbol.iterator
](
):
IterableIterator
<T>
; | 新增 |
| ohos.util.ArrayList | ArrayList |
\[
Symbol.iterator](): IterableIterator
\
<
T>; | 新增 |
| ohos.util.ArrayList | ArrayList | trimToCurrentLength(): void; | 新增 |
| ohos.util.ArrayList | ArrayList | increaseCapacityTo(newCapacity: number): void; | 新增 |
| ohos.util.ArrayList | ArrayList | isEmpty(): boolean; | 新增 |
| ohos.util.ArrayList | ArrayList | convertToArray(): Array
<T>
; | 新增 |
| ohos.util.ArrayList | ArrayList | convertToArray(): Array
\
<
T>; | 新增 |
| ohos.util.ArrayList | ArrayList | getCapacity(): number; | 新增 |
| ohos.util.ArrayList | ArrayList | clone(): ArrayList
<T>
; | 新增 |
| ohos.util.ArrayList | ArrayList | clone(): ArrayList
\
<
T>; | 新增 |
| ohos.util.ArrayList | ArrayList | clear(): void; | 新增 |
| ohos.util.ArrayList | ArrayList | subArrayList(fromIndex: number, toIndex: number): ArrayList
<T>
; | 新增 |
| ohos.util.ArrayList | ArrayList | subArrayList(fromIndex: number, toIndex: number): ArrayList
\
<
T>; | 新增 |
| ohos.util.ArrayList | ArrayList | sort(comparator?: (firstValue: T, secondValue: T) => number): void; | 新增 |
| ohos.util.ArrayList | ArrayList | forEach(callbackfn: (value: T, index?: number, arrlist?: ArrayList
<T>
) => void, thisArg?: Object): void; | 新增 |
| ohos.util.ArrayList | ArrayList | replaceAllElements(callbackfn: (value: T, index?: number, arrlist?: ArrayList
<T>
) => T, thisArg?: Object): void; | 新增 |
| ohos.util.ArrayList | ArrayList | forEach(callbackfn: (value: T, index?: number, arrlist?: ArrayList
\
<
T>) => void, thisArg?: Object): void; | 新增 |
| ohos.util.ArrayList | ArrayList | replaceAllElements(callbackfn: (value: T, index?: number, arrlist?: ArrayList
\
<
T>) => T, thisArg?: Object): void; | 新增 |
| ohos.util.ArrayList | ArrayList | removeByRange(fromIndex: number, toIndex: number): void; | 新增 |
| ohos.util.ArrayList | ArrayList | getLastIndexOf(element: T): number; | 新增 |
| ohos.util.ArrayList | ArrayList | remove(element: T): boolean; | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md
浏览文件 @
e39dc96d
...
...
@@ -6,19 +6,19 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,DFX子系统
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.hiTraceMeter | hiTraceMeter |
function
traceByValue(name: string, count: number): void; | 新增 |
| ohos.hiTraceMeter | hiTraceMeter | f
unction f
inishTrace(name: string, taskId: number): void; | 新增 |
| ohos.hiTraceMeter | hiTraceMeter |
function
startTrace(name: string, taskId: number): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain |
function
enableFlag(id: HiTraceId, flag: HiTraceFlag): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain |
function
isFlagEnabled(id: HiTraceId, flag: HiTraceFlag): boolean; | 新增 |
| ohos.hiTraceChain | hiTraceChain |
function
isValid(id: HiTraceId): boolean; | 新增 |
| ohos.hiTraceChain | hiTraceChain |
function
tracepoint(mode: HiTraceCommunicationMode, type: HiTraceTracepointType, id: HiTraceId, msg?: string): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain |
function
createSpan(): HiTraceId; | 新增 |
| ohos.hiTraceChain | hiTraceChain |
function
clearId(): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain |
function
setId(id: HiTraceId): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain |
function
getId(): HiTraceId; | 新增 |
| ohos.hiTraceChain | hiTraceChain |
function
end(id: HiTraceId): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain |
function
begin(name: string, flags: number = HiTraceFlag.DEFAULT): HiTraceId; | 新增 |
| ohos.hiTraceMeter | hiTraceMeter | traceByValue(name: string, count: number): void; | 新增 |
| ohos.hiTraceMeter | hiTraceMeter | finishTrace(name: string, taskId: number): void; | 新增 |
| ohos.hiTraceMeter | hiTraceMeter | startTrace(name: string, taskId: number): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain | enableFlag(id: HiTraceId, flag: HiTraceFlag): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain | isFlagEnabled(id: HiTraceId, flag: HiTraceFlag): boolean; | 新增 |
| ohos.hiTraceChain | hiTraceChain | isValid(id: HiTraceId): boolean; | 新增 |
| ohos.hiTraceChain | hiTraceChain | tracepoint(mode: HiTraceCommunicationMode, type: HiTraceTracepointType, id: HiTraceId, msg?: string): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain | createSpan(): HiTraceId; | 新增 |
| ohos.hiTraceChain | hiTraceChain | clearId(): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain | setId(id: HiTraceId): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain | getId(): HiTraceId; | 新增 |
| ohos.hiTraceChain | hiTraceChain | end(id: HiTraceId): void; | 新增 |
| ohos.hiTraceChain | hiTraceChain | begin(name: string, flags: number = HiTraceFlag.DEFAULT): HiTraceId; | 新增 |
| ohos.hiTraceChain | HiTraceId | flags?: number; | 新增 |
| ohos.hiTraceChain | HiTraceId | parentSpanId?: number; | 新增 |
| ohos.hiTraceChain | HiTraceId | spanId?: number; | 新增 |
...
...
@@ -45,24 +45,24 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,DFX子系统
| ohos.hilog | LogLevel | WARN = 5 | 新增 |
| ohos.hilog | LogLevel | INFO = 4 | 新增 |
| ohos.hilog | LogLevel | DEBUG = 3 | 新增 |
| ohos.hilog | hilog |
function
isLoggable(domain: number, tag: string, level: LogLevel) : boolean; | 新增 |
| ohos.hilog | hilog | f
unction f
atal(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hilog | hilog |
function
error(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hilog | hilog |
function
warn(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hilog | hilog |
function
info(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hilog | hilog |
function
debug(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hidebug | hidebug |
function
dumpHeapData(filename : string) : void; | 新增 |
| ohos.hidebug | hidebug |
function
stopProfiling() : void; | 新增 |
| ohos.hidebug | hidebug |
function
startProfiling(filename : string) : void; | 新增 |
| ohos.hidebug | hidebug |
function
getSharedDirty() : bigint; | 新增 |
| ohos.hidebug | hidebug |
function
getPss() : bigint; | 新增 |
| ohos.hidebug | hidebug |
function
getNativeHeapFreeSize() : bigint; | 新增 |
| ohos.hidebug | hidebug |
function
getNativeHeapAllocatedSize() : bigint; | 新增 |
| ohos.hidebug | hidebug |
function
getNativeHeapSize() : bigint; | 新增 |
| ohos.hichecker | hichecker |
function
contains(rule: bigint) : boolean; | 新增 |
| ohos.hichecker | hichecker |
function
getRule() : bigint; | 新增 |
| ohos.hichecker | hichecker |
function
removeRule(rule: bigint) : void; | 新增 |
| ohos.hichecker | hichecker |
function
addRule(rule: bigint) : void; | 新增 |
| ohos.hilog | hilog | isLoggable(domain: number, tag: string, level: LogLevel) : boolean; | 新增 |
| ohos.hilog | hilog | fatal(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hilog | hilog | error(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hilog | hilog | warn(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hilog | hilog | info(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hilog | hilog | debug(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 |
| ohos.hidebug | hidebug | dumpHeapData(filename : string) : void; | 新增 |
| ohos.hidebug | hidebug | stopProfiling() : void; | 新增 |
| ohos.hidebug | hidebug | startProfiling(filename : string) : void; | 新增 |
| ohos.hidebug | hidebug | getSharedDirty() : bigint; | 新增 |
| ohos.hidebug | hidebug | getPss() : bigint; | 新增 |
| ohos.hidebug | hidebug | getNativeHeapFreeSize() : bigint; | 新增 |
| ohos.hidebug | hidebug | getNativeHeapAllocatedSize() : bigint; | 新增 |
| ohos.hidebug | hidebug | getNativeHeapSize() : bigint; | 新增 |
| ohos.hichecker | hichecker | contains(rule: bigint) : boolean; | 新增 |
| ohos.hichecker | hichecker | getRule() : bigint; | 新增 |
| ohos.hichecker | hichecker | removeRule(rule: bigint) : void; | 新增 |
| ohos.hichecker | hichecker | addRule(rule: bigint) : void; | 新增 |
| ohos.hichecker | hichecker | const RULE_CHECK_ABILITY_CONNECTION_LEAK: 8589934592n; | 新增 |
| ohos.hichecker | hichecker | const RULE_THREAD_CHECK_SLOW_PROCESS: 1n; | 新增 |
| ohos.hichecker | hichecker | const RULE_CAUTION_TRIGGER_CRASH: 4611686018427387904n; | 新增 |
...
...
@@ -75,7 +75,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,DFX子系统
| ohos.faultLogger | FaultLogInfo | type: FaultType; | 新增 |
| ohos.faultLogger | FaultLogInfo | uid: number; | 新增 |
| ohos.faultLogger | FaultLogInfo | pid: number; | 新增 |
| ohos.faultLogger | FaultLogger |
function querySelfFaultLog(faultType: FaultType, callback: AsyncCallback
<Array
<
FaultLogInfo
>
>) : void;
<br>
function querySelfFaultLog(faultType: FaultType) : Promise
<Array
<
FaultLogInfo
>
>; | 新增 |
| ohos.faultLogger | FaultLogger |
querySelfFaultLog(faultType: FaultType, callback: AsyncCallback
\<
Array
\<
FaultLogInfo>>) : void;
<br>
querySelfFaultLog(faultType: FaultType) : Promise
\<
Array
\
<
FaultLogInfo>>; | 新增 |
| ohos.faultLogger | FaultType | APP_FREEZE = 4 | 新增 |
| ohos.faultLogger | FaultType | JS_CRASH = 3 | 新增 |
| ohos.faultLogger | FaultType | CPP_CRASH = 2 | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md
浏览文件 @
e39dc96d
...
...
@@ -7,57 +7,57 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,分布式数
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.data.rdb | RdbPredicates | inAllDevices(): RdbPredicates; | 新增 |
| ohos.data.rdb | RdbPredicates | inDevices(devices: Array
<string>
): RdbPredicates; | 新增 |
| ohos.data.rdb | RdbStore | off(event:'dataChange', type: SubscribeType, observer: Callback
<Array
<
string
>
>): void; | 新增 |
| ohos.data.rdb | RdbStore | on(event: 'dataChange', type: SubscribeType, observer: Callback
<Array
<
string
>
>): void; | 新增 |
| ohos.data.rdb | RdbStore | sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback
<Array
<[
string
,
number
]
>
>): void;
<br>
sync(mode: SyncMode, predicates: RdbPredicates): Promise
<Array
<[
string
,
number
]
>
>; | 新增 |
| ohos.data.rdb | RdbStore | obtainDistributedTableName(device: string, table: string, callback: AsyncCallback
<string>
): void;
<br>
obtainDistributedTableName(device: string, table: string): Promise
<string>
; | 新增 |
| ohos.data.rdb | RdbStore | setDistributedTables(tables: Array
<string>
, callback: AsyncCallback
<void>
): void;
<br>
setDistributedTables(tables: Array
<string>
): Promise
<void>
; | 新增 |
| ohos.data.rdb | RdbPredicates | inDevices(devices: Array
\
<
string>): RdbPredicates; | 新增 |
| ohos.data.rdb | RdbStore | off(event:'dataChange', type: SubscribeType, observer: Callback
\<
Array
\
<
string>>): void; | 新增 |
| ohos.data.rdb | RdbStore | on(event: 'dataChange', type: SubscribeType, observer: Callback
\<
Array
\
<
string>>): void; | 新增 |
| ohos.data.rdb | RdbStore | sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback
\<
Array
\<
[string, number]>>): void;
<br>
sync(mode: SyncMode, predicates: RdbPredicates): Promise
\<
Array
\
<
[string, number]>>; | 新增 |
| ohos.data.rdb | RdbStore | obtainDistributedTableName(device: string, table: string, callback: AsyncCallback
\<
string>): void;
<br>
obtainDistributedTableName(device: string, table: string): Promise
\
<
string>; | 新增 |
| ohos.data.rdb | RdbStore | setDistributedTables(tables: Array
\<
string>, callback: AsyncCallback
\<
void>): void;
<br>
setDistributedTables(tables: Array
\<
string>): Promise
\
<
void>; | 新增 |
| ohos.data.rdb | RdbStore | rollBack():void; | 新增 |
| ohos.data.rdb | RdbStore | commit():void; | 新增 |
| ohos.data.rdb | RdbStore | beginTransaction():void; | 新增 |
| ohos.data.rdb | RdbStore | querySql(sql: string, bindArgs: Array
<ValueType>
, callback: AsyncCallback
<ResultSet>
): void;
<br>
querySql(sql: string, bindArgs?: Array
<ValueType>
): Promise
<ResultSet>
; | 新增 |
| ohos.data.rdb | RdbStore | querySql(sql: string, bindArgs: Array
\<
ValueType>, callback: AsyncCallback
\<
ResultSet>): void;
<br>
querySql(sql: string, bindArgs?: Array
\<
ValueType>): Promise
\
<
ResultSet>; | 新增 |
| ohos.data.rdb | SubscribeType | SUBSCRIBE_TYPE_REMOTE = 0 | 新增 |
| ohos.data.rdb | SyncMode | SYNC_MODE_PULL = 1 | 新增 |
| ohos.data.rdb | SyncMode | SYNC_MODE_PUSH = 0 | 新增 |
| ohos.data.distributedDataObject | DistributedObject | off(type: 'status', callback?: Callback
<
{
sessionId:
string
,
deviceId:
string
,
status:
'
online
'
\|
'
offline
'
}
>
): void; | 新增 |
| ohos.data.distributedDataObject | DistributedObject | on(type: 'status', callback: Callback
<
{
sessionId:
string
,
networkId:
string
,
status:
'
online
'
\|
'
offline
'
}
>
): void; | 新增 |
| ohos.data.distributedDataObject | DistributedObject | off(type: 'change', callback?: Callback
<
{
sessionId:
string
,
fields:
Array
<
string
>
}>): void; | 新增 |
| ohos.data.distributedDataObject | DistributedObject | on(type: 'change', callback: Callback
<
{
sessionId:
string
,
fields:
Array
<
string
>
}>): void; | 新增 |
| ohos.data.distributedDataObject | DistributedObject | off(type: 'status', callback?: Callback
\
<
{ sessionId: string, deviceId: string, status: 'online'
\|
'offline' }>): void; | 新增 |
| ohos.data.distributedDataObject | DistributedObject | on(type: 'status', callback: Callback
\
<
{ sessionId: string, networkId: string, status: 'online'
\|
'offline' }>): void; | 新增 |
| ohos.data.distributedDataObject | DistributedObject | off(type: 'change', callback?: Callback
\<
{ sessionId: string, fields: Array
\
<
string> }>): void; | 新增 |
| ohos.data.distributedDataObject | DistributedObject | on(type: 'change', callback: Callback
\<
{ sessionId: string, fields: Array
\
<
string> }>): void; | 新增 |
| ohos.data.distributedDataObject | DistributedObject | setSessionId(sessionId?: string): boolean; | 新增 |
| ohos.data.distributedDataObject | distributedDataObject |
function
genSessionId(): string; | 新增 |
| ohos.data.distributedDataObject | distributedDataObject |
function
createDistributedObject(source: object): DistributedObject; | 新增 |
| ohos.data.distributedData | KVManager | off(event: 'distributedDataServiceDie', deathCallback?: Callback
<void>
): void; | 新增 |
| ohos.data.distributedData | KVManager | on(event: 'distributedDataServiceDie', deathCallback: Callback
<void>
): void; | 新增 |
| ohos.data.distributedData | KVManager | getAllKVStoreId(appId: string, callback: AsyncCallback
<string
[]
>
): void;
<br>
getAllKVStoreId(appId: string): Promise
<string
[]
>
; | 新增 |
| ohos.data.distributedData | KVManager | deleteKVStore(appId: string, storeId: string, callback: AsyncCallback
<void>
): void;
<br>
deleteKVStore(appId: string, storeId: string): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVManager | closeKVStore(appId: string, storeId: string, kvStore: KVStore, callback: AsyncCallback
<void>
): void;
<br>
closeKVStore(appId: string, storeId: string, kvStore: KVStore): Promise
<void>
; | 新增 |
| ohos.data.distributedData | DeviceKVStore | off(event: 'syncComplete', syncCallback?: Callback
<Array
<[
string
,
number
]
>
>): void; | 新增 |
| ohos.data.distributedData | DeviceKVStore | on(event: 'syncComplete', syncCallback: Callback
<Array
<[
string
,
number
]
>
>): void; | 新增 |
| ohos.data.distributedDataObject | distributedDataObject | genSessionId(): string; | 新增 |
| ohos.data.distributedDataObject | distributedDataObject | createDistributedObject(source: object): DistributedObject; | 新增 |
| ohos.data.distributedData | KVManager | off(event: 'distributedDataServiceDie', deathCallback?: Callback
\
<
void>): void; | 新增 |
| ohos.data.distributedData | KVManager | on(event: 'distributedDataServiceDie', deathCallback: Callback
\
<
void>): void; | 新增 |
| ohos.data.distributedData | KVManager | getAllKVStoreId(appId: string, callback: AsyncCallback
\<
string[]>): void;
<br>
getAllKVStoreId(appId: string): Promise
\
<
string[]>; | 新增 |
| ohos.data.distributedData | KVManager | deleteKVStore(appId: string, storeId: string, callback: AsyncCallback
\<
void>): void;
<br>
deleteKVStore(appId: string, storeId: string): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | KVManager | closeKVStore(appId: string, storeId: string, kvStore: KVStore, callback: AsyncCallback
\<
void>): void;
<br>
closeKVStore(appId: string, storeId: string, kvStore: KVStore): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | DeviceKVStore | off(event: 'syncComplete', syncCallback?: Callback
\<
Array
\
<
[string, number]>>): void; | 新增 |
| ohos.data.distributedData | DeviceKVStore | on(event: 'syncComplete', syncCallback: Callback
\<
Array
\
<
[string, number]>>): void; | 新增 |
| ohos.data.distributedData | DeviceKVStore | sync(deviceIdList: string[], mode: SyncMode, allowedDelayMs?: number): void; | 新增 |
| ohos.data.distributedData | DeviceKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback
<void>
): void;
<br>
removeDeviceData(deviceId: string): Promise
<void>
; | 新增 |
| ohos.data.distributedData | DeviceKVStore | getResultSize(query: Query, callback: AsyncCallback
<number>
): void;
<br>
getResultSize(query: Query): Promise
<number>
;
<br>
getResultSize(deviceId: string, query: Query, callback: AsyncCallback
<number>
): void;
<br>
getResultSize(deviceId: string, query: Query): Promise
<number>
; | 新增 |
| ohos.data.distributedData | DeviceKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback
<void>
): void;
<br>
closeResultSet(resultSet: KvStoreResultSet): Promise
<void>
; | 新增 |
| ohos.data.distributedData | DeviceKVStore | getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback
<KvStoreResultSet>
): void;
<br>
getResultSet(deviceId: string, keyPrefix: string): Promise
<KvStoreResultSet>
;
<br>
getResultSet(query: Query, callback: AsyncCallback
<KvStoreResultSet>
): void;
<br>
getResultSet(query: Query): Promise
<KvStoreResultSet>
;
<br>
getResultSet(deviceId: string, query: Query, callback: AsyncCallback
<KvStoreResultSet>
): void;
<br>
getResultSet(deviceId: string, query: Query): Promise
<KvStoreResultSet>
; | 新增 |
| ohos.data.distributedData | DeviceKVStore | getEntries(deviceId: string, keyPrefix: string, callback: AsyncCallback
<Entry
[]
>
): void;
<br>
getEntries(deviceId: string, keyPrefix: string): Promise
<Entry
[]
>
;
<br>
getEntries(query: Query, callback: AsyncCallback
<Entry
[]
>
): void;
<br>
getEntries(query: Query): Promise
<Entry
[]
>
;
<br>
getEntries(deviceId: string, query: Query, callback: AsyncCallback
<Entry
[]
>
): void;
<br>
getEntries(deviceId: string, query: Query): Promise
<Entry
[]
>
; | 新增 |
| ohos.data.distributedData | DeviceKVStore | get(deviceId: string, key: string, callback: AsyncCallback
<boolean
\|
string
\|
number
\|
Uint8Array
>
): void;
<br>
get(deviceId: string, key: string): Promise
<boolean
\|
string
\|
number
\|
Uint8Array
>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | getSecurityLevel(callback: AsyncCallback
<SecurityLevel>
): void;
<br>
getSecurityLevel(): Promise
<SecurityLevel>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | setSyncParam(defaultAllowedDelayMs: number, callback: AsyncCallback
<void>
): void;
<br>
setSyncParam(defaultAllowedDelayMs: number): Promise
<void>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | off(event: 'syncComplete', syncCallback?: Callback
<Array
<[
string
,
number
]
>
>): void; | 新增 |
| ohos.data.distributedData | SingleKVStore | on(event: 'syncComplete', syncCallback: Callback
<Array
<[
string
,
number
]
>
>): void; | 新增 |
| ohos.data.distributedData | SingleKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback
<void>
): void;
<br>
removeDeviceData(deviceId: string): Promise
<void>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | getResultSize(query: Query, callback: AsyncCallback
<number>
): void;
<br>
getResultSize(query: Query): Promise
<number>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback
<void>
): void;
<br>
closeResultSet(resultSet: KvStoreResultSet): Promise
<void>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | getResultSet(keyPrefix: string, callback: AsyncCallback
<KvStoreResultSet>
): void;
<br>
getResultSet(keyPrefix: string): Promise
<KvStoreResultSet>
;
<br>
getResultSet(query: Query, callback: AsyncCallback
<KvStoreResultSet>
): void;
<br>
getResultSet(query: Query): Promise
<KvStoreResultSet>
; | 新增 |
| ohos.data.distributedData | SingleKVStore | getEntries(keyPrefix: string, callback: AsyncCallback
<Entry
[]
>
): void;
<br>
getEntries(keyPrefix: string): Promise
<Entry
[]
>
;
<br>
getEntries(query: Query, callback: AsyncCallback
<Entry
[]
>
): void;
<br>
getEntries(query: Query): Promise
<Entry
[]
>
; | 新增 |
| ohos.data.distributedData | KVStore | setSyncRange(localLabels: string[], remoteSupportLabels: string[], callback: AsyncCallback
<void>
): void;
<br>
setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | enableSync(enabled: boolean, callback: AsyncCallback
<void>
): void;
<br>
enableSync(enabled: boolean): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | rollback(callback: AsyncCallback
<void>
): void;
<br>
rollback(): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | commit(callback: AsyncCallback
<void>
): void;
<br>
commit(): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | startTransaction(callback: AsyncCallback
<void>
): void;
<br>
startTransaction(): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | deleteBatch(keys: string[], callback: AsyncCallback
<void>
): void;
<br>
deleteBatch(keys: string[]): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | putBatch(entries: Entry[], callback: AsyncCallback
<void>
): void;
<br>
putBatch(entries: Entry[]): Promise
<void>
; | 新增 |
| ohos.data.distributedData | KVStore | off(event:'dataChange', observer?: Callback
<ChangeNotification>
): void; | 新增 |
| ohos.data.distributedData | DeviceKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback
\<
void>): void;
<br>
removeDeviceData(deviceId: string): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | DeviceKVStore | getResultSize(query: Query, callback: AsyncCallback
\<
number>): void;
<br>
getResultSize(query: Query): Promise
\<
number>;
<br>
getResultSize(deviceId: string, query: Query, callback: AsyncCallback
\<
number>): void;
<br>
getResultSize(deviceId: string, query: Query): Promise
\
<
number>; | 新增 |
| ohos.data.distributedData | DeviceKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback
\<
void>): void;
<br>
closeResultSet(resultSet: KvStoreResultSet): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | DeviceKVStore | getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback
\<
KvStoreResultSet>): void;
<br>
getResultSet(deviceId: string, keyPrefix: string): Promise
\<
KvStoreResultSet>;
<br>
getResultSet(query: Query, callback: AsyncCallback
\<
KvStoreResultSet>): void;
<br>
getResultSet(query: Query): Promise
\<
KvStoreResultSet>;
<br>
getResultSet(deviceId: string, query: Query, callback: AsyncCallback
\<
KvStoreResultSet>): void;
<br>
getResultSet(deviceId: string, query: Query): Promise
\
<
KvStoreResultSet>; | 新增 |
| ohos.data.distributedData | DeviceKVStore | getEntries(deviceId: string, keyPrefix: string, callback: AsyncCallback
\<
Entry[]>): void;
<br>
getEntries(deviceId: string, keyPrefix: string): Promise
\<
Entry[]>;
<br>
getEntries(query: Query, callback: AsyncCallback
\<
Entry[]>): void;
<br>
getEntries(query: Query): Promise
\<
Entry[]>;
<br>
getEntries(deviceId: string, query: Query, callback: AsyncCallback
\<
Entry[]>): void;
<br>
getEntries(deviceId: string, query: Query): Promise
\
<
Entry[]>; | 新增 |
| ohos.data.distributedData | DeviceKVStore | get(deviceId: string, key: string, callback: AsyncCallback
\<
boolean
\|
string
\|
number
\|
Uint8Array>): void;
<br>
get(deviceId: string, key: string): Promise
\
<
boolean
\|
string
\|
number
\|
Uint8Array>; | 新增 |
| ohos.data.distributedData | SingleKVStore | getSecurityLevel(callback: AsyncCallback
\<
SecurityLevel>): void;
<br>
getSecurityLevel(): Promise
\
<
SecurityLevel>; | 新增 |
| ohos.data.distributedData | SingleKVStore | setSyncParam(defaultAllowedDelayMs: number, callback: AsyncCallback
\<
void>): void;
<br>
setSyncParam(defaultAllowedDelayMs: number): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | SingleKVStore | off(event: 'syncComplete', syncCallback?: Callback
\<
Array
\
<
[string, number]>>): void; | 新增 |
| ohos.data.distributedData | SingleKVStore | on(event: 'syncComplete', syncCallback: Callback
\<
Array
\
<
[string, number]>>): void; | 新增 |
| ohos.data.distributedData | SingleKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback
\<
void>): void;
<br>
removeDeviceData(deviceId: string): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | SingleKVStore | getResultSize(query: Query, callback: AsyncCallback
\<
number>): void;
<br>
getResultSize(query: Query): Promise
\
<
number>; | 新增 |
| ohos.data.distributedData | SingleKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback
\<
void>): void;
<br>
closeResultSet(resultSet: KvStoreResultSet): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | SingleKVStore | getResultSet(keyPrefix: string, callback: AsyncCallback
\<
KvStoreResultSet>): void;
<br>
getResultSet(keyPrefix: string): Promise
\<
KvStoreResultSet>;
<br>
getResultSet(query: Query, callback: AsyncCallback
\<
KvStoreResultSet>): void;
<br>
getResultSet(query: Query): Promise
\
<
KvStoreResultSet>; | 新增 |
| ohos.data.distributedData | SingleKVStore | getEntries(keyPrefix: string, callback: AsyncCallback
\<
Entry[]>): void;
<br>
getEntries(keyPrefix: string): Promise
\<
Entry[]>;
<br>
getEntries(query: Query, callback: AsyncCallback
\<
Entry[]>): void;
<br>
getEntries(query: Query): Promise
\
<
Entry[]>; | 新增 |
| ohos.data.distributedData | KVStore | setSyncRange(localLabels: string[], remoteSupportLabels: string[], callback: AsyncCallback
\<
void>): void;
<br>
setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | KVStore | enableSync(enabled: boolean, callback: AsyncCallback
\<
void>): void;
<br>
enableSync(enabled: boolean): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | KVStore | rollback(callback: AsyncCallback
\<
void>): void;
<br>
rollback(): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | KVStore | commit(callback: AsyncCallback
\<
void>): void;
<br>
commit(): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | KVStore | startTransaction(callback: AsyncCallback
\<
void>): void;
<br>
startTransaction(): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | KVStore | deleteBatch(keys: string[], callback: AsyncCallback
\<
void>): void;
<br>
deleteBatch(keys: string[]): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | KVStore | putBatch(entries: Entry[], callback: AsyncCallback
\<
void>): void;
<br>
putBatch(entries: Entry[]): Promise
\
<
void>; | 新增 |
| ohos.data.distributedData | KVStore | off(event:'dataChange', observer?: Callback
\
<
ChangeNotification>): void; | 新增 |
| ohos.data.distributedData | Query | getSqlLike():string; | 新增 |
| ohos.data.distributedData | Query | deviceId(deviceId:string):Query; | 新增 |
| ohos.data.distributedData | Query | setSuggestIndex(index: string): Query; | 新增 |
...
...
@@ -105,7 +105,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,分布式数
| ohos.data.distributedData | FieldNode | constructor(name: string) | 新增 |
| ohos.data.distributedData | Schema | skip: number; | 新增 |
| ohos.data.distributedData | Schema | mode: number; | 新增 |
| ohos.data.distributedData | Schema | indexes: Array
<string>
; | 新增 |
| ohos.data.distributedData | Schema | indexes: Array
\
<
string>; | 新增 |
| ohos.data.distributedData | Schema | root: FieldNode; | 新增 |
| ohos.data.distributedData | Schema | constructor() | 新增 |
| ohos.data.distributedData | Options | schema?: Schema; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data_api-9-canary.md
浏览文件 @
e39dc96d
...
...
@@ -6,16 +6,16 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,分布式
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.data.dataShare | DataShareHelper | notifyChange(uri: string, callback: AsyncCallback
<void>
): void;
<br>
notifyChange(uri: string): Promise
<void>
; | 新增 |
| ohos.data.dataShare | DataShareHelper | denormalizeUri(uri: string, callback: AsyncCallback
<string>
): void;
<br>
denormalizeUri(uri: string): Promise
<string>
; | 新增 |
| ohos.data.dataShare | DataShareHelper | normalizeUri(uri: string, callback: AsyncCallback
<string>
): void;
<br>
normalizeUri(uri: string): Promise
<string>
; | 新增 |
| ohos.data.dataShare | DataShareHelper | getFileTypes(uri: string, mimeTypeFilter:string, callback: AsyncCallback
<Array
<
string
>
>): void;
<br>
getFileTypes(uri: string, mimeTypeFilter: string): Promise
<Array
<
string
>
>; | 新增 |
| ohos.data.dataShare | DataShareHelper | getType(uri: string, callback: AsyncCallback
<string>
): void;
<br>
getType(uri: string): Promise
<string>
; | 新增 |
| ohos.data.dataShare | DataShareHelper | batchInsert(uri: string, values: Array
<rdb.ValuesBucket>
, callback: AsyncCallback
<number>
): void;
<br>
batchInsert(uri: string, values: Array
<rdb.ValuesBucket>
): Promise
<number>
; | 新增 |
| ohos.data.dataShare | DataShareHelper | update(uri: string, value: rdb.ValuesBucket, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback
<number>
): void;
<br>
update(uri: string, value: rdb.ValuesBucket, predicates: dataAbility.DataAbilityPredicates): Promise
<number>
; | 新增 |
| ohos.data.dataShare | DataShareHelper | query(uri: string, columns: Array
<string>
, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback
<ResultSet>
): void;
<br>
query(uri: string, columns: Array
<string>
, predicates: dataAbility.DataAbilityPredicates): Promise
<ResultSet>
; | 新增 |
| ohos.data.dataShare | DataShareHelper | delete(uri: string, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback
<number>
): void;
<br>
delete(uri: string, predicates: dataAbility.DataAbilityPredicates): Promise
<number>
; | 新增 |
| ohos.data.dataShare | DataShareHelper | insert(uri: string, value: rdb.ValuesBucket, callback: AsyncCallback
<number>
): void;
<br>
insert(uri: string, value: rdb.ValuesBucket): Promise
<number>
; | 新增 |
| ohos.data.dataShare | DataShareHelper | off(type: 'dataChange', uri: string, callback?: AsyncCallback
<void>
): void; | 新增 |
| ohos.data.dataShare | DataShareHelper | on(type: 'dataChange', uri: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.data.dataShare | dataShare |
function
createDataShareHelper(context: Context, want: Want, uri: string): DataShareHelper; | 新增 |
| ohos.data.dataShare | DataShareHelper | notifyChange(uri: string, callback: AsyncCallback
\<
void>): void;
<br>
notifyChange(uri: string): Promise
\
<
void>; | 新增 |
| ohos.data.dataShare | DataShareHelper | denormalizeUri(uri: string, callback: AsyncCallback
\<
string>): void;
<br>
denormalizeUri(uri: string): Promise
\
<
string>; | 新增 |
| ohos.data.dataShare | DataShareHelper | normalizeUri(uri: string, callback: AsyncCallback
\<
string>): void;
<br>
normalizeUri(uri: string): Promise
\
<
string>; | 新增 |
| ohos.data.dataShare | DataShareHelper | getFileTypes(uri: string, mimeTypeFilter:string, callback: AsyncCallback
\<
Array
\<
string>>): void;
<br>
getFileTypes(uri: string, mimeTypeFilter: string): Promise
\<
Array
\
<
string>>; | 新增 |
| ohos.data.dataShare | DataShareHelper | getType(uri: string, callback: AsyncCallback
\<
string>): void;
<br>
getType(uri: string): Promise
\
<
string>; | 新增 |
| ohos.data.dataShare | DataShareHelper | batchInsert(uri: string, values: Array
\<
rdb.ValuesBucket>, callback: AsyncCallback
\<
number>): void;
<br>
batchInsert(uri: string, values: Array
\<
rdb.ValuesBucket>): Promise
\
<
number>; | 新增 |
| ohos.data.dataShare | DataShareHelper | update(uri: string, value: rdb.ValuesBucket, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback
\<
number>): void;
<br>
update(uri: string, value: rdb.ValuesBucket, predicates: dataAbility.DataAbilityPredicates): Promise
\
<
number>; | 新增 |
| ohos.data.dataShare | DataShareHelper | query(uri: string, columns: Array
\<
string>, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback
\<
ResultSet>): void;
<br>
query(uri: string, columns: Array
\<
string>, predicates: dataAbility.DataAbilityPredicates): Promise
\
<
ResultSet>; | 新增 |
| ohos.data.dataShare | DataShareHelper | delete(uri: string, predicates: dataAbility.DataAbilityPredicates, callback: AsyncCallback
\<
number>): void;
<br>
delete(uri: string, predicates: dataAbility.DataAbilityPredicates): Promise
\
<
number>; | 新增 |
| ohos.data.dataShare | DataShareHelper | insert(uri: string, value: rdb.ValuesBucket, callback: AsyncCallback
\<
number>): void;
<br>
insert(uri: string, value: rdb.ValuesBucket): Promise
\
<
number>; | 新增 |
| ohos.data.dataShare | DataShareHelper | off(type: 'dataChange', uri: string, callback?: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.data.dataShare | DataShareHelper | on(type: 'dataChange', uri: string, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.data.dataShare | dataShare | createDataShareHelper(context: Context, want: Want, uri: string): DataShareHelper; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-hardware.md
浏览文件 @
e39dc96d
...
...
@@ -7,8 +7,8 @@ OpenHarmony 3.1 LTS版本相较于OpenHarmony 3.1 Beta版本的API变更如下:
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| 分布式硬件子系统-DeviceManager | release(): void | 删除 | 为了降低安全风险,删除设备管理JS API |
| 分布式硬件子系统-DeviceManager | getTrustedDeviceListSync(): Array
<DeviceInfo>
| 删除 | 为了降低安全风险,删除设备管理JS API |
| 分布式硬件子系统-DeviceManager | on(type: 'deviceStateChange', callback: Callback
<
{
action:
DeviceStateChangeAction
,
device:
DeviceInfo
}
>
): void | 删除 | 为了降低安全风险,删除设备管理JS API |
| 分布式硬件子系统-DeviceManager | off(type: 'deviceStateChange', callback?: Call
back
<
{
action:
DeviceStateChangeAction
,
device:
DeviceInfo
}
>
): void | 删除 | 为了降低安全风险,删除设备管理JS API |
| 分布式硬件子系统-DeviceManager | getTrustedDeviceListSync(): Array
\
<
DeviceInfo> | 删除 | 为了降低安全风险,删除设备管理JS API |
| 分布式硬件子系统-DeviceManager | on(type: 'deviceStateChange', callback: Callback
\
<
{ action: DeviceStateChangeAction, device: DeviceInfo }>): void | 删除 | 为了降低安全风险,删除设备管理JS API |
| 分布式硬件子系统-DeviceManager | off(type: 'deviceStateChange', callback?: Call
back
\
<
{ action: DeviceStateChangeAction, device: DeviceInfo }>): void | 删除 | 为了降低安全风险,删除设备管理JS API |
| 分布式硬件子系统-DeviceManager | on(type: 'serviceDie', callback: () => void): void | 删除 | 为了降低安全风险,删除设备管理JS API |
| 分布式硬件子系统-DeviceManager | off(type: 'serviceDie', callback?: () => void): void | 删除 | 为了降低安全风险,删除设备管理JS API |
\ No newline at end of file
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md
浏览文件 @
e39dc96d
...
...
@@ -9,8 +9,8 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,事件通知
| notificationUserInput | NotificationUserInput | inputKey: string; | 新增 |
| notificationTemplate | NotificationTemplate | data: {[key: string]: Object}; | 新增 |
| notificationTemplate | NotificationTemplate | name: string; | 新增 |
| notificationRequest | DistributedOptions | supportOperateDevices?: Array
<string>
; | 新增 |
| notificationRequest | DistributedOptions | supportDisplayDevices?: Array
<string>
; | 新增 |
| notificationRequest | DistributedOptions | supportOperateDevices?: Array
\
<
string>; | 新增 |
| notificationRequest | DistributedOptions | supportDisplayDevices?: Array
\
<
string>; | 新增 |
| notificationRequest | DistributedOptions | isDistributed?: boolean; | 新增 |
| notificationRequest | NotificationRequest | readonly notificationFlags?: NotificationFlags; | 新增 |
| notificationRequest | NotificationRequest | distributedOption?: DistributedOptions; | 新增 |
...
...
@@ -18,10 +18,10 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,事件通知
| notificationRequest | NotificationRequest | readonly creatorUserId?: number; | 新增 |
| notificationRequest | NotificationRequest | groupName?: string; | 新增 |
| notificationActionButton | NotificationActionButton | userInput?: NotificationUserInput; | 新增 |
| ohos.notification | notification |
function isDistributedEnabled(callback: AsyncCallback
<boolean>
): void;
<br>
function isDistributedEnabled(): Promise
<boolean>
; | 新增 |
| ohos.notification | notification |
function requestEnableNotification(callback: AsyncCallback
<void>
): void;
<br>
function requestEnableNotification(): Promise
<void>
; | 新增 |
| ohos.notification | notification |
function isSupportTemplate(templateName: string, callback: AsyncCallback
<boolean>
): void;
<br>
function isSupportTemplate(templateName: string): Promise
<boolean>
; | 新增 |
| ohos.notification | notification |
function cancelGroup(groupName: string, callback: AsyncCallback
<void>
): void;
<br>
function cancelGroup(groupName: string): Promise
<void>
; | 新增 |
| ohos.notification | notification |
isDistributedEnabled(callback: AsyncCallback
\<
boolean>): void;
<br>
isDistributedEnabled(): Promise
\
<
boolean>; | 新增 |
| ohos.notification | notification |
requestEnableNotification(callback: AsyncCallback
\<
void>): void;
<br>
requestEnableNotification(): Promise
\
<
void>; | 新增 |
| ohos.notification | notification |
isSupportTemplate(templateName: string, callback: AsyncCallback
\<
boolean>): void;
<br>
isSupportTemplate(templateName: string): Promise
\
<
boolean>; | 新增 |
| ohos.notification | notification |
cancelGroup(groupName: string, callback: AsyncCallback
\<
void>): void;
<br>
cancelGroup(groupName: string): Promise
\
<
void>; | 新增 |
| ohos.events.emitter | EventPriority | IDLE | 新增 |
| ohos.events.emitter | EventPriority | LOW | 新增 |
| ohos.events.emitter | EventPriority | HIGH | 新增 |
...
...
@@ -29,9 +29,9 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,事件通知
| ohos.events.emitter | InnerEvent | priority?: EventPriority; | 新增 |
| ohos.events.emitter | InnerEvent | eventId: number; | 新增 |
| ohos.events.emitter | EventData | data?: {[key: string]: any}; | 新增 |
| ohos.events.emitter | emitter |
function
emit(event: InnerEvent, data?: EventData): void; | 新增 |
| ohos.events.emitter | emitter |
function
off(eventId: number): void; | 新增 |
| ohos.events.emitter | emitter |
function once(event: InnerEvent, callback: Callback
<EventData>
): void; | 新增 |
| ohos.events.emitter | emitter |
function on(event: InnerEvent, callback: Callback
<EventData>
): void; | 新增 |
| ohos.events.emitter | emitter | emit(event: InnerEvent, data?: EventData): void; | 新增 |
| ohos.events.emitter | emitter | off(eventId: number): void; | 新增 |
| ohos.events.emitter | emitter |
once(event: InnerEvent, callback: Callback
\
<
EventData>): void; | 新增 |
| ohos.events.emitter | emitter |
on(event: InnerEvent, callback: Callback
\
<
EventData>): void; | 新增 |
| ohos.commonEvent | Support | COMMON_EVENT_SPLIT_SCREEN = "common.event.SPLIT_SCREEN" | 新增 |
| ohos.commonEvent | Support | COMMON_EVENT_THERMAL_LEVEL_CHANGED = "usual.event.THERMAL_LEVEL_CHANGED" | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification_api-9-canary.md
浏览文件 @
e39dc96d
...
...
@@ -6,7 +6,7 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,事件通
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| commonEventSubscriber | CommonEventSubscriber | finishCommonEvent(callback: AsyncCallback
<void>
): void;
<br>
finishCommonEvent(): Promise
<void>
; | 新增 |
| commonEventSubscriber | CommonEventSubscriber | finishCommonEvent(callback: AsyncCallback
\<
void>): void;
<br>
finishCommonEvent(): Promise
\
<
void>; | 新增 |
| ohos.commonEvent | Support | COMMON_EVENT_VOLUME_EJECT = "usual.event.data.VOLUME_EJECT" | 新增 |
| ohos.commonEvent | Support | COMMON_EVENT_VOLUME_BAD_REMOVAL = "usual.event.data.VOLUME_BAD_REMOVAL" | 新增 |
| ohos.commonEvent | Support | COMMON_EVENT_VOLUME_MOUNTED = "usual.event.data.VOLUME_MOUNTED" | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md
浏览文件 @
e39dc96d
...
...
@@ -6,53 +6,53 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,文件管理
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.statfs | Statfs |
function getTotalBytes(path: string, callback: AsyncCallback
<number>
): void;
<br>
function getTotalBytes(path: string): Promise
<number>
; | 新增 |
| ohos.statfs | Statfs |
function getFreeBytes(path: string, callback: AsyncCallback
<number>
): void;
<br>
function getFreeBytes(path: string): Promise
<number>
; | 新增 |
| ohos.fileio | Watcher | stop(): Promise
<void>
;
<br>
stop(callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.statfs | Statfs |
getTotalBytes(path: string, callback: AsyncCallback
\<
number>): void;
<br>
getTotalBytes(path: string): Promise
\
<
number>; | 新增 |
| ohos.statfs | Statfs |
getFreeBytes(path: string, callback: AsyncCallback
\<
number>): void;
<br>
getFreeBytes(path: string): Promise
\
<
number>; | 新增 |
| ohos.fileio | Watcher | stop(): Promise
\<
void>;
<br>
stop(callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | ReadOut | buffer: ArrayBuffer; | 新增 |
| ohos.fileio | ReadOut | offset: number; | 新增 |
| ohos.fileio | ReadOut | bytesRead: number; | 新增 |
| ohos.fileio | Stream | read(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }): Promise
<ReadOut>
;
<br>
read(buffer: ArrayBuffer, callback: AsyncCallback
<ReadOut>
): void;
<br>
read(buffer: ArrayBuffer, options: { position?: number; offset?: number; length?: number; }, callback: AsyncCallback
<ReadOut>
): void; | 新增 |
| ohos.fileio | Stream | write(buffer: ArrayBuffer
\|
string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise
<number>
;
<br>
write(buffer: ArrayBuffer
\|
string, callback: AsyncCallback
<number>
): void;
<br>
write(buffer: ArrayBuffer
\|
string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.fileio | Stream | flush(): Promise
<void>
;
<br>
flush(callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | Stream | close(): Promise
<void>
;
<br>
close(callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | Dir | close(): Promise
<void>
;
<br>
close(callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | Dir | read(): Promise
<Dirent>
;
<br>
read(callback: AsyncCallback
<Dirent>
): void; | 新增 |
| ohos.fileio | fileIO |
function createWatcher(filename: string, events: number, callback: AsyncCallback
<number>
): Watcher; | 新增 |
| ohos.fileio | fileIO |
function write(fd: number, buffer: ArrayBuffer
\|
string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise
<number>
;
<br>
function write(fd: number, buffer: ArrayBuffer
\|
string, callback: AsyncCallback
<number>
): void;
<br>
function write(fd: number, buffer: ArrayBuffer
\|
string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.fileio | fileIO |
function unlink(path: string): Promise
<void>
;
<br>
function unlink(path: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO |
function truncate(path: string, len?: number): Promise
<void>
;
<br>
function truncate(path: string, callback: AsyncCallback
<void>
): void;
<br>
function truncate(path: string, len: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO |
function
symlinkSync(target: string, srcPath: string): void; | 新增 |
| ohos.fileio | fileIO |
function symlink(target: string, srcPath: string): Promise
<void>
;
<br>
function symlink(target: string, srcPath: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO |
function stat(path: string): Promise
<Stat>
;
<br>
function stat(path: string, callback: AsyncCallback
<Stat>
): void; | 新增 |
| ohos.fileio | fileIO |
function rmdir(path: string): Promise
<void>
;
<br>
function rmdir(path: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO |
function rename(oldPath: string, newPath: string): Promise
<void>
;
<br>
function rename(oldPath: string, newPath: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO |
function read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): Promise
<ReadOut><br>
function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback
<ReadOut>
): void;
<br>
function read(fd: number, buffer: ArrayBuffer, options: { offset?: number; length?: number; position?: number; }, callback: AsyncCallback
<ReadOut>
): void; | 新增 |
| ohos.fileio | fileIO |
function readTextSync(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): string;
| 新增 |
| ohos.fileio | fileIO |
function readText(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): Promise
<string>
;
<br>
function readText(filePath: string, options: { position?: number; length?: number; encoding?: string; }, callback: AsyncCallback
<string>
): void; | 新增 |
| ohos.fileio | fileIO |
function opendir(path: string): Promise
<Dir>
;
<br>
function opendir(path: string, callback: AsyncCallback
<Dir>
): void; | 新增 |
| ohos.fileio | fileIO |
function open(path: string, flags?: number, mode?: number): Promise
<number>
;
<br>
function open(path: string, callback: AsyncCallback
<number>
): void;
<br>
function open(path: string, flags: number, callback: AsyncCallback
<number>
): void;
<br>
function open(path: string, flags: number, mode: number, callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.fileio | fileIO |
function
mkdtempSync(prefix: string): string; | 新增 |
| ohos.fileio | fileIO |
function mkdtemp(prefix: string): Promise
<string>
;
<br>
function mkdtemp(prefix: string, callback: AsyncCallback
<string>
): void; | 新增 |
| ohos.fileio | fileIO |
function mkdir(path: string, mode?: number): Promise
<void>
;
<br>
function mkdir(path: string, callback: AsyncCallback
<void>
): void;
<br>
function mkdir(path: string, mode: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO |
function
lstatSync(path: string): Stat; | 新增 |
| ohos.fileio | fileIO |
function lstat(path: string): Promise
<Stat>
;
<br>
function lstat(path: string, callback: AsyncCallback
<Stat>
): void; | 新增 |
| ohos.fileio | fileIO |
function
lchownSync(path: string, uid: number, gid: number): void; | 新增 |
| ohos.fileio | fileIO |
function lchown(path: string, uid: number, gid: number): Promise
<void>
;
<br>
function lchown(path: string, uid: number, gid: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO |
function hash(path: string, algorithm: string): Promise
<string>
;
<br>
function hash(path: string, algorithm: string, callback: AsyncCallback
<string>
): void; | 新增 |
| ohos.fileio | fileIO | f
unction fdopenStream(fd: number, mode: string): Promise
<Stream>
;
<br>
function fdopenStream(fd: number, mode: string, callback: AsyncCallback
<Stream>
): void; | 新增 |
| ohos.fileio | fileIO | f
unction fchmod(fd: number, mode: number): Promise
<void>
;
<br>
function fchmod(fd: number, mode: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | f
unction fchown(fd: number, uid: number, gid: number): Promise
<void>
;
<br>
function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | f
unction f
datasyncSync(fd: number): void; | 新增 |
| ohos.fileio | fileIO | f
unction fdatasync(fd: number): Promise
<void>
;
<br>
function fdatasync(fd: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | f
unction fstat(fd: number): Promise
<Stat>
;
<br>
function fstat(fd: number, callback: AsyncCallback
<Stat>
): void; | 新增 |
| ohos.fileio | fileIO | f
unction fsync(fd: number): Promise
<void>
;
<br>
function fsync(fd: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO | f
unction ftruncate(fd: number, len?: number): Promise
<void>
;
<br>
function ftruncate(fd: number, callback: AsyncCallback
<void>
): void;
<br>
function ftruncate(fd: number, len: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO |
function chmod(path: string, mode: number): Promise
<void>
;
<br>
function chmod(path: string, mode: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO |
function chown(path: string, uid: number, gid: number): Promise
<void>
;
<br>
function chown(path: string, uid: number, gid: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO |
function createStream(path: string, mode: string): Promise
<Stream>
;
<br>
function createStream(path: string, mode: string, callback: AsyncCallback
<Stream>
): void; | 新增 |
| ohos.fileio | fileIO |
function copyFile(src: string
\|
number, dest: string
\|
number, mode?: number): Promise
<void>
;
<br>
function copyFile(src: string
\|
number, dest: string
\|
number, callback: AsyncCallback
<void>
): void;
<br>
function copyFile(src: string
\|
number, dest: string
\|
number, mode: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO |
function close(fd: number): Promise
<void>
;
<br>
function close(fd: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.fileio | fileIO |
function access(path: string, mode?: number): Promise
<void>
;
<br>
function access(path: string, callback: AsyncCallback
<void>
): void;
<br>
function access(path: string, mode: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.document | document |
function show(uri: string, type: string): Promise
<void>
;
<br>
function show(uri: string, type: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.document | document |
function choose(types?: string[]): Promise
<string>
;
<br>
function choose(callback: AsyncCallback
<string>
): void;
<br>
function choose(types: string[], callback: AsyncCallback
<string>
): void; | 新增 |
| ohos.fileio | Stream | read(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }): Promise
\<
ReadOut>;
<br>
read(buffer: ArrayBuffer, callback: AsyncCallback
\<
ReadOut>): void;
<br>
read(buffer: ArrayBuffer, options: { position?: number; offset?: number; length?: number; }, callback: AsyncCallback
\
<
ReadOut>): void; | 新增 |
| ohos.fileio | Stream | write(buffer: ArrayBuffer
\|
string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise
\<
number>;
<br>
write(buffer: ArrayBuffer
\|
string, callback: AsyncCallback
\<
number>): void;
<br>
write(buffer: ArrayBuffer
\|
string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback
\
<
number>): void; | 新增 |
| ohos.fileio | Stream | flush(): Promise
\<
void>;
<br>
flush(callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | Stream | close(): Promise
\<
void>;
<br>
close(callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | Dir | close(): Promise
\<
void>;
<br>
close(callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | Dir | read(): Promise
\<
Dirent>;
<br>
read(callback: AsyncCallback
\
<
Dirent>): void; | 新增 |
| ohos.fileio | fileIO |
createWatcher(filename: string, events: number, callback: AsyncCallback
\
<
number>): Watcher; | 新增 |
| ohos.fileio | fileIO |
write(fd: number, buffer: ArrayBuffer
\|
string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise
\<
number>;
<br>
write(fd: number, buffer: ArrayBuffer
\|
string, callback: AsyncCallback
\<
number>): void;
<br>
write(fd: number, buffer: ArrayBuffer
\|
string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback
\
<
number>): void; | 新增 |
| ohos.fileio | fileIO |
unlink(path: string): Promise
\<
void>;
<br>
unlink(path: string, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO |
truncate(path: string, len?: number): Promise
\<
void>;
<br>
truncate(path: string, callback: AsyncCallback
\<
void>): void;
<br>
truncate(path: string, len: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO | symlinkSync(target: string, srcPath: string): void; | 新增 |
| ohos.fileio | fileIO |
symlink(target: string, srcPath: string): Promise
\<
void>;
<br>
symlink(target: string, srcPath: string, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO |
stat(path: string): Promise
\<
Stat>;
<br>
stat(path: string, callback: AsyncCallback
\
<
Stat>): void; | 新增 |
| ohos.fileio | fileIO |
rmdir(path: string): Promise
\<
void>;
<br>
rmdir(path: string, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO |
rename(oldPath: string, newPath: string): Promise
\<
void>;
<br>
rename(oldPath: string, newPath: string, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO |
read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): Promise
\<
ReadOut>
<br>
read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback
\<
ReadOut>): void;
<br>
read(fd: number, buffer: ArrayBuffer, options: { offset?: number; length?: number; position?: number; }, callback: AsyncCallback
\
<
ReadOut>): void; | 新增 |
| ohos.fileio | fileIO |
readTextSync(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): string;
| 新增 |
| ohos.fileio | fileIO |
readText(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): Promise
\<
string>;
<br>
readText(filePath: string, options: { position?: number; length?: number; encoding?: string; }, callback: AsyncCallback
\
<
string>): void; | 新增 |
| ohos.fileio | fileIO |
opendir(path: string): Promise
\<
Dir>;
<br>
opendir(path: string, callback: AsyncCallback
\
<
Dir>): void; | 新增 |
| ohos.fileio | fileIO |
open(path: string, flags?: number, mode?: number): Promise
\<
number>;
<br>
open(path: string, callback: AsyncCallback
\<
number>): void;
<br>
open(path: string, flags: number, callback: AsyncCallback
\<
number>): void;
<br>
open(path: string, flags: number, mode: number, callback: AsyncCallback
\
<
number>): void; | 新增 |
| ohos.fileio | fileIO | mkdtempSync(prefix: string): string; | 新增 |
| ohos.fileio | fileIO |
mkdtemp(prefix: string): Promise
\<
string>;
<br>
mkdtemp(prefix: string, callback: AsyncCallback
\
<
string>): void; | 新增 |
| ohos.fileio | fileIO |
mkdir(path: string, mode?: number): Promise
\<
void>;
<br>
mkdir(path: string, callback: AsyncCallback
\<
void>): void;
<br>
mkdir(path: string, mode: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO | lstatSync(path: string): Stat; | 新增 |
| ohos.fileio | fileIO |
lstat(path: string): Promise
\<
Stat>;
<br>
lstat(path: string, callback: AsyncCallback
\
<
Stat>): void; | 新增 |
| ohos.fileio | fileIO | lchownSync(path: string, uid: number, gid: number): void; | 新增 |
| ohos.fileio | fileIO |
lchown(path: string, uid: number, gid: number): Promise
\<
void>;
<br>
lchown(path: string, uid: number, gid: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO |
hash(path: string, algorithm: string): Promise
\<
string>;
<br>
hash(path: string, algorithm: string, callback: AsyncCallback
\
<
string>): void; | 新增 |
| ohos.fileio | fileIO | f
dopenStream(fd: number, mode: string): Promise
\<
Stream>;
<br>
fdopenStream(fd: number, mode: string, callback: AsyncCallback
\
<
Stream>): void; | 新增 |
| ohos.fileio | fileIO | f
chmod(fd: number, mode: number): Promise
\<
void>;
<br>
fchmod(fd: number, mode: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO | f
chown(fd: number, uid: number, gid: number): Promise
\<
void>;
<br>
fchown(fd: number, uid: number, gid: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO | fdatasyncSync(fd: number): void; | 新增 |
| ohos.fileio | fileIO | f
datasync(fd: number): Promise
\<
void>;
<br>
fdatasync(fd: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO | f
stat(fd: number): Promise
\<
Stat>;
<br>
fstat(fd: number, callback: AsyncCallback
\
<
Stat>): void; | 新增 |
| ohos.fileio | fileIO | f
sync(fd: number): Promise
\<
void>;
<br>
fsync(fd: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO | f
truncate(fd: number, len?: number): Promise
\<
void>;
<br>
ftruncate(fd: number, callback: AsyncCallback
\<
void>): void;
<br>
ftruncate(fd: number, len: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO |
chmod(path: string, mode: number): Promise
\<
void>;
<br>
chmod(path: string, mode: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO |
chown(path: string, uid: number, gid: number): Promise
\<
void>;
<br>
chown(path: string, uid: number, gid: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO |
createStream(path: string, mode: string): Promise
\<
Stream>;
<br>
createStream(path: string, mode: string, callback: AsyncCallback
\
<
Stream>): void; | 新增 |
| ohos.fileio | fileIO |
copyFile(src: string
\|
number, dest: string
\|
number, mode?: number): Promise
\<
void>;
<br>
copyFile(src: string
\|
number, dest: string
\|
number, callback: AsyncCallback
\<
void>): void;
<br>
copyFile(src: string
\|
number, dest: string
\|
number, mode: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO |
close(fd: number): Promise
\<
void>;
<br>
close(fd: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.fileio | fileIO |
access(path: string, mode?: number): Promise
\<
void>;
<br>
access(path: string, callback: AsyncCallback
\<
void>): void;
<br>
access(path: string, mode: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.document | document |
show(uri: string, type: string): Promise
\<
void>;
<br>
show(uri: string, type: string, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.document | document |
choose(types?: string[]): Promise
\<
string>;
<br>
choose(callback: AsyncCallback
\<
string>): void;
<br>
choose(types: string[], callback: AsyncCallback
\
<
string>): void; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-file-management_api-9-canary.md
浏览文件 @
e39dc96d
...
...
@@ -6,13 +6,13 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,文件管
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.storageStatistics | storageStatistics |
function getBundleStats(packageName: string, callback: AsyncCallback
<BundleStats>
): void;
<br>
function getBundleStats(packageName: string): Promise
<BundleStats>
; | 新增 |
| ohos.storageStatistics | storageStatistics |
getBundleStats(packageName: string, callback: AsyncCallback
\<
BundleStats>): void;
<br>
getBundleStats(packageName: string): Promise
\
<
BundleStats>; | 新增 |
| ohos.storageStatistics | BundleStats | dataSize: number; | 新增 |
| ohos.storageStatistics | BundleStats | cacheSize: number; | 新增 |
| ohos.storageStatistics | BundleStats | appSize: number; | 新增 |
| ohos.volumeManager | volumeManager |
function unmount(volumeId: string, callback: AsyncCallback
<boolean>
): void;
<br>
function unmount(volumeId: string): Promise
<boolean>
; | 新增 |
| ohos.volumeManager | volumeManager |
function mount(volumeId: string, callback: AsyncCallback
<boolean>
): void;
<br>
function mount(volumeId: string): Promise
<boolean>
; | 新增 |
| ohos.volumeManager | volumeManager |
function getAllVolumes(callback: AsyncCallback
<Array
<
Volume
>
>): void;
<br>
function getAllVolumes(): Promise
<Array
<
Volume
>
>; | 新增 |
| ohos.volumeManager | volumeManager |
unmount(volumeId: string, callback: AsyncCallback
\<
boolean>): void;
<br>
unmount(volumeId: string): Promise
\
<
boolean>; | 新增 |
| ohos.volumeManager | volumeManager |
mount(volumeId: string, callback: AsyncCallback
\<
boolean>): void;
<br>
mount(volumeId: string): Promise
\
<
boolean>; | 新增 |
| ohos.volumeManager | volumeManager |
getAllVolumes(callback: AsyncCallback
\<
Array
\<
Volume>>): void;
<br>
getAllVolumes(): Promise
\<
Array
\
<
Volume>>; | 新增 |
| ohos.volumeManager | Volume | path: string; | 新增 |
| ohos.volumeManager | Volume | state: number; | 新增 |
| ohos.volumeManager | Volume | removable: boolean; | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md
浏览文件 @
e39dc96d
...
...
@@ -29,7 +29,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,位置服务
| ohos.geolocation | LocationRequestPriority | ACCURACY | 新增 |
| ohos.geolocation | LocationRequestPriority | UNSET = 0x200 | 新增 |
| ohos.geolocation | Location | additionSize?: number; | 新增 |
| ohos.geolocation | Location | additions?: Array
<string>
; | 新增 |
| ohos.geolocation | Location | additions?: Array
\
<
string>; | 新增 |
| ohos.geolocation | Location | timeSinceBoot: number; | 新增 |
| ohos.geolocation | Location | direction: number; | 新增 |
| ohos.geolocation | Location | timeStamp: number; | 新增 |
...
...
@@ -48,7 +48,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,位置服务
| ohos.geolocation | LocationRequest | scenario?: LocationRequestScenario; | 新增 |
| ohos.geolocation | LocationRequest | priority?: LocationRequestPriority; | 新增 |
| ohos.geolocation | GeoAddress | descriptionsSize?: number; | 新增 |
| ohos.geolocation | GeoAddress | descriptions?: Array
<string>
; | 新增 |
| ohos.geolocation | GeoAddress | descriptions?: Array
\
<
string>; | 新增 |
| ohos.geolocation | GeoAddress | addressUrl?: string; | 新增 |
| ohos.geolocation | GeoAddress | phoneNumber?: string; | 新增 |
| ohos.geolocation | GeoAddress | postalCode?: string; | 新增 |
...
...
@@ -85,31 +85,31 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,位置服务
| ohos.geolocation | GeofenceRequest | priority: LocationRequestPriority; | 新增 |
| ohos.geolocation | CachedGnssLocationsRequest | wakeUpCacheQueueFull: boolean; | 新增 |
| ohos.geolocation | CachedGnssLocationsRequest | reportingPeriodSec: number; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | carrierFrequencies: Array
<number>
; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | azimuths: Array
<number>
; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | altitudes: Array
<number>
; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | carrierToNoiseDensitys: Array
<number>
; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | satelliteIds: Array
<number>
; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | carrierFrequencies: Array
\
<
number>; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | azimuths: Array
\
<
number>; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | altitudes: Array
\
<
number>; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | carrierToNoiseDensitys: Array
\
<
number>; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | satelliteIds: Array
\
<
number>; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | satellitesNumber: number; | 新增 |
| ohos.geolocation | geolocation |
function sendCommand(command: LocationCommand, callback: AsyncCallback
<boolean>
) : void;
<br>
function sendCommand(command: LocationCommand) : Promise
<boolean>
; | 新增 |
| ohos.geolocation | geolocation | f
unction flushCachedGnssLocations(callback: AsyncCallback
<boolean>
) : void;
<br>
function flushCachedGnssLocations() : Promise
<boolean>
; | 新增 |
| ohos.geolocation | geolocation |
function getCachedGnssLocationsSize(callback: AsyncCallback
<number>
) : void;
<br>
function getCachedGnssLocationsSize() : Promise
<number>
; | 新增 |
| ohos.geolocation | geolocation |
function isGeoServiceAvailable(callback: AsyncCallback
<boolean>
) : void;
<br>
function isGeoServiceAvailable() : Promise
<boolean>
; | 新增 |
| ohos.geolocation | geolocation |
function getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback
<Array
<
GeoAddress
>
>) : void;
<br>
function getAddressesFromLocationName(request: GeoCodeRequest) : Promise
<Array
<
GeoAddress
>
>; | 新增 |
| ohos.geolocation | geolocation |
function getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback
<Array
<
GeoAddress
>
>) : void;
<br>
function getAddressesFromLocation(request: ReverseGeoCodeRequest) : Promise
<Array
<
GeoAddress
>
>; | 新增 |
| ohos.geolocation | geolocation |
function requestEnableLocation(callback: AsyncCallback
<boolean>
) : void;
<br>
function requestEnableLocation() : Promise
<boolean>
; | 新增 |
| ohos.geolocation | geolocation |
function isLocationEnabled(callback: AsyncCallback
<boolean>
) : void;
<br>
function isLocationEnabled() : Promise
<boolean>
; | 新增 |
| ohos.geolocation | geolocation |
function getLastLocation(callback: AsyncCallback
<Location>
) : void;
<br>
function getLastLocation() : Promise
<Location>
; | 新增 |
| ohos.geolocation | geolocation |
function getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback
<Location>
) : void;
<br>
function getCurrentLocation(callback: AsyncCallback
<Location>
) : void;
<br>
function getCurrentLocation(request?: CurrentLocationRequest) : Promise
<Location>
; | 新增 |
| ohos.geolocation | geolocation |
function
off(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent) : void; | 新增 |
| ohos.geolocation | geolocation |
function
on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent) : void; | 新增 |
| ohos.geolocation | geolocation |
function off(type: 'nmeaMessageChange', callback?: Callback
<string>
) : void; | 新增 |
| ohos.geolocation | geolocation |
function on(type: 'nmeaMessageChange', callback: Callback
<string>
) : void; | 新增 |
| ohos.geolocation | geolocation |
function off(type: 'gnssStatusChange', callback?: Callback
<SatelliteStatusInfo>
) : void; | 新增 |
| ohos.geolocation | geolocation |
function on(type: 'gnssStatusChange', callback: Callback
<SatelliteStatusInfo>
) : void; | 新增 |
| ohos.geolocation | geolocation |
function off(type: 'cachedGnssLocationsReporting', callback?: Callback
<Array
<
Location
>
>) : void; | 新增 |
| ohos.geolocation | geolocation |
function on(type: 'cachedGnssLocationsReporting', request: CachedGnssLocationsRequest, callback: Callback
<Array
<
Location
>
>) : void; | 新增 |
| ohos.geolocation | geolocation |
function off(type: 'locationServiceState', callback?: Callback
<boolean>
) : void; | 新增 |
| ohos.geolocation | geolocation |
function on(type: 'locationServiceState', callback: Callback
<boolean>
) : void; | 新增 |
| ohos.geolocation | geolocation |
function off(type: 'locationChange', callback?: Callback
<Location>
) : void; | 新增 |
| ohos.geolocation | geolocation |
function on(type: 'locationChange', request: LocationRequest, callback: Callback
<Location>
) : void; | 新增 |
| ohos.geolocation | geolocation |
sendCommand(command: LocationCommand, callback: AsyncCallback
\<
boolean>) : void;
<br>
sendCommand(command: LocationCommand) : Promise
\
<
boolean>; | 新增 |
| ohos.geolocation | geolocation | f
lushCachedGnssLocations(callback: AsyncCallback
\<
boolean>) : void;
<br>
flushCachedGnssLocations() : Promise
\
<
boolean>; | 新增 |
| ohos.geolocation | geolocation |
getCachedGnssLocationsSize(callback: AsyncCallback
\<
number>) : void;
<br>
getCachedGnssLocationsSize() : Promise
\
<
number>; | 新增 |
| ohos.geolocation | geolocation |
isGeoServiceAvailable(callback: AsyncCallback
\<
boolean>) : void;
<br>
isGeoServiceAvailable() : Promise
\
<
boolean>; | 新增 |
| ohos.geolocation | geolocation |
getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback
\<
Array
\<
GeoAddress>>) : void;
<br>
getAddressesFromLocationName(request: GeoCodeRequest) : Promise
\<
Array
\
<
GeoAddress>>; | 新增 |
| ohos.geolocation | geolocation |
getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback
\<
Array
\<
GeoAddress>>) : void;
<br>
getAddressesFromLocation(request: ReverseGeoCodeRequest) : Promise
\<
Array
\
<
GeoAddress>>; | 新增 |
| ohos.geolocation | geolocation |
requestEnableLocation(callback: AsyncCallback
\<
boolean>) : void;
<br>
requestEnableLocation() : Promise
\
<
boolean>; | 新增 |
| ohos.geolocation | geolocation |
isLocationEnabled(callback: AsyncCallback
\<
boolean>) : void;
<br>
isLocationEnabled() : Promise
\
<
boolean>; | 新增 |
| ohos.geolocation | geolocation |
getLastLocation(callback: AsyncCallback
\<
Location>) : void;
<br>
getLastLocation() : Promise
\
<
Location>; | 新增 |
| ohos.geolocation | geolocation |
getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback
\<
Location>) : void;
<br>
getCurrentLocation(callback: AsyncCallback
\<
Location>) : void;
<br>
getCurrentLocation(request?: CurrentLocationRequest) : Promise
\
<
Location>; | 新增 |
| ohos.geolocation | geolocation | off(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent) : void; | 新增 |
| ohos.geolocation | geolocation | on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent) : void; | 新增 |
| ohos.geolocation | geolocation |
off(type: 'nmeaMessageChange', callback?: Callback
\
<
string>) : void; | 新增 |
| ohos.geolocation | geolocation |
on(type: 'nmeaMessageChange', callback: Callback
\
<
string>) : void; | 新增 |
| ohos.geolocation | geolocation |
off(type: 'gnssStatusChange', callback?: Callback
\
<
SatelliteStatusInfo>) : void; | 新增 |
| ohos.geolocation | geolocation |
on(type: 'gnssStatusChange', callback: Callback
\
<
SatelliteStatusInfo>) : void; | 新增 |
| ohos.geolocation | geolocation |
off(type: 'cachedGnssLocationsReporting', callback?: Callback
\<
Array
\
<
Location>>) : void; | 新增 |
| ohos.geolocation | geolocation |
on(type: 'cachedGnssLocationsReporting', request: CachedGnssLocationsRequest, callback: Callback
\<
Array
\
<
Location>>) : void; | 新增 |
| ohos.geolocation | geolocation |
off(type: 'locationServiceState', callback?: Callback
\
<
boolean>) : void; | 新增 |
| ohos.geolocation | geolocation |
on(type: 'locationServiceState', callback: Callback
\
<
boolean>) : void; | 新增 |
| ohos.geolocation | geolocation |
off(type: 'locationChange', callback?: Callback
\
<
Location>) : void; | 新增 |
| ohos.geolocation | geolocation |
on(type: 'locationChange', request: LocationRequest, callback: Callback
\
<
Location>) : void; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-global.md
浏览文件 @
e39dc96d
...
...
@@ -10,12 +10,12 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,全球化子
| rawFileDescriptor | RawFileDescriptor | offset: number; | 新增 |
| rawFileDescriptor | RawFileDescriptor | fd: number; | 新增 |
| ohos.resourceManager | ResourceManager | release(); | 新增 |
| ohos.resourceManager | ResourceManager | closeRawFileDescriptor(path: string, callback: AsyncCallback
<void>
): void;
<br>
closeRawFileDescriptor(path: string): Promise
<void>
; | 新增 |
| ohos.resourceManager | ResourceManager | getRawFileDescriptor(path: string, callback: AsyncCallback
<RawFileDescriptor>
): void;
<br>
getRawFileDescriptor(path: string): Promise
<RawFileDescriptor>
; | 新增 |
| ohos.resourceManager | ResourceManager | getRawFile(path: string, callback: AsyncCallback
<Uint8Array>
): void;
<br>
getRawFile(path: string): Promise
<Uint8Array>
; | 新增 |
| ohos.resourceManager | resourceManager |
function getResourceManager(callback: AsyncCallback
<ResourceManager>
): void;
<br>
export function getResourceManager(bundleName: string, callback: AsyncCallback
<ResourceManager>
): void;
<br>
export function getResourceManager(): Promise
<ResourceManager>
;
<br>
export function getResourceManager(bundleName: string): Promise
<ResourceManager>
; | 新增 |
| ohos.resourceManager | ResourceManager | closeRawFileDescriptor(path: string, callback: AsyncCallback
\<
void>): void;
<br>
closeRawFileDescriptor(path: string): Promise
\
<
void>; | 新增 |
| ohos.resourceManager | ResourceManager | getRawFileDescriptor(path: string, callback: AsyncCallback
\<
RawFileDescriptor>): void;
<br>
getRawFileDescriptor(path: string): Promise
\
<
RawFileDescriptor>; | 新增 |
| ohos.resourceManager | ResourceManager | getRawFile(path: string, callback: AsyncCallback
\<
Uint8Array>): void;
<br>
getRawFile(path: string): Promise
\
<
Uint8Array>; | 新增 |
| ohos.resourceManager | resourceManager |
getResourceManager(callback: AsyncCallback
\<
ResourceManager>): void;
<br>
getResourceManager(bundleName: string, callback: AsyncCallback
\<
ResourceManager>): void;
<br>
getResourceManager(): Promise
\<
ResourceManager>;
<br>
getResourceManager(bundleName: string): Promise
\
<
ResourceManager>; | 新增 |
| ohos.intl | RelativeTimeFormat | resolvedOptions(): RelativeTimeFormatResolvedOptions; | 新增 |
| ohos.intl | RelativeTimeFormat | formatToParts(value: number, unit: string): Array
<object>
; | 新增 |
| ohos.intl | RelativeTimeFormat | formatToParts(value: number, unit: string): Array
\
<
object>; | 新增 |
| ohos.intl | RelativeTimeFormat | format(value: number, unit: string): string; | 新增 |
| ohos.intl | RelativeTimeFormat | constructor(); | 新增 |
| ohos.intl | RelativeTimeFormatResolvedOptions | numberingSystem: string; | 新增 |
...
...
@@ -55,13 +55,13 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,全球化子
| ohos.i18n | TimeZone | getRawOffset(): number; | 新增 |
| ohos.i18n | TimeZone | getDisplayName(locale?: string, isDST?: boolean): string; | 新增 |
| ohos.i18n | TimeZone | getID(): string; | 新增 |
| ohos.i18n | i18n |
function
getTimeZone(zoneID?: string): TimeZone; | 新增 |
| ohos.i18n | i18n |
function
getFirstPreferredLanguage(): string; | 新增 |
| ohos.i18n | i18n |
function getPreferredLanguageList(): Array
<string>
; | 新增 |
| ohos.i18n | i18n |
function
removePreferredLanguage(index: number): boolean; | 新增 |
| ohos.i18n | i18n |
function
addPreferredLanguage(language: string, index?: number): boolean; | 新增 |
| ohos.i18n | i18n |
function
set24HourClock(option: boolean): boolean; | 新增 |
| ohos.i18n | i18n |
function
is24HourClock(): boolean; | 新增 |
| ohos.i18n | i18n | getTimeZone(zoneID?: string): TimeZone; | 新增 |
| ohos.i18n | i18n | getFirstPreferredLanguage(): string; | 新增 |
| ohos.i18n | i18n |
getPreferredLanguageList(): Array
\
<
string>; | 新增 |
| ohos.i18n | i18n | removePreferredLanguage(index: number): boolean; | 新增 |
| ohos.i18n | i18n | addPreferredLanguage(language: string, index?: number): boolean; | 新增 |
| ohos.i18n | i18n | set24HourClock(option: boolean): boolean; | 新增 |
| ohos.i18n | i18n | is24HourClock(): boolean; | 新增 |
| ohos.i18n | Character | getType(char: string): string; | 新增 |
| ohos.i18n | Character | isUpperCase(char: string): boolean; | 新增 |
| ohos.i18n | Character | isLowerCase(char: string): boolean; | 新增 |
...
...
@@ -73,8 +73,8 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,全球化子
| ohos.i18n | Character | isDigit(char: string): boolean; | 新增 |
| ohos.i18n | IndexUtil | getIndex(text: string): string; | 新增 |
| ohos.i18n | IndexUtil | addLocale(locale: string): void; | 新增 |
| ohos.i18n | IndexUtil | getIndexList(): Array
<string>
; | 新增 |
| ohos.i18n | i18n |
function
getInstance(locale?:string): IndexUtil; | 新增 |
| ohos.i18n | IndexUtil | getIndexList(): Array
\
<
string>; | 新增 |
| ohos.i18n | i18n | getInstance(locale?:string): IndexUtil; | 新增 |
| ohos.i18n | BreakIterator | isBoundary(offset: number): boolean; | 新增 |
| ohos.i18n | BreakIterator | getLineBreakText(): string; | 新增 |
| ohos.i18n | BreakIterator | following(offset: number): number; | 新增 |
...
...
@@ -84,8 +84,8 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,全球化子
| ohos.i18n | BreakIterator | last(): number; | 新增 |
| ohos.i18n | BreakIterator | first(): number; | 新增 |
| ohos.i18n | BreakIterator | current(): number; | 新增 |
| ohos.i18n | i18n |
function
getLineInstance(locale: string): BreakIterator; | 新增 |
| ohos.i18n | i18n |
function
isRTL(locale: string): boolean; | 新增 |
| ohos.i18n | i18n | getLineInstance(locale: string): BreakIterator; | 新增 |
| ohos.i18n | i18n | isRTL(locale: string): boolean; | 新增 |
| ohos.i18n | Calendar | isWeekend(date?: Date): boolean; | 新增 |
| ohos.i18n | Calendar | getDisplayName(locale: string): string; | 新增 |
| ohos.i18n | Calendar | get(field: string): number; | 新增 |
...
...
@@ -97,7 +97,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,全球化子
| ohos.i18n | Calendar | setTimeZone(timezone: string): void; | 新增 |
| ohos.i18n | Calendar | set(year: number, month: number, date:number, hour?: number, minute?: number, second?: number): void; | 新增 |
| ohos.i18n | Calendar | setTime(date: Date): void;
<br>
setTime(time: number): void; | 新增 |
| ohos.i18n | i18n |
function
getCalendar(locale: string, type?: string): Calendar; | 新增 |
| ohos.i18n | i18n | getCalendar(locale: string, type?: string): Calendar; | 新增 |
| ohos.i18n | PhoneNumberFormat | format(number: string): string; | 新增 |
| ohos.i18n | PhoneNumberFormat | isValidNumber(number: string): boolean; | 新增 |
| ohos.i18n | PhoneNumberFormat | constructor(country: string, options?: PhoneNumberFormatOptions); | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-misc.md
浏览文件 @
e39dc96d
...
...
@@ -10,34 +10,34 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,杂散软件
| ohos.wallpaper | RgbaColor | blue: number; | 新增 |
| ohos.wallpaper | RgbaColor | green: number; | 新增 |
| ohos.wallpaper | RgbaColor | red: number; | 新增 |
| ohos.wallpaper | wallpaper | function off(type: 'colorChange', callback?: (colors: Array
<RgbaColor>
, wallpaperType: WallpaperType) => void): void; | 新增 |
| ohos.wallpaper | wallpaper | function on(type: 'colorChange', callback: (colors: Array
<RgbaColor>
, wallpaperType: WallpaperType) => void): void; | 新增 |
| ohos.wallpaper | wallpaper | function setWallpaper(source: string
\|
image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback
<void>
): void;
<br>
function setWallpaper(source: string
\|
image.PixelMap, wallpaperType: WallpaperType): Promise
<void>
; | 新增 |
| ohos.wallpaper | wallpaper | function reset(wallpaperType: WallpaperType, callback: AsyncCallback
<void>
): void;
<br>
function reset(wallpaperType: WallpaperType): Promise
<void>
; | 新增 |
| ohos.wallpaper | wallpaper | function isOperationAllowed(callback: AsyncCallback
<boolean>
): void;
<br>
function isOperationAllowed(): Promise
<boolean>
; | 新增 |
| ohos.wallpaper | wallpaper | function isChangePermitted(callback: AsyncCallback
<boolean>
): void;
<br>
function isChangePermitted(): Promise
<boolean>
; | 新增 |
| ohos.wallpaper | wallpaper | function getMinWidth(callback: AsyncCallback
<number>
): void;
<br>
function getMinWidth(): Promise
<number>
; | 新增 |
| ohos.wallpaper | wallpaper | function getMinHeight(callback: AsyncCallback
<number>
): void;
<br>
function getMinHeight(): Promise
<number>
; | 新增 |
| ohos.wallpaper | wallpaper | function getFile(wallpaperType: WallpaperType, callback: AsyncCallback
<number>
): void;
<br>
function getFile(wallpaperType: WallpaperType): Promise
<number>
; | 新增 |
| ohos.wallpaper | wallpaper | function getId(wallpaperType: WallpaperType, callback: AsyncCallback
<number>
): void;
<br>
function getId(wallpaperType: WallpaperType): Promise
<number>
; | 新增 |
| ohos.wallpaper | wallpaper | function getColors(wallpaperType: WallpaperType, callback: AsyncCallback
<Array
<
RgbaColor
>
>): void;
<br>
function getColors(wallpaperType: WallpaperType): Promise
<Array
<
RgbaColor
>
>; | 新增 |
| ohos.wallpaper | wallpaper | function off(type: 'colorChange', callback?: (colors: Array
\
<
RgbaColor>, wallpaperType: WallpaperType) => void): void; | 新增 |
| ohos.wallpaper | wallpaper | function on(type: 'colorChange', callback: (colors: Array
\
<
RgbaColor>, wallpaperType: WallpaperType) => void): void; | 新增 |
| ohos.wallpaper | wallpaper | function setWallpaper(source: string
\|
image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback
\<
void>): void;
<br>
function setWallpaper(source: string
\|
image.PixelMap, wallpaperType: WallpaperType): Promise
\
<
void>; | 新增 |
| ohos.wallpaper | wallpaper | function reset(wallpaperType: WallpaperType, callback: AsyncCallback
\<
void>): void;
<br>
function reset(wallpaperType: WallpaperType): Promise
\
<
void>; | 新增 |
| ohos.wallpaper | wallpaper | function isOperationAllowed(callback: AsyncCallback
\<
boolean>): void;
<br>
function isOperationAllowed(): Promise
\
<
boolean>; | 新增 |
| ohos.wallpaper | wallpaper | function isChangePermitted(callback: AsyncCallback
\<
boolean>): void;
<br>
function isChangePermitted(): Promise
\
<
boolean>; | 新增 |
| ohos.wallpaper | wallpaper | function getMinWidth(callback: AsyncCallback
\<
number>): void;
<br>
function getMinWidth(): Promise
\
<
number>; | 新增 |
| ohos.wallpaper | wallpaper | function getMinHeight(callback: AsyncCallback
\<
number>): void;
<br>
function getMinHeight(): Promise
\
<
number>; | 新增 |
| ohos.wallpaper | wallpaper | function getFile(wallpaperType: WallpaperType, callback: AsyncCallback
\<
number>): void;
<br>
function getFile(wallpaperType: WallpaperType): Promise
\
<
number>; | 新增 |
| ohos.wallpaper | wallpaper | function getId(wallpaperType: WallpaperType, callback: AsyncCallback
\<
number>): void;
<br>
function getId(wallpaperType: WallpaperType): Promise
\
<
number>; | 新增 |
| ohos.wallpaper | wallpaper | function getColors(wallpaperType: WallpaperType, callback: AsyncCallback
\<
Array
\<
RgbaColor>>): void;
<br>
function getColors(wallpaperType: WallpaperType): Promise
\<
Array
\
<
RgbaColor>>; | 新增 |
| ohos.wallpaper | WallpaperType | WALLPAPER_LOCKSCREEN | 新增 |
| ohos.wallpaper | WallpaperType | WALLPAPER_SYSTEM | 新增 |
| ohos.systemTime | systemTime | function getTimezone(callback: AsyncCallback
<string>
): void;
<br>
function getTimezone(): Promise
<string>
; | 新增 |
| ohos.systemTime | systemTime | function getDate(callback: AsyncCallback
<Date>
): void;
<br>
function getDate(): Promise
<Date>
; | 新增 |
| ohos.systemTime | systemTime | function getRealTime(isNano?: boolean, callback: AsyncCallback
<number>
): void;
<br>
function getRealTime(isNano?: boolean): Promise
<number>
; | 新增 |
| ohos.systemTime | systemTime | function getRealActiveTime(isNano?: boolean, callback: AsyncCallback
<number>
): void;
<br>
function getRealActiveTime(isNano?: boolean): Promise
<number>
; | 新增 |
| ohos.systemTime | systemTime | function getCurrentTime(isNano?: boolean, callback: AsyncCallback
<number>
): void;
<br>
function getCurrentTime(isNano?: boolean): Promise
<number>
; | 新增 |
| ohos.screenLock | screenLock | function unlockScreen(callback: AsyncCallback
<void>
): void;
<br>
function unlockScreen():Promise
<void>
; | 新增 |
| ohos.screenLock | screenLock | function isSecureMode(callback: AsyncCallback
<boolean>
): void;
<br>
function isSecureMode(): Promise
<boolean>
; | 新增 |
| ohos.screenLock | screenLock | function isScreenLocked(callback: AsyncCallback
<boolean>
): void;
<br>
function isScreenLocked(): Promise
<boolean>
; | 新增 |
| ohos.request | UploadTask | remove(callback: AsyncCallback
<boolean>
): void;
<br>
remove(): Promise
<boolean>
; | 新增 |
| ohos.systemTime | systemTime | function getTimezone(callback: AsyncCallback
\<
string>): void;
<br>
function getTimezone(): Promise
\
<
string>; | 新增 |
| ohos.systemTime | systemTime | function getDate(callback: AsyncCallback
\<
Date>): void;
<br>
function getDate(): Promise
\
<
Date>; | 新增 |
| ohos.systemTime | systemTime | function getRealTime(isNano?: boolean, callback: AsyncCallback
\<
number>): void;
<br>
function getRealTime(isNano?: boolean): Promise
\
<
number>; | 新增 |
| ohos.systemTime | systemTime | function getRealActiveTime(isNano?: boolean, callback: AsyncCallback
\<
number>): void;
<br>
function getRealActiveTime(isNano?: boolean): Promise
\
<
number>; | 新增 |
| ohos.systemTime | systemTime | function getCurrentTime(isNano?: boolean, callback: AsyncCallback
\<
number>): void;
<br>
function getCurrentTime(isNano?: boolean): Promise
\
<
number>; | 新增 |
| ohos.screenLock | screenLock | function unlockScreen(callback: AsyncCallback
\<
void>): void;
<br>
function unlockScreen():Promise
\
<
void>; | 新增 |
| ohos.screenLock | screenLock | function isSecureMode(callback: AsyncCallback
\<
boolean>): void;
<br>
function isSecureMode(): Promise
\
<
boolean>; | 新增 |
| ohos.screenLock | screenLock | function isScreenLocked(callback: AsyncCallback
\<
boolean>): void;
<br>
function isScreenLocked(): Promise
\
<
boolean>; | 新增 |
| ohos.request | UploadTask | remove(callback: AsyncCallback
\<
boolean>): void;
<br>
remove(): Promise
\
<
boolean>; | 新增 |
| ohos.request | UploadTask | off(type: 'headerReceive', callback?: (header: object) => void): void; | 新增 |
| ohos.request | UploadTask | on(type: 'headerReceive', callback: (header: object) => void): void; | 新增 |
| ohos.request | UploadTask | off(type: 'progress', callback?: (uploadedSize: number, totalSize: number) => void): void; | 新增 |
| ohos.request | UploadTask | on(type: 'progress', callback: (uploadedSize: number, totalSize: number) => void): void; | 新增 |
| ohos.request | UploadConfig | data: Array
<RequestData>
; | 新增 |
| ohos.request | UploadConfig | files: Array
<File>
; | 新增 |
| ohos.request | UploadConfig | data: Array
\
<
RequestData>; | 新增 |
| ohos.request | UploadConfig | files: Array
\
<
File>; | 新增 |
| ohos.request | UploadConfig | method: string; | 新增 |
| ohos.request | UploadConfig | header: Object; | 新增 |
| ohos.request | UploadConfig | url: string; | 新增 |
...
...
@@ -47,11 +47,11 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,杂散软件
| ohos.request | File | uri: string; | 新增 |
| ohos.request | File | name: string; | 新增 |
| ohos.request | File | filename: string; | 新增 |
| ohos.request | DownloadTask | queryMimeType(callback: AsyncCallback
<string>
): void;
<br>
queryMimeType(): Promise
<string>
; | 新增 |
| ohos.request | DownloadTask | query(callback: AsyncCallback
<DownloadInfo>
): void;
<br>
query(): Promise
<DownloadInfo>
; | 新增 |
| ohos.request | DownloadTask | resume(callback: AsyncCallback
<void>
): void;
<br>
resume(): Promise
<void>
; | 新增 |
| ohos.request | DownloadTask | pause(callback: AsyncCallback
<void>
): void;
<br>
pause(): Promise
<void>
; | 新增 |
| ohos.request | DownloadTask | remove(callback: AsyncCallback
<boolean>
): void;
<br>
remove(): Promise
<boolean>
; | 新增 |
| ohos.request | DownloadTask | queryMimeType(callback: AsyncCallback
\<
string>): void;
<br>
queryMimeType(): Promise
\
<
string>; | 新增 |
| ohos.request | DownloadTask | query(callback: AsyncCallback
\<
DownloadInfo>): void;
<br>
query(): Promise
\
<
DownloadInfo>; | 新增 |
| ohos.request | DownloadTask | resume(callback: AsyncCallback
\<
void>): void;
<br>
resume(): Promise
\
<
void>; | 新增 |
| ohos.request | DownloadTask | pause(callback: AsyncCallback
\<
void>): void;
<br>
pause(): Promise
\
<
void>; | 新增 |
| ohos.request | DownloadTask | remove(callback: AsyncCallback
\<
boolean>): void;
<br>
remove(): Promise
\
<
boolean>; | 新增 |
| ohos.request | DownloadTask | off(type: 'fail', callback?: (err: number) => void): void; | 新增 |
| ohos.request | DownloadTask | on(type: 'fail', callback: (err: number) => void): void; | 新增 |
| ohos.request | DownloadTask | off(type: 'complete'
\|
'pause'
\|
'remove', callback?: () => void): void; | 新增 |
...
...
@@ -81,8 +81,8 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,杂散软件
| ohos.request | DownloadConfig | enableMetered?: boolean; | 新增 |
| ohos.request | DownloadConfig | header?: Object; | 新增 |
| ohos.request | DownloadConfig | url: string; | 新增 |
| ohos.request | request | function upload(config: UploadConfig, callback: AsyncCallback
<UploadTask>
): void;
<br>
function upload(config: UploadConfig): Promise
<UploadTask>
; | 新增 |
| ohos.request | request | function download(config: DownloadConfig, callback: AsyncCallback
<DownloadTask>
): void;
<br>
function download(config: DownloadConfig): Promise
<DownloadTask>
; | 新增 |
| ohos.request | request | function upload(config: UploadConfig, callback: AsyncCallback
\<
UploadTask>): void;
<br>
function upload(config: UploadConfig): Promise
\
<
UploadTask>; | 新增 |
| ohos.request | request | function download(config: DownloadConfig, callback: AsyncCallback
\<
DownloadTask>): void;
<br>
function download(config: DownloadConfig): Promise
\
<
DownloadTask>; | 新增 |
| ohos.request | request | const SESSION_SUCCESSFUL: number; | 新增 |
| ohos.request | request | const SESSION_RUNNING: number; | 新增 |
| ohos.request | request | const SESSION_PENDING: number; | 新增 |
...
...
@@ -103,10 +103,10 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,杂散软件
| ohos.request | request | const ERROR_CANNOT_RESUME: number; | 新增 |
| ohos.request | request | const NETWORK_WIFI: number; | 新增 |
| ohos.request | request | const NETWORK_MOBILE: number; | 新增 |
| ohos.pasteboard | SystemPasteboard | setPasteData(data: PasteData, callback: AsyncCallback
<void>
): void;
<br>
setPasteData(data: PasteData): Promise
<void>
; | 新增 |
| ohos.pasteboard | SystemPasteboard | hasPasteData(callback: AsyncCallback
<boolean>
): void;
<br>
hasPasteData(): Promise
<boolean>
; | 新增 |
| ohos.pasteboard | SystemPasteboard | getPasteData(callback: AsyncCallback
<PasteData>
): void;
<br>
getPasteData(): Promise
<PasteData>
; | 新增 |
| ohos.pasteboard | SystemPasteboard | clear(callback: AsyncCallback
<void>
): void;
<br>
clear(): Promise
<void>
; | 新增 |
| ohos.pasteboard | SystemPasteboard | setPasteData(data: PasteData, callback: AsyncCallback
\<
void>): void;
<br>
setPasteData(data: PasteData): Promise
\
<
void>; | 新增 |
| ohos.pasteboard | SystemPasteboard | hasPasteData(callback: AsyncCallback
\<
boolean>): void;
<br>
hasPasteData(): Promise
\
<
boolean>; | 新增 |
| ohos.pasteboard | SystemPasteboard | getPasteData(callback: AsyncCallback
\<
PasteData>): void;
<br>
getPasteData(): Promise
\
<
PasteData>; | 新增 |
| ohos.pasteboard | SystemPasteboard | clear(callback: AsyncCallback
\<
void>): void;
<br>
clear(): Promise
\
<
void>; | 新增 |
| ohos.pasteboard | SystemPasteboard | off(type: 'update', callback?: () => void): void; | 新增 |
| ohos.pasteboard | SystemPasteboard | on(type: 'update', callback: () => void): void; | 新增 |
| ohos.pasteboard | PasteData | replaceRecordAt(index: number, record: PasteDataRecord): boolean; | 新增 |
...
...
@@ -121,13 +121,13 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,杂散软件
| ohos.pasteboard | PasteData | getPrimaryMimeType(): string; | 新增 |
| ohos.pasteboard | PasteData | getPrimaryWant(): Want; | 新增 |
| ohos.pasteboard | PasteData | getPrimaryHtml(): string; | 新增 |
| ohos.pasteboard | PasteData | getMimeTypes(): Array
<string>
; | 新增 |
| ohos.pasteboard | PasteData | getMimeTypes(): Array
\
<
string>; | 新增 |
| ohos.pasteboard | PasteData | addUriRecord(uri: string): void; | 新增 |
| ohos.pasteboard | PasteData | addTextRecord(text: string): void; | 新增 |
| ohos.pasteboard | PasteData | addRecord(record: PasteDataRecord): void; | 新增 |
| ohos.pasteboard | PasteData | addWantRecord(want: Want): void; | 新增 |
| ohos.pasteboard | PasteData | addHtmlRecord(htmlText: string): void; | 新增 |
| ohos.pasteboard | PasteDataRecord | convertToText(callback: AsyncCallback
<string>
): void;
<br>
convertToText(): Promise
<string>
; | 新增 |
| ohos.pasteboard | PasteDataRecord | convertToText(callback: AsyncCallback
\<
string>): void;
<br>
convertToText(): Promise
\
<
string>; | 新增 |
| ohos.pasteboard | PasteDataRecord | uri: string; | 新增 |
| ohos.pasteboard | PasteDataRecord | plainText: string; | 新增 |
| ohos.pasteboard | PasteDataRecord | mimeType: string; | 新增 |
...
...
@@ -136,7 +136,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,杂散软件
| ohos.pasteboard | PasteDataProperty | localOnly: boolean; | 新增 |
| ohos.pasteboard | PasteDataProperty | readonly timestamp: number; | 新增 |
| ohos.pasteboard | PasteDataProperty | tag: string; | 新增 |
| ohos.pasteboard | PasteDataProperty | readonly mimeTypes: Array
<string>
; | 新增 |
| ohos.pasteboard | PasteDataProperty | readonly mimeTypes: Array
\
<
string>; | 新增 |
| ohos.pasteboard | PasteDataProperty | additions: { [key: string]: object } | 新增 |
| ohos.pasteboard | pasteboard | function getSystemPasteboard(): SystemPasteboard; | 新增 |
| ohos.pasteboard | pasteboard | function createUriRecord(uri: string): PasteDataRecord; | 新增 |
...
...
@@ -166,20 +166,20 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,杂散软件
| ohos.inputmethodengine | KeyboardDelegate | off(type: 'keyDown'
\|
'keyUp', callback?: (event: KeyEvent) => boolean): void; | 新增 |
| ohos.inputmethodengine | KeyboardDelegate | on(type: 'keyDown'
\|
'keyUp', callback: (event: KeyEvent) => boolean): void; | 新增 |
| ohos.inputmethodengine | KeyboardDelegate | on(type: 'keyDown'
\|
'keyUp', callback: (event: KeyEvent) => boolean): void; | 新增 |
| ohos.inputmethodengine | TextInputClient | getEditorAttribute(callback: AsyncCallback
<EditorAttribute>
): void;
<br>
getEditorAttribute(): Promise
<EditorAttribute>
; | 新增 |
| ohos.inputmethodengine | TextInputClient | getBackward(length: number, callback: AsyncCallback
<string>
): void;
<br>
getBackward(length: number): Promise
<string>
; | 新增 |
| ohos.inputmethodengine | TextInputClient | getForward(length: number, callback: AsyncCallback
<string>
): void;
<br>
getForward(length: number): Promise
<string>
; | 新增 |
| ohos.inputmethodengine | TextInputClient | insertText(text: string, callback: AsyncCallback
<boolean>
): void;
<br>
insertText(text: string): Promise
<boolean>
; | 新增 |
| ohos.inputmethodengine | TextInputClient | deleteBackward(length: number, callback: AsyncCallback
<boolean>
): void;
<br>
deleteBackward(length: number): Promise
<boolean>
; | 新增 |
| ohos.inputmethodengine | TextInputClient | deleteForward(length: number, callback: AsyncCallback
<boolean>
): void;
<br>
deleteForward(length: number): Promise
<boolean>
; | 新增 |
| ohos.inputmethodengine | TextInputClient | sendKeyFunction(action: number, callback: AsyncCallback
<boolean>
): void;
<br>
sendKeyFunction(action: number): Promise
<boolean>
; | 新增 |
| ohos.inputmethodengine | TextInputClient | getEditorAttribute(callback: AsyncCallback
\<
EditorAttribute>): void;
<br>
getEditorAttribute(): Promise
\
<
EditorAttribute>; | 新增 |
| ohos.inputmethodengine | TextInputClient | getBackward(length: number, callback: AsyncCallback
\<
string>): void;
<br>
getBackward(length: number): Promise
\
<
string>; | 新增 |
| ohos.inputmethodengine | TextInputClient | getForward(length: number, callback: AsyncCallback
\<
string>): void;
<br>
getForward(length: number): Promise
\
<
string>; | 新增 |
| ohos.inputmethodengine | TextInputClient | insertText(text: string, callback: AsyncCallback
\<
boolean>): void;
<br>
insertText(text: string): Promise
\
<
boolean>; | 新增 |
| ohos.inputmethodengine | TextInputClient | deleteBackward(length: number, callback: AsyncCallback
\<
boolean>): void;
<br>
deleteBackward(length: number): Promise
\
<
boolean>; | 新增 |
| ohos.inputmethodengine | TextInputClient | deleteForward(length: number, callback: AsyncCallback
\<
boolean>): void;
<br>
deleteForward(length: number): Promise
\
<
boolean>; | 新增 |
| ohos.inputmethodengine | TextInputClient | sendKeyFunction(action: number, callback: AsyncCallback
\<
boolean>): void;
<br>
sendKeyFunction(action: number): Promise
\
<
boolean>; | 新增 |
| ohos.inputmethodengine | InputMethodEngine | off(type: 'keyboardShow'
\|
'keyboardHide', callback?: () => void): void; | 新增 |
| ohos.inputmethodengine | InputMethodEngine | off(type: 'keyboardShow'
\|
'keyboardHide', callback?: () => void): void; | 新增 |
| ohos.inputmethodengine | InputMethodEngine | on(type: 'keyboardShow'
\|
'keyboardHide', callback: () => void): void; | 新增 |
| ohos.inputmethodengine | InputMethodEngine | on(type: 'keyboardShow'
\|
'keyboardHide', callback: () => void): void; | 新增 |
| ohos.inputmethodengine | InputMethodEngine | off(type: 'inputStart', callback?: (kbController: KeyboardController, textInputClient: TextInputClient) => void): void; | 新增 |
| ohos.inputmethodengine | InputMethodEngine | on(type: 'inputStart', callback: (kbController: KeyboardController, textInputClient: TextInputClient) => void): void; | 新增 |
| ohos.inputmethodengine | KeyboardController | hideKeyboard(callback: AsyncCallback
<void>
): void;
<br>
hideKeyboard(): Promise
<void>
; | 新增 |
| ohos.inputmethodengine | KeyboardController | hideKeyboard(callback: AsyncCallback
\<
void>): void;
<br>
hideKeyboard(): Promise
\
<
void>; | 新增 |
| ohos.inputmethodengine | inputMethodEngine | function createKeyboardDelegate(): KeyboardDelegate; | 新增 |
| ohos.inputmethodengine | inputMethodEngine | function getInputMethodEngine(): InputMethodEngine; | 新增 |
| ohos.inputmethodengine | inputMethodEngine | const OPTION_NO_FULLSCREEN: number; | 新增 |
...
...
@@ -210,9 +210,9 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,杂散软件
| ohos.inputmethodengine | inputMethodEngine | const ENTER_KEY_TYPE_UNSPECIFIED: number; | 新增 |
| ohos.inputmethod | InputMethodProperty | readonly methodId: string; | 新增 |
| ohos.inputmethod | InputMethodProperty | readonly packageName: string; | 新增 |
| ohos.inputmethod | InputMethodController | stopInput(callback: AsyncCallback
<boolean>
): void;
<br>
stopInput(): Promise
<boolean>
; | 新增 |
| ohos.inputmethod | InputMethodSetting | displayOptionalInputMethod(callback: AsyncCallback
<void>
): void;
<br>
displayOptionalInputMethod(): Promise
<void>
; | 新增 |
| ohos.inputmethod | InputMethodSetting | listInputMethod(callback: AsyncCallback
<Array
<
InputMethodProperty
>
>): void;
<br>
listInputMethod(): Promise
<Array
<
InputMethodProperty
>
>; | 新增 |
| ohos.inputmethod | InputMethodController | stopInput(callback: AsyncCallback
\<
boolean>): void;
<br>
stopInput(): Promise
\
<
boolean>; | 新增 |
| ohos.inputmethod | InputMethodSetting | displayOptionalInputMethod(callback: AsyncCallback
\<
void>): void;
<br>
displayOptionalInputMethod(): Promise
\
<
void>; | 新增 |
| ohos.inputmethod | InputMethodSetting | listInputMethod(callback: AsyncCallback
\<
Array
\<
InputMethodProperty>>): void;
<br>
listInputMethod(): Promise
\<
Array
\
<
InputMethodProperty>>; | 新增 |
| ohos.inputmethod | inputMethod | function getInputMethodController(): InputMethodController; | 新增 |
| ohos.inputmethod | inputMethod | function getInputMethodSetting(): InputMethodSetting; | 新增 |
| ohos.inputmethod | inputMethod | const MAX_TYPE_NUM: number | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-misc_api-9-canary.md
浏览文件 @
e39dc96d
...
...
@@ -6,29 +6,29 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,杂散软
| 模块名
* | 类名 | 函数*
| 变更类型 |
|---|---|---|---|
| ohos.screenLock | screenLock |
function sendScreenLockEvent(event: String, parameter: number, callback: AsyncCallback
<boolean>
): void;
<br>
function sendScreenLockEvent(event: String, parameter: number): Promise
<boolean>
; | 新增 |
| ohos.screenLock | screenLock |
"function off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<void>
): void;"
| 新增 |
| ohos.screenLock | screenLock |
"function off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<void>
): void;"
| 新增 |
| ohos.screenLock | screenLock |
"function off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<void>
): void;"
| 新增 |
| ohos.screenLock | screenLock |
"function off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<void>
): void;"
| 新增 |
| ohos.screenLock | screenLock |
"function off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<void>
): void;"
| 新增 |
| ohos.screenLock | screenLock |
"function off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<void>
): void;"
| 新增 |
| ohos.screenLock | screenLock |
"function off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<void>
): void;"
| 新增 |
| ohos.screenLock | screenLock |
"function off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<void>
): void;"
| 新增 |
| ohos.screenLock | screenLock |
"function off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<void>
): void;"
| 新增 |
| ohos.screenLock | screenLock |
"function off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<void>
): void;"
| 新增 |
| ohos.screenLock | screenLock |
"function off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<void>
): void;"
| 新增 |
| ohos.screenLock | screenLock |
"function off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<void>
): void;"
| 新增 |
| ohos.screenLock | screenLock |
function on(type: 'screenlockEnabled', callback: Callback
<boolean>
): void; | 新增 |
| ohos.screenLock | screenLock |
function on(type: 'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<number>
): void; | 新增 |
| ohos.screenLock | screenLock |
function on(type: 'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<number>
): void; | 新增 |
| ohos.screenLock | screenLock |
function on(type: 'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
<number>
): void; | 新增 |
| ohos.screenLock | screenLock |
function on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
<void>
): void; | 新增 |
| ohos.screenLock | screenLock |
function on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
<void>
): void; | 新增 |
| ohos.screenLock | screenLock |
function on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
<void>
): void; | 新增 |
| ohos.screenLock | screenLock |
function on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
<void>
): void; | 新增 |
| ohos.screenLock | screenLock |
function on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
<void>
): void; | 新增 |
| ohos.screenLock | screenLock |
function on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
<void>
): void; | 新增 |
| ohos.screenLock | screenLock |
function on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
<void>
): void; | 新增 |
| ohos.screenLock | screenLock |
function on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
<void>
): void; | 新增 |
| ohos.screenLock | screenLock |
sendScreenLockEvent(event: String, parameter: number, callback: AsyncCallback
\<
boolean>): void;
<br>
sendScreenLockEvent(event: String, parameter: number): Promise
\
<
boolean>; | 新增 |
| ohos.screenLock | screenLock |
off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\<
void>): void;
| 新增 |
| ohos.screenLock | screenLock |
off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\<
void>): void;
| 新增 |
| ohos.screenLock | screenLock |
off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\<
void>): void;
| 新增 |
| ohos.screenLock | screenLock |
off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\<
void>): void;
| 新增 |
| ohos.screenLock | screenLock |
off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\<
void>): void;
| 新增 |
| ohos.screenLock | screenLock |
off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\<
void>): void;
| 新增 |
| ohos.screenLock | screenLock |
off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\<
void>): void;
| 新增 |
| ohos.screenLock | screenLock |
off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\<
void>): void;
| 新增 |
| ohos.screenLock | screenLock |
off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\<
void>): void;
| 新增 |
| ohos.screenLock | screenLock |
off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\<
void>): void;
| 新增 |
| ohos.screenLock | screenLock |
off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\<
void>): void;
| 新增 |
| ohos.screenLock | screenLock |
off(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation'
\|
'screenlockEnabled'
\|
'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\<
void>): void;
| 新增 |
| ohos.screenLock | screenLock |
on(type: 'screenlockEnabled', callback: Callback
\
<
boolean>): void; | 新增 |
| ohos.screenLock | screenLock |
on(type: 'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\
<
number>): void; | 新增 |
| ohos.screenLock | screenLock |
on(type: 'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\
<
number>): void; | 新增 |
| ohos.screenLock | screenLock |
on(type: 'beginSleep'
\|
'endSleep'
\|
'changeUser', callback: Callback
\
<
number>): void; | 新增 |
| ohos.screenLock | screenLock |
on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
\
<
void>): void; | 新增 |
| ohos.screenLock | screenLock |
on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
\
<
void>): void; | 新增 |
| ohos.screenLock | screenLock |
on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
\
<
void>): void; | 新增 |
| ohos.screenLock | screenLock |
on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
\
<
void>): void; | 新增 |
| ohos.screenLock | screenLock |
on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
\
<
void>): void; | 新增 |
| ohos.screenLock | screenLock |
on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
\
<
void>): void; | 新增 |
| ohos.screenLock | screenLock |
on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
\
<
void>): void; | 新增 |
| ohos.screenLock | screenLock |
on(type: 'beginWakeUp'
\|
'endWakeUp'
\|
'beginScreenOn'
\|
'endScreenOn'
\|
'beginScreenOff'
\|
'endScreenOff'
\|
'unlockScreen'
\|
'beginExitAnimation', callback: Callback
\
<
void>): void; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md
浏览文件 @
e39dc96d
...
...
@@ -6,10 +6,10 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,多模输入
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.multimodalInput.inputDevice | inputDevice | function getDevice(deviceId: number, callback: AsyncCallback
<InputDeviceData>
): void;
<br>
function getDevice(deviceId: number): Promise
<InputDeviceData>
; | 新增 |
| ohos.multimodalInput.inputDevice | inputDevice | function getDeviceIds(callback: AsyncCallback
<Array
<
number
>
>): void;
<br>
function getDeviceIds(): Promise
<Array
<
number
>
>; | 新增 |
| ohos.multimodalInput.inputDevice | InputDeviceData | axisRanges : Array
<AxisRange>
; | 新增 |
| ohos.multimodalInput.inputDevice | InputDeviceData | sources : Array
<SourceType>
; | 新增 |
| ohos.multimodalInput.inputDevice | inputDevice | function getDevice(deviceId: number, callback: AsyncCallback
\<
InputDeviceData>): void;
<br>
function getDevice(deviceId: number): Promise
\
<
InputDeviceData>; | 新增 |
| ohos.multimodalInput.inputDevice | inputDevice | function getDeviceIds(callback: AsyncCallback
<Array
\<
number
>
>): void;
<br>
function getDeviceIds(): Promise
<Array
\
<
number
>
>; | 新增 |
| ohos.multimodalInput.inputDevice | InputDeviceData | axisRanges : Array
\
<
AxisRange>; | 新增 |
| ohos.multimodalInput.inputDevice | InputDeviceData | sources : Array
\
<
SourceType>; | 新增 |
| ohos.multimodalInput.inputDevice | InputDeviceData | name: string; | 新增 |
| ohos.multimodalInput.inputDevice | InputDeviceData | id: number; | 新增 |
| ohos.multimodalInput.inputDevice | AxisRange | min: number; | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md
浏览文件 @
e39dc96d
...
...
@@ -8,36 +8,36 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
|---|---|---|---|
| ohos.multimedia.mediaLibrary | Size | height: number; | 新增 |
| ohos.multimedia.mediaLibrary | Size | width: number; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | startMediaSelect(option: MediaSelectOption, callback: AsyncCallback
<Array
<
string
>
>): void;
<br>
startMediaSelect(option: MediaSelectOption): Promise
<Array
<
string
>
>; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | startImagePreview(images: Array
<string>
, index: number, callback: AsyncCallback
<void>
): void;
<br>
startImagePreview(images: Array
<string>
, callback: AsyncCallback
<void>
): void;
<br>
startImagePreview(images: Array
<string>
, index?: number): Promise
<void>
; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | storeMediaAsset(option: MediaAssetOption, callback: AsyncCallback
<string>
): void;
<br>
storeMediaAsset(option: MediaAssetOption): Promise
<string>
; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | getAlbums(options: MediaFetchOptions, callback: AsyncCallback
<Array
<
Album
>
>): void;
<br>
getAlbums(options: MediaFetchOptions): Promise
<Array
<
Album
>
>; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | createAsset(mediaType: MediaType, displayName: string, relativePath: string, callback: AsyncCallback
<FileAsset>
): void;
<br>
createAsset(mediaType: MediaType, displayName: string, relativePath: string): Promise
<FileAsset>
; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
<void>
): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | getFileAssets(options: MediaFetchOptions, callback: AsyncCallback
<FetchFileResult>
): void;
<br>
getFileAssets(options: MediaFetchOptions): Promise
<FetchFileResult>
; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | getPublicDirectory(type: DirectoryType, callback: AsyncCallback
<string>
): void;
<br>
getPublicDirectory(type: DirectoryType): Promise
<string>
; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | startMediaSelect(option: MediaSelectOption, callback: AsyncCallback
\<
Array
\<
string>>): void;
<br>
startMediaSelect(option: MediaSelectOption): Promise
\<
Array
\
<
string>>; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | startImagePreview(images: Array
\<
string>, index: number, callback: AsyncCallback
\<
void>): void;
<br>
startImagePreview(images: Array
\<
string>, callback: AsyncCallback
\<
void>): void;
<br>
startImagePreview(images: Array
\<
string>, index?: number): Promise
\
<
void>; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | storeMediaAsset(option: MediaAssetOption, callback: AsyncCallback
\<
string>): void;
<br>
storeMediaAsset(option: MediaAssetOption): Promise
\
<
string>; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | getAlbums(options: MediaFetchOptions, callback: AsyncCallback
\<
Array
\<
Album>>): void;
<br>
getAlbums(options: MediaFetchOptions): Promise
\<
Array
\
<
Album>>; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | createAsset(mediaType: MediaType, displayName: string, relativePath: string, callback: AsyncCallback
\<
FileAsset>): void;
<br>
createAsset(mediaType: MediaType, displayName: string, relativePath: string): Promise
\
<
FileAsset>; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback?: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'
\|
'albumChange'
\|
'imageChange'
\|
'audioChange'
\|
'videoChange'
\|
'fileChange'
\|
'remoteFileChange', callback: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | getFileAssets(options: MediaFetchOptions, callback: AsyncCallback
\<
FetchFileResult>): void;
<br>
getFileAssets(options: MediaFetchOptions): Promise
\
<
FetchFileResult>; | 新增 |
| ohos.multimedia.mediaLibrary | MediaLibrary | getPublicDirectory(type: DirectoryType, callback: AsyncCallback
\<
string>): void;
<br>
getPublicDirectory(type: DirectoryType): Promise
\
<
string>; | 新增 |
| ohos.multimedia.mediaLibrary | DirectoryType | DIR_DOWNLOAD | 新增 |
| ohos.multimedia.mediaLibrary | DirectoryType | DIR_DOCUMENTS | 新增 |
| ohos.multimedia.mediaLibrary | DirectoryType | DIR_AUDIO | 新增 |
| ohos.multimedia.mediaLibrary | DirectoryType | DIR_IMAGE | 新增 |
| ohos.multimedia.mediaLibrary | DirectoryType | DIR_VIDEO | 新增 |
| ohos.multimedia.mediaLibrary | DirectoryType | DIR_CAMERA = 0 | 新增 |
| ohos.multimedia.mediaLibrary | Album | getFileAssets(callback: AsyncCallback
<FetchFileResult>
): void;
<br>
getFileAssets(options: MediaFetchOptions, callback: AsyncCallback
<FetchFileResult>
): void;
<br>
getFileAssets(options?: MediaFetchOptions): Promise
<FetchFileResult>
; | 新增 |
| ohos.multimedia.mediaLibrary | Album | commitModify(callback: AsyncCallback
<void>
): void;
<br>
commitModify(): Promise
<void>
; | 新增 |
| ohos.multimedia.mediaLibrary | Album | getFileAssets(callback: AsyncCallback
\<
FetchFileResult>): void;
<br>
getFileAssets(options: MediaFetchOptions, callback: AsyncCallback
\<
FetchFileResult>): void;
<br>
getFileAssets(options?: MediaFetchOptions): Promise
\
<
FetchFileResult>; | 新增 |
| ohos.multimedia.mediaLibrary | Album | commitModify(callback: AsyncCallback
\<
void>): void;
<br>
commitModify(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.mediaLibrary | Album | readonly coverUri: string; | 新增 |
| ohos.multimedia.mediaLibrary | Album | readonly relativePath: string; | 新增 |
| ohos.multimedia.mediaLibrary | Album | readonly count: number; | 新增 |
...
...
@@ -45,11 +45,11 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
| ohos.multimedia.mediaLibrary | Album | readonly albumUri: string; | 新增 |
| ohos.multimedia.mediaLibrary | Album | albumName: string; | 新增 |
| ohos.multimedia.mediaLibrary | Album | readonly albumId: number; | 新增 |
| ohos.multimedia.mediaLibrary | FetchFileResult | getAllObject(callback: AsyncCallback
<Array
<
FileAsset
>
>): void;
<br>
getAllObject(): Promise
<Array
<
FileAsset
>
>; | 新增 |
| ohos.multimedia.mediaLibrary | FetchFileResult | getPositionObject(index: number, callback: AsyncCallback
<FileAsset>
): void;
<br>
getPositionObject(index: number): Promise
<FileAsset>
; | 新增 |
| ohos.multimedia.mediaLibrary | FetchFileResult | getLastObject(callback: AsyncCallback
<FileAsset>
): void;
<br>
getLastObject(): Promise
<FileAsset>
; | 新增 |
| ohos.multimedia.mediaLibrary | FetchFileResult | getNextObject(callback: AsyncCallback
<FileAsset>
): void;
<br>
getNextObject(): Promise
<FileAsset>
; | 新增 |
| ohos.multimedia.mediaLibrary | FetchFileResult | getFirstObject(callback: AsyncCallback
<FileAsset>
): void;
<br>
getFirstObject(): Promise
<FileAsset>
; | 新增 |
| ohos.multimedia.mediaLibrary | FetchFileResult | getAllObject(callback: AsyncCallback
\<
Array
\<
FileAsset>>): void;
<br>
getAllObject(): Promise
\<
Array
\
<
FileAsset>>; | 新增 |
| ohos.multimedia.mediaLibrary | FetchFileResult | getPositionObject(index: number, callback: AsyncCallback
\<
FileAsset>): void;
<br>
getPositionObject(index: number): Promise
\
<
FileAsset>; | 新增 |
| ohos.multimedia.mediaLibrary | FetchFileResult | getLastObject(callback: AsyncCallback
\<
FileAsset>): void;
<br>
getLastObject(): Promise
\
<
FileAsset>; | 新增 |
| ohos.multimedia.mediaLibrary | FetchFileResult | getNextObject(callback: AsyncCallback
\<
FileAsset>): void;
<br>
getNextObject(): Promise
\
<
FileAsset>; | 新增 |
| ohos.multimedia.mediaLibrary | FetchFileResult | getFirstObject(callback: AsyncCallback
\<
FileAsset>): void;
<br>
getFirstObject(): Promise
\
<
FileAsset>; | 新增 |
| ohos.multimedia.mediaLibrary | FetchFileResult | close(): void; | 新增 |
| ohos.multimedia.mediaLibrary | FetchFileResult | isAfterLast(): boolean; | 新增 |
| ohos.multimedia.mediaLibrary | FetchFileResult | getCount(): number; | 新增 |
...
...
@@ -57,7 +57,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
| ohos.multimedia.mediaLibrary | MediaFetchOptions | networkId?: string; | 新增 |
| ohos.multimedia.mediaLibrary | MediaFetchOptions | uri?: string; | 新增 |
| ohos.multimedia.mediaLibrary | MediaFetchOptions | order?: string; | 新增 |
| ohos.multimedia.mediaLibrary | MediaFetchOptions | selectionArgs: Array
<string>
; | 新增 |
| ohos.multimedia.mediaLibrary | MediaFetchOptions | selectionArgs: Array
\
<
string>; | 新增 |
| ohos.multimedia.mediaLibrary | MediaFetchOptions | selections: string; | 新增 |
| ohos.multimedia.mediaLibrary | FileKey | ALBUM_NAME = "bucket_display_name" | 新增 |
| ohos.multimedia.mediaLibrary | FileKey | ALBUM_ID = "bucket_id" | 新增 |
...
...
@@ -78,15 +78,15 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
| ohos.multimedia.mediaLibrary | FileKey | DISPLAY_NAME = "display_name" | 新增 |
| ohos.multimedia.mediaLibrary | FileKey | RELATIVE_PATH = "relative_path" | 新增 |
| ohos.multimedia.mediaLibrary | FileKey | ID = "file_id" | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | isTrash(callback: AsyncCallback
<boolean>
): void;
<br>
isTrash():Promise
<boolean>
; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | trash(isTrash: boolean, callback: AsyncCallback
<void>
): void;
<br>
trash(isTrash: boolean): Promise
<void>
; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | isFavorite(callback: AsyncCallback
<boolean>
): void;
<br>
isFavorite():Promise
<boolean>
; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | favorite(isFavorite: boolean, callback: AsyncCallback
<void>
): void;
<br>
favorite(isFavorite: boolean): Promise
<void>
; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | getThumbnail(callback: AsyncCallback
<image.PixelMap>
): void;
<br>
getThumbnail(size: Size, callback: AsyncCallback
<image.PixelMap>
): void;
<br>
getThumbnail(size?: Size): Promise
<image.PixelMap>
; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | close(fd: number, callback: AsyncCallback
<void>
): void;
<br>
close(fd: number): Promise
<void>
; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | open(mode: string, callback: AsyncCallback
<number>
): void;
<br>
open(mode: string): Promise
<number>
; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | commitModify(callback: AsyncCallback
<void>
): void;
<br>
commitModify(): Promise
<void>
; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | isDirectory(callback: AsyncCallback
<boolean>
): void;
<br>
isDirectory():Promise
<boolean>
; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | isTrash(callback: AsyncCallback
\<
boolean>): void;
<br>
isTrash():Promise
\
<
boolean>; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | trash(isTrash: boolean, callback: AsyncCallback
\<
void>): void;
<br>
trash(isTrash: boolean): Promise
\
<
void>; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | isFavorite(callback: AsyncCallback
\<
boolean>): void;
<br>
isFavorite():Promise
\
<
boolean>; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | favorite(isFavorite: boolean, callback: AsyncCallback
\<
void>): void;
<br>
favorite(isFavorite: boolean): Promise
\
<
void>; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | getThumbnail(callback: AsyncCallback
\<
image.PixelMap>): void;
<br>
getThumbnail(size: Size, callback: AsyncCallback
\<
image.PixelMap>): void;
<br>
getThumbnail(size?: Size): Promise
\
<
image.PixelMap>; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | close(fd: number, callback: AsyncCallback
\<
void>): void;
<br>
close(fd: number): Promise
\
<
void>; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | open(mode: string, callback: AsyncCallback
\<
number>): void;
<br>
open(mode: string): Promise
\
<
number>; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | commitModify(callback: AsyncCallback
\<
void>): void;
<br>
commitModify(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | isDirectory(callback: AsyncCallback
\<
boolean>): void;
<br>
isDirectory():Promise
\
<
boolean>; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | readonly albumName: string; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | readonly albumUri: string; | 新增 |
| ohos.multimedia.mediaLibrary | FileAsset | readonly albumId: number; | 新增 |
...
...
@@ -117,7 +117,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
| ohos.multimedia.mediaLibrary | MediaType | VIDEO | 新增 |
| ohos.multimedia.mediaLibrary | MediaType | IMAGE | 新增 |
| ohos.multimedia.mediaLibrary | MediaType | FILE = 0 | 新增 |
| ohos.multimedia.mediaLibrary | mediaLibrary |
function getMediaLibrary(): MediaLibrary;
<br>
function
getMediaLibrary(context: Context): MediaLibrary; | 新增 |
| ohos.multimedia.mediaLibrary | mediaLibrary |
getMediaLibrary(): MediaLibrary;
<br>
getMediaLibrary(context: Context): MediaLibrary; | 新增 |
| ohos.multimedia.media | CodecMimeType | AUDIO_FLAC = 'audio/flac' | 新增 |
| ohos.multimedia.media | CodecMimeType | AUDIO_VORBIS = 'audio/vorbis' | 新增 |
| ohos.multimedia.media | CodecMimeType | AUDIO_AAC = 'audio/mp4a-latm' | 新增 |
...
...
@@ -145,10 +145,10 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
| ohos.multimedia.media | ContainerFormatType | CFT_MPEG_4 = "mp4" | 新增 |
| ohos.multimedia.media | VideoPlayer | on(type: 'error', callback: ErrorCallback): void; | 新增 |
| ohos.multimedia.media | VideoPlayer | on(type: 'videoSizeChanged', callback: (width: number, height: number) => void): void; | 新增 |
| ohos.multimedia.media | VideoPlayer | on(type: 'startRenderFrame', callback: Callback
<void>
): void; | 新增 |
| ohos.multimedia.media | VideoPlayer | on(type: 'startRenderFrame', callback: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.media | VideoPlayer | on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void; | 新增 |
| ohos.multimedia.media | VideoPlayer | on(type: 'playbackCompleted', callback: Callback
<void>
): void; | 新增 |
| ohos.multimedia.media | VideoPlayer | setSpeed(speed:number, callback: AsyncCallback
<number>
): void;
<br>
setSpeed(speed:number): Promise
<number>
; | 新增 |
| ohos.multimedia.media | VideoPlayer | on(type: 'playbackCompleted', callback: Callback
\
<
void>): void; | 新增 |
| ohos.multimedia.media | VideoPlayer | setSpeed(speed:number, callback: AsyncCallback
\<
number>): void;
<br>
setSpeed(speed:number): Promise
\
<
number>; | 新增 |
| ohos.multimedia.media | VideoPlayer | readonly height: number; | 新增 |
| ohos.multimedia.media | VideoPlayer | readonly width: number; | 新增 |
| ohos.multimedia.media | VideoPlayer | readonly state: VideoPlayState; | 新增 |
...
...
@@ -156,16 +156,16 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
| ohos.multimedia.media | VideoPlayer | readonly currentTime: number; | 新增 |
| ohos.multimedia.media | VideoPlayer | loop: boolean; | 新增 |
| ohos.multimedia.media | VideoPlayer | url: string; | 新增 |
| ohos.multimedia.media | VideoPlayer | getTrackDescription(callback: AsyncCallback
<Array
<
MediaDescription
>
>): void;
<br>
getTrackDescription() : Promise
<Array
<
MediaDescription
>
>; | 新增 |
| ohos.multimedia.media | VideoPlayer | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoPlayer | setVolume(vol: number, callback: AsyncCallback
<void>
): void;
<br>
setVolume(vol: number): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoPlayer | seek(timeMs: number, callback: AsyncCallback
<number>
): void;
<br>
seek(timeMs: number, mode:SeekMode, callback: AsyncCallback
<number>
): void;
<br>
seek(timeMs: number, mode?:SeekMode): Promise
<number>
; | 新增 |
| ohos.multimedia.media | VideoPlayer | reset(callback: AsyncCallback
<void>
): void;
<br>
reset(): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoPlayer | stop(callback: AsyncCallback
<void>
): void;
<br>
stop(): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoPlayer | pause(callback: AsyncCallback
<void>
): void;
<br>
pause(): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoPlayer | play(callback: AsyncCallback
<void>
): void;
<br>
play(): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoPlayer | prepare(callback: AsyncCallback
<void>
): void;
<br>
prepare(): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoPlayer | setDisplaySurface(surfaceId: string, callback: AsyncCallback
<void>
): void;
<br>
setDisplaySurface(surfaceId: string): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoPlayer | getTrackDescription(callback: AsyncCallback
\<
Array
\<
MediaDescription>>): void;
<br>
getTrackDescription() : Promise
\<
Array
\
<
MediaDescription>>; | 新增 |
| ohos.multimedia.media | VideoPlayer | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | VideoPlayer | setVolume(vol: number, callback: AsyncCallback
\<
void>): void;
<br>
setVolume(vol: number): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | VideoPlayer | seek(timeMs: number, callback: AsyncCallback
\<
number>): void;
<br>
seek(timeMs: number, mode:SeekMode, callback: AsyncCallback
\<
number>): void;
<br>
seek(timeMs: number, mode?:SeekMode): Promise
\
<
number>; | 新增 |
| ohos.multimedia.media | VideoPlayer | reset(callback: AsyncCallback
\<
void>): void;
<br>
reset(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | VideoPlayer | stop(callback: AsyncCallback
\<
void>): void;
<br>
stop(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | VideoPlayer | pause(callback: AsyncCallback
\<
void>): void;
<br>
pause(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | VideoPlayer | play(callback: AsyncCallback
\<
void>): void;
<br>
play(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | VideoPlayer | prepare(callback: AsyncCallback
\<
void>): void;
<br>
prepare(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | VideoPlayer | setDisplaySurface(surfaceId: string, callback: AsyncCallback
\<
void>): void;
<br>
setDisplaySurface(surfaceId: string): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_2_00_X = 4 | 新增 |
| ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_1_75_X = 3 | 新增 |
| ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_1_25_X = 2 | 新增 |
...
...
@@ -209,7 +209,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
| ohos.multimedia.media | AudioEncoder | DEFAULT = 0 | 新增 |
| ohos.multimedia.media | AudioPlayer | on(type: 'play'
\|
'pause'
\|
'stop'
\|
'reset'
\|
'dataLoad'
\|
'finish'
\|
'volumeChange', callback: () => void): void; | 新增 |
| ohos.multimedia.media | AudioPlayer | on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void; | 新增 |
| ohos.multimedia.media | AudioPlayer | getTrackDescription(callback: AsyncCallback
<Array
<
MediaDescription
>
>): void;
<br>
getTrackDescription() : Promise
<Array
<
MediaDescription
>
>; | 新增 |
| ohos.multimedia.media | AudioPlayer | getTrackDescription(callback: AsyncCallback
\<
Array
\<
MediaDescription>>): void;
<br>
getTrackDescription() : Promise
\<
Array
\
<
MediaDescription>>; | 新增 |
| ohos.multimedia.media | AudioPlayer | reset(): void; | 新增 |
| ohos.multimedia.media | BufferingInfoType | CACHED_DURATION = 4 | 新增 |
| ohos.multimedia.media | BufferingInfoType | BUFFERING_PERCENT = 3 | 新增 |
...
...
@@ -225,28 +225,28 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
| ohos.multimedia.media | MediaErrorCode | MSERR_OPERATION_NOT_PERMIT = 2 | 新增 |
| ohos.multimedia.media | MediaErrorCode | MSERR_NO_MEMORY = 1 | 新增 |
| ohos.multimedia.media | MediaErrorCode | MSERR_OK = 0 | 新增 |
| ohos.multimedia.media | media |
function createVideoPlayer(callback: AsyncCallback
<VideoPlayer>
): void;
<br>
function createVideoPlayer() : Promise
<VideoPlayer>
; | 新增 |
| ohos.multimedia.media | media |
function
createAudioRecorder(): AudioRecorder; | 新增 |
| ohos.multimedia.image | ImagePacker | readonly supportedFormats: Array
<string>
; | 新增 |
| ohos.multimedia.image | ImagePacker | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.image | ImagePacker | packing(source: ImageSource, option: PackingOption, callback: AsyncCallback
<ArrayBuffer>
): void;
<br>
packing(source: ImageSource, option: PackingOption): Promise
<ArrayBuffer>
;
<br>
packing(source: PixelMap, option: PackingOption, callback: AsyncCallback
<ArrayBuffer>
): void;
<br>
packing(source: PixelMap, option: PackingOption): Promise
<ArrayBuffer>
; | 新增 |
| ohos.multimedia.image | ImageSource | readonly supportedFormats: Array
<string>
; | 新增 |
| ohos.multimedia.image | ImageSource | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.image | ImageSource | getImageProperty(key:string, options?: GetImagePropertyOptions): Promise
<string>
;
<br>
getImageProperty(key:string, callback: AsyncCallback
<string>
): void;
<br>
getImageProperty(key:string, options: GetImagePropertyOptions, callback: AsyncCallback
<string>
): void; | 新增 |
| ohos.multimedia.image | ImageSource | createPixelMap(options?: DecodingOptions): Promise
<PixelMap>
;
<br>
createPixelMap(callback: AsyncCallback
<PixelMap>
): void;
<br>
createPixelMap(options: DecodingOptions, callback: AsyncCallback
<PixelMap>
): void; | 新增 |
| ohos.multimedia.image | ImageSource | getImageInfo(index: number, callback: AsyncCallback
<ImageInfo>
): void;
<br>
getImageInfo(callback: AsyncCallback
<ImageInfo>
): void;
<br>
getImageInfo(index?: number): Promise
<ImageInfo>
; | 新增 |
| ohos.multimedia.image | PixelMap | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.media | media |
createVideoPlayer(callback: AsyncCallback
\<
VideoPlayer>): void;
<br>
createVideoPlayer() : Promise
\
<
VideoPlayer>; | 新增 |
| ohos.multimedia.media | media | createAudioRecorder(): AudioRecorder; | 新增 |
| ohos.multimedia.image | ImagePacker | readonly supportedFormats: Array
\
<
string>; | 新增 |
| ohos.multimedia.image | ImagePacker | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.image | ImagePacker | packing(source: ImageSource, option: PackingOption, callback: AsyncCallback
\<
ArrayBuffer>): void;
<br>
packing(source: ImageSource, option: PackingOption): Promise
\<
ArrayBuffer>;
<br>
packing(source: PixelMap, option: PackingOption, callback: AsyncCallback
\<
ArrayBuffer>): void;
<br>
packing(source: PixelMap, option: PackingOption): Promise
\
<
ArrayBuffer>; | 新增 |
| ohos.multimedia.image | ImageSource | readonly supportedFormats: Array
\
<
string>; | 新增 |
| ohos.multimedia.image | ImageSource | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.image | ImageSource | getImageProperty(key:string, options?: GetImagePropertyOptions): Promise
\<
string>;
<br>
getImageProperty(key:string, callback: AsyncCallback
\<
string>): void;
<br>
getImageProperty(key:string, options: GetImagePropertyOptions, callback: AsyncCallback
\
<
string>): void; | 新增 |
| ohos.multimedia.image | ImageSource | createPixelMap(options?: DecodingOptions): Promise
\<
PixelMap>;
<br>
createPixelMap(callback: AsyncCallback
\<
PixelMap>): void;
<br>
createPixelMap(options: DecodingOptions, callback: AsyncCallback
\
<
PixelMap>): void; | 新增 |
| ohos.multimedia.image | ImageSource | getImageInfo(index: number, callback: AsyncCallback
\<
ImageInfo>): void;
<br>
getImageInfo(callback: AsyncCallback
\<
ImageInfo>): void;
<br>
getImageInfo(index?: number): Promise
\
<
ImageInfo>; | 新增 |
| ohos.multimedia.image | PixelMap | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.image | PixelMap | getPixelBytesNumber(): number; | 新增 |
| ohos.multimedia.image | PixelMap | getBytesNumberPerRow(): number; | 新增 |
| ohos.multimedia.image | PixelMap | getImageInfo(): Promise
<ImageInfo>
;
<br>
getImageInfo(callback: AsyncCallback
<ImageInfo>
): void; | 新增 |
| ohos.multimedia.image | PixelMap | writeBufferToPixels(src: ArrayBuffer): Promise
<void>
;
<br>
writeBufferToPixels(src: ArrayBuffer, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.multimedia.image | PixelMap | writePixels(area: PositionArea): Promise
<void>
;
<br>
writePixels(area: PositionArea, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.multimedia.image | PixelMap | readPixels(area: PositionArea): Promise
<void>
;
<br>
readPixels(area: PositionArea, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.multimedia.image | PixelMap | readPixelsToBuffer(dst: ArrayBuffer): Promise
<void>
;
<br>
readPixelsToBuffer(dst: ArrayBuffer, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.multimedia.image | PixelMap | getImageInfo(): Promise
\<
ImageInfo>;
<br>
getImageInfo(callback: AsyncCallback
\
<
ImageInfo>): void; | 新增 |
| ohos.multimedia.image | PixelMap | writeBufferToPixels(src: ArrayBuffer): Promise
\<
void>;
<br>
writeBufferToPixels(src: ArrayBuffer, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.multimedia.image | PixelMap | writePixels(area: PositionArea): Promise
\<
void>;
<br>
writePixels(area: PositionArea, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.multimedia.image | PixelMap | readPixels(area: PositionArea): Promise
\<
void>;
<br>
readPixels(area: PositionArea, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.multimedia.image | PixelMap | readPixelsToBuffer(dst: ArrayBuffer): Promise
\<
void>;
<br>
readPixelsToBuffer(dst: ArrayBuffer, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.multimedia.image | PixelMap | readonly isEditable: boolean; | 新增 |
| ohos.multimedia.image | image |
function
createImagePacker(): ImagePacker; | 新增 |
| ohos.multimedia.image | image |
function createImageSource(uri: string): ImageSource;
<br>
function
createImageSource(fd: number): ImageSource; | 新增 |
| ohos.multimedia.image | image |
function createPixelMap(colors: ArrayBuffer, options: InitializationOptions, callback: AsyncCallback
<PixelMap>
): void;
<br>
function createPixelMap(colors: ArrayBuffer, options: InitializationOptions): Promise
<PixelMap>
; | 新增 |
| ohos.multimedia.image | image | createImagePacker(): ImagePacker; | 新增 |
| ohos.multimedia.image | image |
createImageSource(uri: string): ImageSource;
<br>
createImageSource(fd: number): ImageSource; | 新增 |
| ohos.multimedia.image | image |
createPixelMap(colors: ArrayBuffer, options: InitializationOptions, callback: AsyncCallback
\<
PixelMap>): void;
<br>
createPixelMap(colors: ArrayBuffer, options: InitializationOptions): Promise
\
<
PixelMap>; | 新增 |
| ohos.multimedia.image | InitializationOptions | editable?: boolean; | 新增 |
| ohos.multimedia.image | InitializationOptions | pixelFormat?: PixelMapFormat; | 新增 |
| ohos.multimedia.image | InitializationOptions | size: Size; | 新增 |
...
...
@@ -282,19 +282,19 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
| ohos.multimedia.image | PixelMapFormat | RGBA_8888 = 3 | 新增 |
| ohos.multimedia.image | PixelMapFormat | RGB_565 = 2 | 新增 |
| ohos.multimedia.image | PixelMapFormat | UNKNOWN = 0 | 新增 |
| ohos.multimedia.audio | AudioCapturer | on(type: "stateChange", callback: Callback
<AudioState>
): void; | 新增 |
| ohos.multimedia.audio | AudioCapturer | on(type: "stateChange", callback: Callback
\
<
AudioState>): void; | 新增 |
| ohos.multimedia.audio | AudioCapturer | off(type: "periodReach"): void; | 新增 |
| ohos.multimedia.audio | AudioCapturer | on(type: "periodReach", frame: number, callback: (position: number) => {}): void; | 新增 |
| ohos.multimedia.audio | AudioCapturer | off(type: "markReach"): void; | 新增 |
| ohos.multimedia.audio | AudioCapturer | on(type: "markReach", frame: number, callback: (position: number) => {}): void; | 新增 |
| ohos.multimedia.audio | AudioCapturer | getBufferSize(callback: AsyncCallback
<number>
): void;
<br>
getBufferSize(): Promise
<number>
; | 新增 |
| ohos.multimedia.audio | AudioCapturer | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioCapturer | stop(callback: AsyncCallback
<void>
): void;
<br>
stop(): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioCapturer | getAudioTime(callback: AsyncCallback
<number>
): void;
<br>
getAudioTime(): Promise
<number>
; | 新增 |
| ohos.multimedia.audio | AudioCapturer | read(size: number, isBlockingRead: boolean, callback: AsyncCallback
<ArrayBuffer>
): void;
<br>
read(size: number, isBlockingRead: boolean): Promise
<ArrayBuffer>
; | 新增 |
| ohos.multimedia.audio | AudioCapturer | start(callback: AsyncCallback
<void>
): void;
<br>
start(): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioCapturer | getStreamInfo(callback: AsyncCallback
<AudioStreamInfo>
): void;
<br>
getStreamInfo(): Promise
<AudioStreamInfo>
; | 新增 |
| ohos.multimedia.audio | AudioCapturer | getCapturerInfo(callback: AsyncCallback
<AudioCapturerInfo>
): void;
<br>
getCapturerInfo(): Promise
<AudioCapturerInfo>
; | 新增 |
| ohos.multimedia.audio | AudioCapturer | getBufferSize(callback: AsyncCallback
\<
number>): void;
<br>
getBufferSize(): Promise
\
<
number>; | 新增 |
| ohos.multimedia.audio | AudioCapturer | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioCapturer | stop(callback: AsyncCallback
\<
void>): void;
<br>
stop(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioCapturer | getAudioTime(callback: AsyncCallback
\<
number>): void;
<br>
getAudioTime(): Promise
\
<
number>; | 新增 |
| ohos.multimedia.audio | AudioCapturer | read(size: number, isBlockingRead: boolean, callback: AsyncCallback
\<
ArrayBuffer>): void;
<br>
read(size: number, isBlockingRead: boolean): Promise
\
<
ArrayBuffer>; | 新增 |
| ohos.multimedia.audio | AudioCapturer | start(callback: AsyncCallback
\<
void>): void;
<br>
start(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioCapturer | getStreamInfo(callback: AsyncCallback
\<
AudioStreamInfo>): void;
<br>
getStreamInfo(): Promise
\
<
AudioStreamInfo>; | 新增 |
| ohos.multimedia.audio | AudioCapturer | getCapturerInfo(callback: AsyncCallback
\<
AudioCapturerInfo>): void;
<br>
getCapturerInfo(): Promise
\
<
AudioCapturerInfo>; | 新增 |
| ohos.multimedia.audio | AudioCapturer | readonly state: AudioState; | 新增 |
| ohos.multimedia.audio | AudioCapturerOptions | capturerInfo: AudioCapturerInfo; | 新增 |
| ohos.multimedia.audio | AudioCapturerOptions | streamInfo: AudioStreamInfo; | 新增 |
...
...
@@ -303,23 +303,23 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
| ohos.multimedia.audio | SourceType | SOURCE_TYPE_VOICE_COMMUNICATION = 7 | 新增 |
| ohos.multimedia.audio | SourceType | SOURCE_TYPE_MIC = 0 | 新增 |
| ohos.multimedia.audio | SourceType | SOURCE_TYPE_INVALID = -1 | 新增 |
| ohos.multimedia.audio | AudioRenderer | on(type: "stateChange", callback: Callback
<AudioState>
): void; | 新增 |
| ohos.multimedia.audio | AudioRenderer | on(type: "stateChange", callback: Callback
\
<
AudioState>): void; | 新增 |
| ohos.multimedia.audio | AudioRenderer | off(type: "periodReach"): void; | 新增 |
| ohos.multimedia.audio | AudioRenderer | on(type: "periodReach", frame: number, callback: (position: number) => {}): void; | 新增 |
| ohos.multimedia.audio | AudioRenderer | off(type: "markReach"): void; | 新增 |
| ohos.multimedia.audio | AudioRenderer | on(type: "markReach", frame: number, callback: (position: number) => {}): void; | 新增 |
| ohos.multimedia.audio | AudioRenderer | getRenderRate(callback: AsyncCallback
<AudioRendererRate>
): void;
<br>
getRenderRate(): Promise
<AudioRendererRate>
; | 新增 |
| ohos.multimedia.audio | AudioRenderer | setRenderRate(rate: AudioRendererRate, callback: AsyncCallback
<void>
): void;
<br>
setRenderRate(rate: AudioRendererRate): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioRenderer | getBufferSize(callback: AsyncCallback
<number>
): void;
<br>
getBufferSize(): Promise
<number>
; | 新增 |
| ohos.multimedia.audio | AudioRenderer | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioRenderer | stop(callback: AsyncCallback
<void>
): void;
<br>
stop(): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioRenderer | pause(callback: AsyncCallback
<void>
): void;
<br>
pause(): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioRenderer | drain(callback: AsyncCallback
<void>
): void;
<br>
drain(): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioRenderer | getAudioTime(callback: AsyncCallback
<number>
): void;
<br>
getAudioTime(): Promise
<number>
; | 新增 |
| ohos.multimedia.audio | AudioRenderer | write(buffer: ArrayBuffer, callback: AsyncCallback
<number>
): void;
<br>
write(buffer: ArrayBuffer): Promise
<number>
; | 新增 |
| ohos.multimedia.audio | AudioRenderer | start(callback: AsyncCallback
<void>
): void;
<br>
start(): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioRenderer | getStreamInfo(callback: AsyncCallback
<AudioStreamInfo>
): void;
<br>
getStreamInfo(): Promise
<AudioStreamInfo>
; | 新增 |
| ohos.multimedia.audio | AudioRenderer | getRendererInfo(callback: AsyncCallback
<AudioRendererInfo>
): void;
<br>
getRendererInfo(): Promise
<AudioRendererInfo>
; | 新增 |
| ohos.multimedia.audio | AudioRenderer | getRenderRate(callback: AsyncCallback
\<
AudioRendererRate>): void;
<br>
getRenderRate(): Promise
\
<
AudioRendererRate>; | 新增 |
| ohos.multimedia.audio | AudioRenderer | setRenderRate(rate: AudioRendererRate, callback: AsyncCallback
\<
void>): void;
<br>
setRenderRate(rate: AudioRendererRate): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioRenderer | getBufferSize(callback: AsyncCallback
\<
number>): void;
<br>
getBufferSize(): Promise
\
<
number>; | 新增 |
| ohos.multimedia.audio | AudioRenderer | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioRenderer | stop(callback: AsyncCallback
\<
void>): void;
<br>
stop(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioRenderer | pause(callback: AsyncCallback
\<
void>): void;
<br>
pause(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioRenderer | drain(callback: AsyncCallback
\<
void>): void;
<br>
drain(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioRenderer | getAudioTime(callback: AsyncCallback
\<
number>): void;
<br>
getAudioTime(): Promise
\
<
number>; | 新增 |
| ohos.multimedia.audio | AudioRenderer | write(buffer: ArrayBuffer, callback: AsyncCallback
\<
number>): void;
<br>
write(buffer: ArrayBuffer): Promise
\
<
number>; | 新增 |
| ohos.multimedia.audio | AudioRenderer | start(callback: AsyncCallback
\<
void>): void;
<br>
start(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioRenderer | getStreamInfo(callback: AsyncCallback
\<
AudioStreamInfo>): void;
<br>
getStreamInfo(): Promise
\
<
AudioStreamInfo>; | 新增 |
| ohos.multimedia.audio | AudioRenderer | getRendererInfo(callback: AsyncCallback
\<
AudioRendererInfo>): void;
<br>
getRendererInfo(): Promise
\
<
AudioRendererInfo>; | 新增 |
| ohos.multimedia.audio | AudioRenderer | readonly state: AudioState; | 新增 |
| ohos.multimedia.audio | DeviceChangeAction | deviceDescriptors: AudioDeviceDescriptors; | 新增 |
| ohos.multimedia.audio | DeviceChangeAction | type: DeviceChangeType; | 新增 |
...
...
@@ -330,22 +330,22 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
| ohos.multimedia.audio | InterruptAction | hint?: InterruptHint; | 新增 |
| ohos.multimedia.audio | InterruptAction | type?: InterruptType; | 新增 |
| ohos.multimedia.audio | InterruptAction | actionType: InterruptActionType; | 新增 |
| ohos.multimedia.audio | AudioManager | off(type: 'interrupt', interrupt: AudioInterrupt, callback?: Callback
<InterruptAction>
): void; | 新增 |
| ohos.multimedia.audio | AudioManager | on(type: 'interrupt', interrupt: AudioInterrupt, callback: Callback
<InterruptAction>
): void; | 新增 |
| ohos.multimedia.audio | AudioManager | off(type: 'deviceChange', callback?: Callback
<DeviceChangeAction>
): void; | 新增 |
| ohos.multimedia.audio | AudioManager | on(type: 'deviceChange', callback: Callback
<DeviceChangeAction>
): void; | 新增 |
| ohos.multimedia.audio | AudioManager | getAudioScene(callback: AsyncCallback
<AudioScene>
): void;
<br>
getAudioScene(): Promise
<AudioScene>
; | 新增 |
| ohos.multimedia.audio | AudioManager | isDeviceActive(deviceType: ActiveDeviceType, callback: AsyncCallback
<boolean>
): void;
<br>
isDeviceActive(deviceType: ActiveDeviceType): Promise
<boolean>
; | 新增 |
| ohos.multimedia.audio | AudioManager | setDeviceActive(deviceType: ActiveDeviceType, active: boolean, callback: AsyncCallback
<void>
): void;
<br>
setDeviceActive(deviceType: ActiveDeviceType, active: boolean): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioManager | getAudioParameter(key: string, callback: AsyncCallback
<string>
): void;
<br>
getAudioParameter(key: string): Promise
<string>
; | 新增 |
| ohos.multimedia.audio | AudioManager | setAudioParameter(key: string, value: string, callback: AsyncCallback
<void>
): void;
<br>
setAudioParameter(key: string, value: string): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioManager | getRingerMode(callback: AsyncCallback
<AudioRingMode>
): void;
<br>
getRingerMode(): Promise
<AudioRingMode>
; | 新增 |
| ohos.multimedia.audio | AudioManager | setRingerMode(mode: AudioRingMode, callback: AsyncCallback
<void>
): void;
<br>
setRingerMode(mode: AudioRingMode): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioManager | isMicrophoneMute(callback: AsyncCallback
<boolean>
): void;
<br>
isMicrophoneMute(): Promise
<boolean>
; | 新增 |
| ohos.multimedia.audio | AudioManager | setMicrophoneMute(mute: boolean, callback: AsyncCallback
<void>
): void;
<br>
setMicrophoneMute(mute: boolean): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioManager | isActive(volumeType: AudioVolumeType, callback: AsyncCallback
<boolean>
): void;
<br>
isActive(volumeType: AudioVolumeType): Promise
<boolean>
; | 新增 |
| ohos.multimedia.audio | AudioManager | isMute(volumeType: AudioVolumeType, callback: AsyncCallback
<boolean>
): void;
<br>
isMute(volumeType: AudioVolumeType): Promise
<boolean>
; | 新增 |
| ohos.multimedia.audio | AudioManager | mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback
<void>
): void;
<br>
mute(volumeType: AudioVolumeType, mute: boolean): Promise
<void>
; | 新增 |
| ohos.multimedia.audio | AudioManager | off(type: 'interrupt', interrupt: AudioInterrupt, callback?: Callback
\
<
InterruptAction>): void; | 新增 |
| ohos.multimedia.audio | AudioManager | on(type: 'interrupt', interrupt: AudioInterrupt, callback: Callback
\
<
InterruptAction>): void; | 新增 |
| ohos.multimedia.audio | AudioManager | off(type: 'deviceChange', callback?: Callback
\
<
DeviceChangeAction>): void; | 新增 |
| ohos.multimedia.audio | AudioManager | on(type: 'deviceChange', callback: Callback
\
<
DeviceChangeAction>): void; | 新增 |
| ohos.multimedia.audio | AudioManager | getAudioScene(callback: AsyncCallback
\<
AudioScene>): void;
<br>
getAudioScene(): Promise
\
<
AudioScene>; | 新增 |
| ohos.multimedia.audio | AudioManager | isDeviceActive(deviceType: ActiveDeviceType, callback: AsyncCallback
\<
boolean>): void;
<br>
isDeviceActive(deviceType: ActiveDeviceType): Promise
\
<
boolean>; | 新增 |
| ohos.multimedia.audio | AudioManager | setDeviceActive(deviceType: ActiveDeviceType, active: boolean, callback: AsyncCallback
\<
void>): void;
<br>
setDeviceActive(deviceType: ActiveDeviceType, active: boolean): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioManager | getAudioParameter(key: string, callback: AsyncCallback
\<
string>): void;
<br>
getAudioParameter(key: string): Promise
\
<
string>; | 新增 |
| ohos.multimedia.audio | AudioManager | setAudioParameter(key: string, value: string, callback: AsyncCallback
\<
void>): void;
<br>
setAudioParameter(key: string, value: string): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioManager | getRingerMode(callback: AsyncCallback
\<
AudioRingMode>): void;
<br>
getRingerMode(): Promise
\
<
AudioRingMode>; | 新增 |
| ohos.multimedia.audio | AudioManager | setRingerMode(mode: AudioRingMode, callback: AsyncCallback
\<
void>): void;
<br>
setRingerMode(mode: AudioRingMode): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioManager | isMicrophoneMute(callback: AsyncCallback
\<
boolean>): void;
<br>
isMicrophoneMute(): Promise
\
<
boolean>; | 新增 |
| ohos.multimedia.audio | AudioManager | setMicrophoneMute(mute: boolean, callback: AsyncCallback
\<
void>): void;
<br>
setMicrophoneMute(mute: boolean): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioManager | isActive(volumeType: AudioVolumeType, callback: AsyncCallback
\<
boolean>): void;
<br>
isActive(volumeType: AudioVolumeType): Promise
\
<
boolean>; | 新增 |
| ohos.multimedia.audio | AudioManager | isMute(volumeType: AudioVolumeType, callback: AsyncCallback
\<
boolean>): void;
<br>
isMute(volumeType: AudioVolumeType): Promise
\
<
boolean>; | 新增 |
| ohos.multimedia.audio | AudioManager | mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback
\<
void>): void;
<br>
mute(volumeType: AudioVolumeType, mute: boolean): Promise
\
<
void>; | 新增 |
| ohos.multimedia.audio | AudioScene | AUDIO_SCENE_VOICE_CHAT | 新增 |
| ohos.multimedia.audio | AudioScene | AUDIO_SCENE_DEFAULT = 0 | 新增 |
| ohos.multimedia.audio | DeviceChangeType | DISCONNECT = 1 | 新增 |
...
...
@@ -395,8 +395,8 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_12000 = 12000 | 新增 |
| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_11025 = 11025 | 新增 |
| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_8000 = 8000 | 新增 |
| ohos.multimedia.audio | AudioChannel | CHANNEL_2 = 0x1
<
< 1 | 新增 |
| ohos.multimedia.audio | AudioChannel | CHANNEL_1 = 0x1
<
< 0 | 新增 |
| ohos.multimedia.audio | AudioChannel | CHANNEL_2 = 0x1
\<\
<
1 | 新增 |
| ohos.multimedia.audio | AudioChannel | CHANNEL_1 = 0x1
\<\
<
0 | 新增 |
| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_S32LE = 3 | 新增 |
| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_S24LE = 2 | 新增 |
| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_S16LE = 1 | 新增 |
...
...
@@ -419,5 +419,5 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系
| ohos.multimedia.audio | AudioState | STATE_PREPARED | 新增 |
| ohos.multimedia.audio | AudioState | STATE_NEW | 新增 |
| ohos.multimedia.audio | AudioState | STATE_INVALID = -1 | 新增 |
| ohos.multimedia.audio | audio |
function createAudioRenderer(options: AudioRendererOptions, callback: AsyncCallback
<AudioRenderer>
): void;
<br>
function createAudioRenderer(options: AudioRendererOptions): Promise
<AudioRenderer>
; | 新增 |
| ohos.multimedia.audio | audio |
function createAudioCapturer(options: AudioCapturerOptions, callback: AsyncCallback
<AudioCapturer>
): void;
<br>
function createAudioCapturer(options: AudioCapturerOptions): Promise
<AudioCapturer>
; | 新增 |
| ohos.multimedia.audio | audio |
createAudioRenderer(options: AudioRendererOptions, callback: AsyncCallback
\<
AudioRenderer>): void;
<br>
createAudioRenderer(options: AudioRendererOptions): Promise
\
<
AudioRenderer>; | 新增 |
| ohos.multimedia.audio | audio |
createAudioCapturer(options: AudioCapturerOptions, callback: AsyncCallback
\<
AudioCapturer>): void;
<br>
createAudioCapturer(options: AudioCapturerOptions): Promise
\
<
AudioCapturer>; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multimedia_api-9-canary.md
浏览文件 @
e39dc96d
...
...
@@ -7,7 +7,7 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,媒体子
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.multimedia.audio | AudioRenderer | on(type: 'interrupt', callback: Callback
<InterruptEvent>
): void; | 新增 |
| ohos.multimedia.audio | AudioRenderer | on(type: 'interrupt', callback: Callback
\
<
InterruptEvent>): void; | 新增 |
| ohos.multimedia.audio | InterruptEvent | hintType: InterruptHint; | 新增 |
| ohos.multimedia.audio | InterruptEvent | forceType: InterruptForceType; | 新增 |
| ohos.multimedia.audio | InterruptEvent | eventType: InterruptType; | 新增 |
...
...
@@ -15,25 +15,25 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,媒体子
| ohos.multimedia.audio | InterruptForceType | INTERRUPT_FORCE = 0 | 新增 |
| ohos.multimedia.camera | VideoOutputError | code: VideoOutputErrorCode; | 新增 |
| ohos.multimedia.camera | VideoOutputErrorCode | ERROR_UNKNOWN = -1 | 新增 |
| ohos.multimedia.camera | VideoOutput | on(type: 'error', callback: ErrorCallback
<VideoOutputError>
): void; | 新增 |
| ohos.multimedia.camera | VideoOutput | on(type: 'frameEnd', callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.multimedia.camera | VideoOutput | on(type: 'frameStart', callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.multimedia.camera | VideoOutput | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | VideoOutput | stop(callback: AsyncCallback
<void>
): void;
<br>
stop(): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | VideoOutput | start(callback: AsyncCallback
<void>
): void;
<br>
start(): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | camera |
function createVideoOutput(surfaceId: string, callback: AsyncCallback
<VideoOutput>
): void;
<br>
function createVideoOutput(surfaceId: string): Promise
<VideoOutput>
; | 新增 |
| ohos.multimedia.camera | VideoOutput | on(type: 'error', callback: ErrorCallback
\
<
VideoOutputError>): void; | 新增 |
| ohos.multimedia.camera | VideoOutput | on(type: 'frameEnd', callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.multimedia.camera | VideoOutput | on(type: 'frameStart', callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.multimedia.camera | VideoOutput | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | VideoOutput | stop(callback: AsyncCallback
\<
void>): void;
<br>
stop(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | VideoOutput | start(callback: AsyncCallback
\<
void>): void;
<br>
start(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | camera |
createVideoOutput(surfaceId: string, callback: AsyncCallback
\<
VideoOutput>): void;
<br>
createVideoOutput(surfaceId: string): Promise
\
<
VideoOutput>; | 新增 |
| ohos.multimedia.camera | PhotoOutputError | code: PhotoOutputErrorCode; | 新增 |
| ohos.multimedia.camera | PhotoOutputErrorCode | ERROR_UNKNOWN = -1 | 新增 |
| ohos.multimedia.camera | CaptureEndInfo | frameCount: number; | 新增 |
| ohos.multimedia.camera | CaptureEndInfo | captureId: number; | 新增 |
| ohos.multimedia.camera | FrameShutterInfo | timestamp: number; | 新增 |
| ohos.multimedia.camera | FrameShutterInfo | captureId: number; | 新增 |
| ohos.multimedia.camera | PhotoOutput | on(type: 'error', callback: ErrorCallback
<PhotoOutputError>
): void; | 新增 |
| ohos.multimedia.camera | PhotoOutput | on(type: 'captureEnd', callback: AsyncCallback
<CaptureEndInfo>
): void; | 新增 |
| ohos.multimedia.camera | PhotoOutput | on(type: 'frameShutter', callback: AsyncCallback
<FrameShutterInfo>
): void; | 新增 |
| ohos.multimedia.camera | PhotoOutput | on(type: 'captureStart', callback: AsyncCallback
<number>
): void; | 新增 |
| ohos.multimedia.camera | PhotoOutput | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | PhotoOutput | capture(callback: AsyncCallback
<void>
): void;
<br>
capture(setting: PhotoCaptureSetting, callback: AsyncCallback
<void>
): void;
<br>
capture(setting?: PhotoCaptureSetting): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | PhotoOutput | on(type: 'error', callback: ErrorCallback
\
<
PhotoOutputError>): void; | 新增 |
| ohos.multimedia.camera | PhotoOutput | on(type: 'captureEnd', callback: AsyncCallback
\
<
CaptureEndInfo>): void; | 新增 |
| ohos.multimedia.camera | PhotoOutput | on(type: 'frameShutter', callback: AsyncCallback
\
<
FrameShutterInfo>): void; | 新增 |
| ohos.multimedia.camera | PhotoOutput | on(type: 'captureStart', callback: AsyncCallback
\
<
number>): void; | 新增 |
| ohos.multimedia.camera | PhotoOutput | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | PhotoOutput | capture(callback: AsyncCallback
\<
void>): void;
<br>
capture(setting: PhotoCaptureSetting, callback: AsyncCallback
\<
void>): void;
<br>
capture(setting?: PhotoCaptureSetting): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | PhotoCaptureSetting | rotation?: ImageRotation; | 新增 |
| ohos.multimedia.camera | PhotoCaptureSetting | quality?: QualityLevel; | 新增 |
| ohos.multimedia.camera | QualityLevel | QUALITY_LEVEL_LOW | 新增 |
...
...
@@ -43,27 +43,27 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,媒体子
| ohos.multimedia.camera | ImageRotation | ROTATION_180 = 180 | 新增 |
| ohos.multimedia.camera | ImageRotation | ROTATION_90 = 90 | 新增 |
| ohos.multimedia.camera | ImageRotation | ROTATION_0 = 0 | 新增 |
| ohos.multimedia.camera | camera |
function createPhotoOutput(surfaceId: string, callback: AsyncCallback
<PhotoOutput>
): void;
<br>
function createPhotoOutput(surfaceId: string): Promise
<PhotoOutput>
; | 新增 |
| ohos.multimedia.camera | camera |
createPhotoOutput(surfaceId: string, callback: AsyncCallback
\<
PhotoOutput>): void;
<br>
createPhotoOutput(surfaceId: string): Promise
\
<
PhotoOutput>; | 新增 |
| ohos.multimedia.camera | PreviewOutputError | code: PreviewOutputErrorCode; | 新增 |
| ohos.multimedia.camera | PreviewOutputErrorCode | ERROR_UNKNOWN = -1 | 新增 |
| ohos.multimedia.camera | PreviewOutput | on(type: 'error', callback: ErrorCallback
<PreviewOutputError>
): void; | 新增 |
| ohos.multimedia.camera | PreviewOutput | on(type: 'frameEnd', callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.multimedia.camera | PreviewOutput | on(type: 'frameStart', callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.multimedia.camera | PreviewOutput | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | camera |
function createPreviewOutput(surfaceId: string, callback: AsyncCallback
<PreviewOutput>
): void;
<br>
function createPreviewOutput(surfaceId: string): Promise
<PreviewOutput>
; | 新增 |
| ohos.multimedia.camera | PreviewOutput | on(type: 'error', callback: ErrorCallback
\
<
PreviewOutputError>): void; | 新增 |
| ohos.multimedia.camera | PreviewOutput | on(type: 'frameEnd', callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.multimedia.camera | PreviewOutput | on(type: 'frameStart', callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.multimedia.camera | PreviewOutput | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | camera |
createPreviewOutput(surfaceId: string, callback: AsyncCallback
\<
PreviewOutput>): void;
<br>
createPreviewOutput(surfaceId: string): Promise
\
<
PreviewOutput>; | 新增 |
| ohos.multimedia.camera | CaptureSessionError | code: CaptureSessionErrorCode; | 新增 |
| ohos.multimedia.camera | CaptureSessionErrorCode | ERROR_UNKNOWN = -1 | 新增 |
| ohos.multimedia.camera | CaptureSession | on(type: 'error', callback: ErrorCallback
<CaptureSessionError>
): void; | 新增 |
| ohos.multimedia.camera | CaptureSession | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | CaptureSession | stop(callback: AsyncCallback
<void>
): void;
<br>
stop(): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | CaptureSession | start(callback: AsyncCallback
<void>
): void;
<br>
start(): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | CaptureSession | removeOutput(previewOutput: PreviewOutput, callback: AsyncCallback
<void>
): void;
<br>
removeOutput(previewOutput: PreviewOutput): Promise
<void>
;
<br>
removeOutput(photoOutput: PhotoOutput, callback: AsyncCallback
<void>
): void;
<br>
removeOutput(photoOutput: PhotoOutput): Promise
<void>
;
<br>
removeOutput(videoOutput: VideoOutput, callback: AsyncCallback
<void>
): void;
<br>
removeOutput(videoOutput: VideoOutput): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | CaptureSession | removeInput(cameraInput: CameraInput, callback: AsyncCallback
<void>
): void;
<br>
removeInput(cameraInput: CameraInput): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | CaptureSession | addOutput(previewOutput: PreviewOutput, callback: AsyncCallback
<void>
): void;
<br>
addOutput(previewOutput: PreviewOutput): Promise
<void>
;
<br>
addOutput(photoOutput: PhotoOutput, callback: AsyncCallback
<void>
): void;
<br>
addOutput(photoOutput: PhotoOutput): Promise
<void>
;
<br>
addOutput(videoOutput: VideoOutput, callback: AsyncCallback
<void>
): void;
<br>
addOutput(videoOutput: VideoOutput): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | CaptureSession | addInput(cameraInput: CameraInput, callback: AsyncCallback
<void>
): void;
<br>
addInput(cameraInput: CameraInput): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | CaptureSession | commitConfig(callback: AsyncCallback
<void>
): void;
<br>
commitConfig(): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | CaptureSession | beginConfig(callback: AsyncCallback
<void>
): void;
<br>
beginConfig(): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | camera |
function createCaptureSession(context: Context, callback: AsyncCallback
<CaptureSession>
): void;
<br>
function createCaptureSession(context: Context): Promise
<CaptureSession>
; | 新增 |
| ohos.multimedia.camera | CaptureSession | on(type: 'error', callback: ErrorCallback
\
<
CaptureSessionError>): void; | 新增 |
| ohos.multimedia.camera | CaptureSession | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | CaptureSession | stop(callback: AsyncCallback
\<
void>): void;
<br>
stop(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | CaptureSession | start(callback: AsyncCallback
\<
void>): void;
<br>
start(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | CaptureSession | removeOutput(previewOutput: PreviewOutput, callback: AsyncCallback
\<
void>): void;
<br>
removeOutput(previewOutput: PreviewOutput): Promise
\<
void>;
<br>
removeOutput(photoOutput: PhotoOutput, callback: AsyncCallback
\<
void>): void;
<br>
removeOutput(photoOutput: PhotoOutput): Promise
\<
void>;
<br>
removeOutput(videoOutput: VideoOutput, callback: AsyncCallback
\<
void>): void;
<br>
removeOutput(videoOutput: VideoOutput): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | CaptureSession | removeInput(cameraInput: CameraInput, callback: AsyncCallback
\<
void>): void;
<br>
removeInput(cameraInput: CameraInput): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | CaptureSession | addOutput(previewOutput: PreviewOutput, callback: AsyncCallback
\<
void>): void;
<br>
addOutput(previewOutput: PreviewOutput): Promise
\<
void>;
<br>
addOutput(photoOutput: PhotoOutput, callback: AsyncCallback
\<
void>): void;
<br>
addOutput(photoOutput: PhotoOutput): Promise
\<
void>;
<br>
addOutput(videoOutput: VideoOutput, callback: AsyncCallback
\<
void>): void;
<br>
addOutput(videoOutput: VideoOutput): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | CaptureSession | addInput(cameraInput: CameraInput, callback: AsyncCallback
\<
void>): void;
<br>
addInput(cameraInput: CameraInput): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | CaptureSession | commitConfig(callback: AsyncCallback
\<
void>): void;
<br>
commitConfig(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | CaptureSession | beginConfig(callback: AsyncCallback
\<
void>): void;
<br>
beginConfig(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | camera |
createCaptureSession(context: Context, callback: AsyncCallback
\<
CaptureSession>): void;
<br>
createCaptureSession(context: Context): Promise
\
<
CaptureSession>; | 新增 |
| ohos.multimedia.camera | FocusState | FOCUS_STATE_UNFOCUSED | 新增 |
| ohos.multimedia.camera | FocusState | FOCUS_STATE_FOCUSED | 新增 |
| ohos.multimedia.camera | FocusState | FOCUS_STATE_SCAN = 0 | 新增 |
...
...
@@ -77,20 +77,20 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,媒体子
| ohos.multimedia.camera | FlashMode | FLASH_MODE_CLOSE = 0 | 新增 |
| ohos.multimedia.camera | CameraInputError | code: CameraInputErrorCode; | 新增 |
| ohos.multimedia.camera | CameraInputErrorCode | ERROR_UNKNOWN = -1 | 新增 |
| ohos.multimedia.camera | CameraInput | on(type: 'error', callback: ErrorCallback
<CameraInputError>
): void; | 新增 |
| ohos.multimedia.camera | CameraInput | on(type: 'focusStateChange', callback: AsyncCallback
<FocusState>
): void; | 新增 |
| ohos.multimedia.camera | CameraInput | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | CameraInput | setZoomRatio(zoomRatio: number, callback: AsyncCallback
<void>
): void;
<br>
setZoomRatio(zoomRatio: number): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | CameraInput | getZoomRatio(callback: AsyncCallback
<number>
): void;
<br>
getZoomRatio(): Promise
<number>
; | 新增 |
| ohos.multimedia.camera | CameraInput | getZoomRatioRange(callback: AsyncCallback
<Array
<
number
>
>): void;
<br>
getZoomRatioRange(): Promise
<Array
<
number
>
>; | 新增 |
| ohos.multimedia.camera | CameraInput | setFocusMode(afMode: FocusMode, callback: AsyncCallback
<void>
): void;
<br>
setFocusMode(afMode: FocusMode): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | CameraInput | getFocusMode(callback: AsyncCallback
<FocusMode>
): void;
<br>
getFocusMode(): Promise
<FocusMode>
; | 新增 |
| ohos.multimedia.camera | CameraInput | isFocusModeSupported(afMode: FocusMode, callback: AsyncCallback
<boolean>
): void;
<br>
isFocusModeSupported(afMode: FocusMode): Promise
<boolean>
; | 新增 |
| ohos.multimedia.camera | CameraInput | setFlashMode(flashMode: FlashMode, callback: AsyncCallback
<void>
): void;
<br>
setFlashMode(flashMode: FlashMode): Promise
<void>
; | 新增 |
| ohos.multimedia.camera | CameraInput | getFlashMode(callback: AsyncCallback
<FlashMode>
): void;
<br>
getFlashMode(): Promise
<FlashMode>
; | 新增 |
| ohos.multimedia.camera | CameraInput | isFlashModeSupported(flashMode: FlashMode, callback: AsyncCallback
<boolean>
): void;
<br>
isFlashModeSupported(flashMode: FlashMode): Promise
<boolean>
; | 新增 |
| ohos.multimedia.camera | CameraInput | hasFlash(callback: AsyncCallback
<boolean>
): void;
<br>
hasFlash(): Promise
<boolean>
; | 新增 |
| ohos.multimedia.camera | CameraInput | getCameraId(callback: AsyncCallback
<string>
): void;
<br>
getCameraId(): Promise
<string>
; | 新增 |
| ohos.multimedia.camera | CameraInput | on(type: 'error', callback: ErrorCallback
\
<
CameraInputError>): void; | 新增 |
| ohos.multimedia.camera | CameraInput | on(type: 'focusStateChange', callback: AsyncCallback
\
<
FocusState>): void; | 新增 |
| ohos.multimedia.camera | CameraInput | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | CameraInput | setZoomRatio(zoomRatio: number, callback: AsyncCallback
\<
void>): void;
<br>
setZoomRatio(zoomRatio: number): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | CameraInput | getZoomRatio(callback: AsyncCallback
\<
number>): void;
<br>
getZoomRatio(): Promise
\
<
number>; | 新增 |
| ohos.multimedia.camera | CameraInput | getZoomRatioRange(callback: AsyncCallback
\<
Array
\<
number>>): void;
<br>
getZoomRatioRange(): Promise
\<
Array
\
<
number>>; | 新增 |
| ohos.multimedia.camera | CameraInput | setFocusMode(afMode: FocusMode, callback: AsyncCallback
\<
void>): void;
<br>
setFocusMode(afMode: FocusMode): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | CameraInput | getFocusMode(callback: AsyncCallback
\<
FocusMode>): void;
<br>
getFocusMode(): Promise
\
<
FocusMode>; | 新增 |
| ohos.multimedia.camera | CameraInput | isFocusModeSupported(afMode: FocusMode, callback: AsyncCallback
\<
boolean>): void;
<br>
isFocusModeSupported(afMode: FocusMode): Promise
\
<
boolean>; | 新增 |
| ohos.multimedia.camera | CameraInput | setFlashMode(flashMode: FlashMode, callback: AsyncCallback
\<
void>): void;
<br>
setFlashMode(flashMode: FlashMode): Promise
\
<
void>; | 新增 |
| ohos.multimedia.camera | CameraInput | getFlashMode(callback: AsyncCallback
\<
FlashMode>): void;
<br>
getFlashMode(): Promise
\
<
FlashMode>; | 新增 |
| ohos.multimedia.camera | CameraInput | isFlashModeSupported(flashMode: FlashMode, callback: AsyncCallback
\<
boolean>): void;
<br>
isFlashModeSupported(flashMode: FlashMode): Promise
\
<
boolean>; | 新增 |
| ohos.multimedia.camera | CameraInput | hasFlash(callback: AsyncCallback
\<
boolean>): void;
<br>
hasFlash(): Promise
\
<
boolean>; | 新增 |
| ohos.multimedia.camera | CameraInput | getCameraId(callback: AsyncCallback
\<
string>): void;
<br>
getCameraId(): Promise
\
<
string>; | 新增 |
| ohos.multimedia.camera | Size | width: number; | 新增 |
| ohos.multimedia.camera | Size | height: number; | 新增 |
| ohos.multimedia.camera | Camera | readonly connectionType: ConnectionType; | 新增 |
...
...
@@ -110,28 +110,28 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,媒体子
| ohos.multimedia.camera | CameraPosition | CAMERA_POSITION_UNSPECIFIED = 0 | 新增 |
| ohos.multimedia.camera | CameraStatusInfo | status: CameraStatus; | 新增 |
| ohos.multimedia.camera | CameraStatusInfo | camera: Camera; | 新增 |
| ohos.multimedia.camera | CameraManager | on(type: 'cameraStatus', callback: AsyncCallback
<CameraStatusInfo>
): void; | 新增 |
| ohos.multimedia.camera | CameraManager | createCameraInput(cameraId: string, callback: AsyncCallback
<CameraInput>
): void;
<br>
createCameraInput(cameraId: string): Promise
<CameraInput>
;
<br>
createCameraInput(position: CameraPosition, type: CameraType, callback: AsyncCallback
<CameraInput>
): void;
<br>
createCameraInput(position: CameraPosition, type: CameraType): Promise
<CameraInput>
; | 新增 |
| ohos.multimedia.camera | CameraManager | getCameras(callback: AsyncCallback
<Array
<
Camera
>
>): void;
<br>
getCameras(): Promise
<Array
<
Camera
>
>; | 新增 |
| ohos.multimedia.camera | CameraManager | on(type: 'cameraStatus', callback: AsyncCallback
\
<
CameraStatusInfo>): void; | 新增 |
| ohos.multimedia.camera | CameraManager | createCameraInput(cameraId: string, callback: AsyncCallback
\<
CameraInput>): void;
<br>
createCameraInput(cameraId: string): Promise
\<
CameraInput>;
<br>
createCameraInput(position: CameraPosition, type: CameraType, callback: AsyncCallback
\<
CameraInput>): void;
<br>
createCameraInput(position: CameraPosition, type: CameraType): Promise
\
<
CameraInput>; | 新增 |
| ohos.multimedia.camera | CameraManager | getCameras(callback: AsyncCallback
\<
Array
\<
Camera>>): void;
<br>
getCameras(): Promise
\<
Array
\
<
Camera>>; | 新增 |
| ohos.multimedia.camera | CameraStatus | CAMERA_STATUS_UNAVAILABLE | 新增 |
| ohos.multimedia.camera | CameraStatus | CAMERA_STATUS_AVAILABLE | 新增 |
| ohos.multimedia.camera | CameraStatus | CAMERA_STATUS_DISAPPEAR | 新增 |
| ohos.multimedia.camera | CameraStatus | CAMERA_STATUS_APPEAR = 0 | 新增 |
| ohos.multimedia.camera | camera |
function getCameraManager(context: Context, callback: AsyncCallback
<CameraManager>
): void;
<br>
function getCameraManager(context: Context): Promise
<CameraManager>
; | 新增 |
| ohos.multimedia.image | ImageReceiver | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.image | ImageReceiver | on(type: 'imageArrival', callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.multimedia.image | ImageReceiver | readNextImage(callback: AsyncCallback
<Image>
): void;
<br>
readNextImage(): Promise
<Image>
; | 新增 |
| ohos.multimedia.image | ImageReceiver | readLatestImage(callback: AsyncCallback
<Image>
): void;
<br>
readLatestImage(): Promise
<Image>
; | 新增 |
| ohos.multimedia.image | ImageReceiver | getReceivingSurfaceId(callback: AsyncCallback
<string>
): void;
<br>
getReceivingSurfaceId(): Promise
<string>
; | 新增 |
| ohos.multimedia.camera | camera |
getCameraManager(context: Context, callback: AsyncCallback
\<
CameraManager>): void;
<br>
getCameraManager(context: Context): Promise
\
<
CameraManager>; | 新增 |
| ohos.multimedia.image | ImageReceiver | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.image | ImageReceiver | on(type: 'imageArrival', callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.multimedia.image | ImageReceiver | readNextImage(callback: AsyncCallback
\<
Image>): void;
<br>
readNextImage(): Promise
\
<
Image>; | 新增 |
| ohos.multimedia.image | ImageReceiver | readLatestImage(callback: AsyncCallback
\<
Image>): void;
<br>
readLatestImage(): Promise
\
<
Image>; | 新增 |
| ohos.multimedia.image | ImageReceiver | getReceivingSurfaceId(callback: AsyncCallback
\<
string>): void;
<br>
getReceivingSurfaceId(): Promise
\
<
string>; | 新增 |
| ohos.multimedia.image | ImageReceiver | readonly format: ImageFormat; | 新增 |
| ohos.multimedia.image | ImageReceiver | readonly capacity: number; | 新增 |
| ohos.multimedia.image | ImageReceiver | readonly size: Size; | 新增 |
| ohos.multimedia.image | Image | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.image | Image | getComponent(componentType: ComponentType, callback: AsyncCallback
<Component>
): void;
<br>
getComponent(componentType: ComponentType): Promise
<Component>
; | 新增 |
| ohos.multimedia.image | Image | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.image | Image | getComponent(componentType: ComponentType, callback: AsyncCallback
\<
Component>): void;
<br>
getComponent(componentType: ComponentType): Promise
\
<
Component>; | 新增 |
| ohos.multimedia.image | Image | readonly format: number; | 新增 |
| ohos.multimedia.image | Image | readonly size: Size; | 新增 |
| ohos.multimedia.image | Image | clipRect: Region; | 新增 |
| ohos.multimedia.image | image |
function
createImageReceiver(width: number, height: number, format: number, capacity: number): ImageReceiver; | 新增 |
| ohos.multimedia.image | image | createImageReceiver(width: number, height: number, format: number, capacity: number): ImageReceiver; | 新增 |
| ohos.multimedia.image | Component | readonly byteBuffer: ArrayBuffer; | 新增 |
| ohos.multimedia.image | Component | readonly pixelStride: number; | 新增 |
| ohos.multimedia.image | Component | readonly rowStride: number; | 新增 |
...
...
@@ -164,12 +164,12 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,媒体子
| ohos.multimedia.media | VideoRecorderProfile | readonly audioBitrate: number; | 新增 |
| ohos.multimedia.media | VideoRecorder | readonly state: VideoRecordState; | 新增 |
| ohos.multimedia.media | VideoRecorder | on(type: 'error', callback: ErrorCallback): void; | 新增 |
| ohos.multimedia.media | VideoRecorder | reset(callback: AsyncCallback
<void>
): void;
<br>
reset(): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoRecorder | release(callback: AsyncCallback
<void>
): void;
<br>
release(): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoRecorder | stop(callback: AsyncCallback
<void>
): void;
<br>
stop(): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoRecorder | resume(callback: AsyncCallback
<void>
): void;
<br>
resume(): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoRecorder | pause(callback: AsyncCallback
<void>
): void;
<br>
pause(): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoRecorder | start(callback: AsyncCallback
<void>
): void;
<br>
start(): Promise
<void>
; | 新增 |
| ohos.multimedia.media | VideoRecorder | getInputSurface(callback: AsyncCallback
<string>
): void;
<br>
getInputSurface(): Promise
<string>
; | 新增 |
| ohos.multimedia.media | VideoRecorder | prepare(config: VideoRecorderConfig, callback: AsyncCallback
<void>
): void;
<br>
prepare(config: VideoRecorderConfig): Promise
<void>
; | 新增 |
| ohos.multimedia.media | media |
function createVideoRecorder(callback: AsyncCallback
<VideoRecorder>
): void;
<br>
function createVideoRecorder(): Promise
<VideoRecorder>
; | 新增 |
| ohos.multimedia.media | VideoRecorder | reset(callback: AsyncCallback
\<
void>): void;
<br>
reset(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | VideoRecorder | release(callback: AsyncCallback
\<
void>): void;
<br>
release(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | VideoRecorder | stop(callback: AsyncCallback
\<
void>): void;
<br>
stop(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | VideoRecorder | resume(callback: AsyncCallback
\<
void>): void;
<br>
resume(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | VideoRecorder | pause(callback: AsyncCallback
\<
void>): void;
<br>
pause(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | VideoRecorder | start(callback: AsyncCallback
\<
void>): void;
<br>
start(): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | VideoRecorder | getInputSurface(callback: AsyncCallback
\<
string>): void;
<br>
getInputSurface(): Promise
\
<
string>; | 新增 |
| ohos.multimedia.media | VideoRecorder | prepare(config: VideoRecorderConfig, callback: AsyncCallback
\<
void>): void;
<br>
prepare(config: VideoRecorderConfig): Promise
\
<
void>; | 新增 |
| ohos.multimedia.media | media |
createVideoRecorder(callback: AsyncCallback
\<
VideoRecorder>): void;
<br>
createVideoRecorder(): Promise
\
<
VideoRecorder>; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-network.md
浏览文件 @
e39dc96d
...
...
@@ -8,34 +8,34 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,网络管理
|---|---|---|---|
| ohos.net.webSocket | WebSocket | off(type: 'error', callback?: ErrorCallback): void; | 新增 |
| ohos.net.webSocket | WebSocket | on(type: 'error', callback: ErrorCallback): void; | 新增 |
| ohos.net.webSocket | WebSocket | off(type: 'close', callback?: AsyncCallback
<
{
code:
number
,
reason:
string
}
>
): void; | 新增 |
| ohos.net.webSocket | WebSocket | on(type: 'close', callback: AsyncCallback
<
{
code:
number
,
reason:
string
}
>
): void; | 新增 |
| ohos.net.webSocket | WebSocket | off(type: 'message', callback?: AsyncCallback
<string
\|
ArrayBuffer
>
): void; | 新增 |
| ohos.net.webSocket | WebSocket | on(type: 'message', callback: AsyncCallback
<string
\|
ArrayBuffer
>
): void; | 新增 |
| ohos.net.webSocket | WebSocket | off(type: 'open', callback?: AsyncCallback
<Object>
): void; | 新增 |
| ohos.net.webSocket | WebSocket | on(type: 'open', callback: AsyncCallback
<Object>
): void; | 新增 |
| ohos.net.webSocket | WebSocket | close(callback: AsyncCallback
<boolean>
): void;
<br>
close(options: WebSocketCloseOptions, callback: AsyncCallback
<boolean>
): void;
<br>
close(options?: WebSocketCloseOptions): Promise
<boolean>
; | 新增 |
| ohos.net.webSocket | WebSocket | send(data: string
\|
ArrayBuffer, callback: AsyncCallback
<boolean>
): void;
<br>
send(data: string
\|
ArrayBuffer): Promise
<boolean>
; | 新增 |
| ohos.net.webSocket | WebSocket | connect(url: string, callback: AsyncCallback
<boolean>
): void;
<br>
connect(url: string, options: WebSocketRequestOptions, callback: AsyncCallback
<boolean>
): void;
<br>
connect(url: string, options?: WebSocketRequestOptions): Promise
<boolean>
; | 新增 |
| ohos.net.webSocket | WebSocket | off(type: 'close', callback?: AsyncCallback
\
<
{ code: number, reason: string }>): void; | 新增 |
| ohos.net.webSocket | WebSocket | on(type: 'close', callback: AsyncCallback
\
<
{ code: number, reason: string }>): void; | 新增 |
| ohos.net.webSocket | WebSocket | off(type: 'message', callback?: AsyncCallback
\
<
string
\|
ArrayBuffer>): void; | 新增 |
| ohos.net.webSocket | WebSocket | on(type: 'message', callback: AsyncCallback
\
<
string
\|
ArrayBuffer>): void; | 新增 |
| ohos.net.webSocket | WebSocket | off(type: 'open', callback?: AsyncCallback
\
<
Object>): void; | 新增 |
| ohos.net.webSocket | WebSocket | on(type: 'open', callback: AsyncCallback
\
<
Object>): void; | 新增 |
| ohos.net.webSocket | WebSocket | close(callback: AsyncCallback
\<
boolean>): void;
<br>
close(options: WebSocketCloseOptions, callback: AsyncCallback
\<
boolean>): void;
<br>
close(options?: WebSocketCloseOptions): Promise
\
<
boolean>; | 新增 |
| ohos.net.webSocket | WebSocket | send(data: string
\|
ArrayBuffer, callback: AsyncCallback
\<
boolean>): void;
<br>
send(data: string
\|
ArrayBuffer): Promise
\
<
boolean>; | 新增 |
| ohos.net.webSocket | WebSocket | connect(url: string, callback: AsyncCallback
\<
boolean>): void;
<br>
connect(url: string, options: WebSocketRequestOptions, callback: AsyncCallback
\<
boolean>): void;
<br>
connect(url: string, options?: WebSocketRequestOptions): Promise
\
<
boolean>; | 新增 |
| ohos.net.webSocket | WebSocketCloseOptions | reason?: string; | 新增 |
| ohos.net.webSocket | WebSocketCloseOptions | code?: number; | 新增 |
| ohos.net.webSocket | WebSocketRequestOptions | header?: Object; | 新增 |
| ohos.net.webSocket | webSocket |
function
createWebSocket(): WebSocket; | 新增 |
| ohos.net.webSocket | webSocket | createWebSocket(): WebSocket; | 新增 |
| ohos.net.socket | TCPSocket | off(type: 'error', callback?: ErrorCallback): void; | 新增 |
| ohos.net.socket | TCPSocket | on(type: 'error', callback: ErrorCallback): void; | 新增 |
| ohos.net.socket | TCPSocket | off(type: 'connect'
\|
'close', callback?: Callback
<void>
): void; | 新增 |
| ohos.net.socket | TCPSocket | off(type: 'connect'
\|
'close', callback?: Callback
<void>
): void; | 新增 |
| ohos.net.socket | TCPSocket | on(type: 'connect'
\|
'close', callback: Callback
<void>
): void; | 新增 |
| ohos.net.socket | TCPSocket | on(type: 'connect'
\|
'close', callback: Callback
<void>
): void; | 新增 |
| ohos.net.socket | TCPSocket | off(type: 'message', callback?: Callback
<
{
message:
ArrayBuffer
,
remoteInfo:
SocketRemoteInfo
}
>
): void; | 新增 |
| ohos.net.socket | TCPSocket | on(type: 'message', callback: Callback
<
{
message:
ArrayBuffer
,
remoteInfo:
SocketRemoteInfo
}
>
): void; | 新增 |
| ohos.net.socket | TCPSocket | setExtraOptions(options: TCPExtraOptions, callback: AsyncCallback
<void>
): void;
<br>
setExtraOptions(options: TCPExtraOptions): Promise
<void>
; | 新增 |
| ohos.net.socket | TCPSocket | getState(callback: AsyncCallback
<SocketStateBase>
): void;
<br>
getState(): Promise
<SocketStateBase>
; | 新增 |
| ohos.net.socket | TCPSocket | getRemoteAddress(callback: AsyncCallback
<NetAddress>
): void;
<br>
getRemoteAddress(): Promise
<NetAddress>
; | 新增 |
| ohos.net.socket | TCPSocket | close(callback: AsyncCallback
<void>
): void;
<br>
close(): Promise
<void>
; | 新增 |
| ohos.net.socket | TCPSocket | send(options: TCPSendOptions, callback: AsyncCallback
<void>
): void;
<br>
send(options: TCPSendOptions): Promise
<void>
; | 新增 |
| ohos.net.socket | TCPSocket | connect(options: TCPConnectOptions, callback: AsyncCallback
<void>
): void;
<br>
connect(options: TCPConnectOptions): Promise
<void>
; | 新增 |
| ohos.net.socket | TCPSocket | bind(address: NetAddress, callback: AsyncCallback
<void>
): void;
<br>
bind(address: NetAddress): Promise
<void>
; | 新增 |
| ohos.net.socket | TCPSocket | off(type: 'connect'
\|
'close', callback?: Callback
\
<
void>): void; | 新增 |
| ohos.net.socket | TCPSocket | off(type: 'connect'
\|
'close', callback?: Callback
\
<
void>): void; | 新增 |
| ohos.net.socket | TCPSocket | on(type: 'connect'
\|
'close', callback: Callback
\
<
void>): void; | 新增 |
| ohos.net.socket | TCPSocket | on(type: 'connect'
\|
'close', callback: Callback
\
<
void>): void; | 新增 |
| ohos.net.socket | TCPSocket | off(type: 'message', callback?: Callback
\
<
{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | 新增 |
| ohos.net.socket | TCPSocket | on(type: 'message', callback: Callback
\
<
{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | 新增 |
| ohos.net.socket | TCPSocket | setExtraOptions(options: TCPExtraOptions, callback: AsyncCallback
\<
void>): void;
<br>
setExtraOptions(options: TCPExtraOptions): Promise
\
<
void>; | 新增 |
| ohos.net.socket | TCPSocket | getState(callback: AsyncCallback
\<
SocketStateBase>): void;
<br>
getState(): Promise
\
<
SocketStateBase>; | 新增 |
| ohos.net.socket | TCPSocket | getRemoteAddress(callback: AsyncCallback
\<
NetAddress>): void;
<br>
getRemoteAddress(): Promise
\
<
NetAddress>; | 新增 |
| ohos.net.socket | TCPSocket | close(callback: AsyncCallback
\<
void>): void;
<br>
close(): Promise
\
<
void>; | 新增 |
| ohos.net.socket | TCPSocket | send(options: TCPSendOptions, callback: AsyncCallback
\<
void>): void;
<br>
send(options: TCPSendOptions): Promise
\
<
void>; | 新增 |
| ohos.net.socket | TCPSocket | connect(options: TCPConnectOptions, callback: AsyncCallback
\<
void>): void;
<br>
connect(options: TCPConnectOptions): Promise
\
<
void>; | 新增 |
| ohos.net.socket | TCPSocket | bind(address: NetAddress, callback: AsyncCallback
\<
void>): void;
<br>
bind(address: NetAddress): Promise
\
<
void>; | 新增 |
| ohos.net.socket | TCPExtraOptions | socketLinger: {on: boolean, linger: number}; | 新增 |
| ohos.net.socket | TCPExtraOptions | TCPNoDelay?: boolean; | 新增 |
| ohos.net.socket | TCPExtraOptions | OOBInline?: boolean; | 新增 |
...
...
@@ -46,17 +46,17 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,网络管理
| ohos.net.socket | TCPConnectOptions | address: NetAddress; | 新增 |
| ohos.net.socket | UDPSocket | off(type: 'error', callback?: ErrorCallback): void; | 新增 |
| ohos.net.socket | UDPSocket | on(type: 'error', callback: ErrorCallback): void; | 新增 |
| ohos.net.socket | UDPSocket | off(type: 'listening'
\|
'close', callback?: Callback
<void>
): void; | 新增 |
| ohos.net.socket | UDPSocket | off(type: 'listening'
\|
'close', callback?: Callback
<void>
): void; | 新增 |
| ohos.net.socket | UDPSocket | on(type: 'listening'
\|
'close', callback: Callback
<void>
): void; | 新增 |
| ohos.net.socket | UDPSocket | on(type: 'listening'
\|
'close', callback: Callback
<void>
): void; | 新增 |
| ohos.net.socket | UDPSocket | off(type: 'message', callback?: Callback
<
{
message:
ArrayBuffer
,
remoteInfo:
SocketRemoteInfo
}
>
): void; | 新增 |
| ohos.net.socket | UDPSocket | on(type: 'message', callback: Callback
<
{
message:
ArrayBuffer
,
remoteInfo:
SocketRemoteInfo
}
>
): void; | 新增 |
| ohos.net.socket | UDPSocket | setExtraOptions(options: UDPExtraOptions, callback: AsyncCallback
<void>
): void;
<br>
setExtraOptions(options: UDPExtraOptions): Promise
<void>
; | 新增 |
| ohos.net.socket | UDPSocket | getState(callback: AsyncCallback
<SocketStateBase>
): void;
<br>
getState(): Promise
<SocketStateBase>
; | 新增 |
| ohos.net.socket | UDPSocket | close(callback: AsyncCallback
<void>
): void;
<br>
close(): Promise
<void>
; | 新增 |
| ohos.net.socket | UDPSocket | send(options: UDPSendOptions, callback: AsyncCallback
<void>
): void;
<br>
send(options: UDPSendOptions): Promise
<void>
; | 新增 |
| ohos.net.socket | UDPSocket | bind(address: NetAddress, callback: AsyncCallback
<void>
): void;
<br>
bind(address: NetAddress): Promise
<void>
; | 新增 |
| ohos.net.socket | UDPSocket | off(type: 'listening'
\|
'close', callback?: Callback
\
<
void>): void; | 新增 |
| ohos.net.socket | UDPSocket | off(type: 'listening'
\|
'close', callback?: Callback
\
<
void>): void; | 新增 |
| ohos.net.socket | UDPSocket | on(type: 'listening'
\|
'close', callback: Callback
\
<
void>): void; | 新增 |
| ohos.net.socket | UDPSocket | on(type: 'listening'
\|
'close', callback: Callback
\
<
void>): void; | 新增 |
| ohos.net.socket | UDPSocket | off(type: 'message', callback?: Callback
\
<
{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | 新增 |
| ohos.net.socket | UDPSocket | on(type: 'message', callback: Callback
\
<
{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | 新增 |
| ohos.net.socket | UDPSocket | setExtraOptions(options: UDPExtraOptions, callback: AsyncCallback
\<
void>): void;
<br>
setExtraOptions(options: UDPExtraOptions): Promise
\
<
void>; | 新增 |
| ohos.net.socket | UDPSocket | getState(callback: AsyncCallback
\<
SocketStateBase>): void;
<br>
getState(): Promise
\
<
SocketStateBase>; | 新增 |
| ohos.net.socket | UDPSocket | close(callback: AsyncCallback
\<
void>): void;
<br>
close(): Promise
\
<
void>; | 新增 |
| ohos.net.socket | UDPSocket | send(options: UDPSendOptions, callback: AsyncCallback
\<
void>): void;
<br>
send(options: UDPSendOptions): Promise
\
<
void>; | 新增 |
| ohos.net.socket | UDPSocket | bind(address: NetAddress, callback: AsyncCallback
\<
void>): void;
<br>
bind(address: NetAddress): Promise
\
<
void>; | 新增 |
| ohos.net.socket | SocketRemoteInfo | size: number; | 新增 |
| ohos.net.socket | SocketRemoteInfo | port: number; | 新增 |
| ohos.net.socket | SocketRemoteInfo | family: 'IPv4'
\|
'IPv6'; | 新增 |
...
...
@@ -71,8 +71,8 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,网络管理
| ohos.net.socket | ExtraOptionsBase | receiveBufferSize?: number; | 新增 |
| ohos.net.socket | UDPSendOptions | address: NetAddress; | 新增 |
| ohos.net.socket | UDPSendOptions | data: string
\|
ArrayBuffer; | 新增 |
| ohos.net.socket | socket |
function
constructTCPSocketInstance(): TCPSocket; | 新增 |
| ohos.net.socket | socket |
function
constructUDPSocketInstance(): UDPSocket; | 新增 |
| ohos.net.socket | socket | constructTCPSocketInstance(): TCPSocket; | 新增 |
| ohos.net.socket | socket | constructUDPSocketInstance(): UDPSocket; | 新增 |
| ohos.net.socket | socket | import NetAddress = connection.NetAddress; | 新增 |
| ohos.net.http | HttpResponse | cookies: string; | 新增 |
| ohos.net.http | HttpResponse | header: Object; | 新增 |
...
...
@@ -121,19 +121,19 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,网络管理
| ohos.net.http | RequestMethod | HEAD = "HEAD" | 新增 |
| ohos.net.http | RequestMethod | GET = "GET" | 新增 |
| ohos.net.http | RequestMethod | OPTIONS = "OPTIONS" | 新增 |
| ohos.net.http | HttpRequest | once(type: "headersReceive", callback: Callback
<Object>
): void; | 新增 |
| ohos.net.http | HttpRequest | off(type: "headersReceive", callback?: Callback
<Object>
): void; | 新增 |
| ohos.net.http | HttpRequest | on(type: "headersReceive", callback: Callback
<Object>
): void; | 新增 |
| ohos.net.http | HttpRequest | off(type: "headerReceive", callback?: AsyncCallback
<Object>
): void; | 新增 |
| ohos.net.http | HttpRequest | on(type: "headerReceive", callback: AsyncCallback
<Object>
): void; | 新增 |
| ohos.net.http | HttpRequest | once(type: "headersReceive", callback: Callback
\
<
Object>): void; | 新增 |
| ohos.net.http | HttpRequest | off(type: "headersReceive", callback?: Callback
\
<
Object>): void; | 新增 |
| ohos.net.http | HttpRequest | on(type: "headersReceive", callback: Callback
\
<
Object>): void; | 新增 |
| ohos.net.http | HttpRequest | off(type: "headerReceive", callback?: AsyncCallback
\
<
Object>): void; | 新增 |
| ohos.net.http | HttpRequest | on(type: "headerReceive", callback: AsyncCallback
\
<
Object>): void; | 新增 |
| ohos.net.http | HttpRequest | destroy(): void; | 新增 |
| ohos.net.http | HttpRequest | request(url: string, callback: AsyncCallback
<HttpResponse>
): void;
<br>
request(url: string, options: HttpRequestOptions, callback: AsyncCallback
<HttpResponse>
): void;
<br>
request(url: string, options?: HttpRequestOptions): Promise
<HttpResponse>
; | 新增 |
| ohos.net.http | HttpRequest | request(url: string, callback: AsyncCallback
\<
HttpResponse>): void;
<br>
request(url: string, options: HttpRequestOptions, callback: AsyncCallback
\<
HttpResponse>): void;
<br>
request(url: string, options?: HttpRequestOptions): Promise
\
<
HttpResponse>; | 新增 |
| ohos.net.http | HttpRequestOptions | connectTimeout?: number; | 新增 |
| ohos.net.http | HttpRequestOptions | readTimeout?: number; | 新增 |
| ohos.net.http | HttpRequestOptions | header?: Object; | 新增 |
| ohos.net.http | HttpRequestOptions | extraData?: string
\|
Object
\|
ArrayBuffer; | 新增 |
| ohos.net.http | HttpRequestOptions | method?: RequestMethod; | 新增 |
| ohos.net.http | http |
function
createHttp(): HttpRequest; | 新增 |
| ohos.net.http | http | createHttp(): HttpRequest; | 新增 |
| ohos.net.connection | NetAddress | port?: number; | 新增 |
| ohos.net.connection | NetAddress | family?: number; | 新增 |
| ohos.net.connection | NetAddress | address: string; | 新增 |
...
...
@@ -145,9 +145,9 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,网络管理
| ohos.net.connection | RouteInfo | destination: LinkAddress; | 新增 |
| ohos.net.connection | RouteInfo | interface: string; | 新增 |
| ohos.net.connection | ConnectionProperties | mtu: number; | 新增 |
| ohos.net.connection | ConnectionProperties | routes: Array
<RouteInfo>
; | 新增 |
| ohos.net.connection | ConnectionProperties | dnses: Array
<NetAddress>
; | 新增 |
| ohos.net.connection | ConnectionProperties | linkAddresses: Array
<LinkAddress>
; | 新增 |
| ohos.net.connection | ConnectionProperties | routes: Array
\
<
RouteInfo>; | 新增 |
| ohos.net.connection | ConnectionProperties | dnses: Array
\
<
NetAddress>; | 新增 |
| ohos.net.connection | ConnectionProperties | linkAddresses: Array
\
<
LinkAddress>; | 新增 |
| ohos.net.connection | ConnectionProperties | domains: string; | 新增 |
| ohos.net.connection | ConnectionProperties | interfaceName: string; | 新增 |
| ohos.net.connection | NetBearType | BEARER_ETHERNET = 3 | 新增 |
...
...
@@ -158,29 +158,29 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,网络管理
| ohos.net.connection | NetCap | NET_CAPABILITY_INTERNET = 12 | 新增 |
| ohos.net.connection | NetCap | NET_CAPABILITY_NOT_METERED = 11 | 新增 |
| ohos.net.connection | NetCap | NET_CAPABILITY_MMS = 0 | 新增 |
| ohos.net.connection | NetCapabilities | bearerTypes: Array
<NetBearType>
; | 新增 |
| ohos.net.connection | NetCapabilities | networkCap?: Array
<NetCap>
; | 新增 |
| ohos.net.connection | NetCapabilities | bearerTypes: Array
\
<
NetBearType>; | 新增 |
| ohos.net.connection | NetCapabilities | networkCap?: Array
\
<
NetCap>; | 新增 |
| ohos.net.connection | NetCapabilities | linkDownBandwidthKbps?: number; | 新增 |
| ohos.net.connection | NetCapabilities | linkUpBandwidthKbps?: number; | 新增 |
| ohos.net.connection | NetHandle | getAddressByName(host: string, callback: AsyncCallback
<NetAddress>
): void;
<br>
getAddressByName(host: string): Promise
<NetAddress>
; | 新增 |
| ohos.net.connection | NetHandle | getAddressesByName(host: string, callback: AsyncCallback
<Array
<
NetAddress
>
>): void;
<br>
getAddressesByName(host: string): Promise
<Array
<
NetAddress
>
>; | 新增 |
| ohos.net.connection | NetHandle | getAddressByName(host: string, callback: AsyncCallback
\<
NetAddress>): void;
<br>
getAddressByName(host: string): Promise
\
<
NetAddress>; | 新增 |
| ohos.net.connection | NetHandle | getAddressesByName(host: string, callback: AsyncCallback
\<
Array
\<
NetAddress>>): void;
<br>
getAddressesByName(host: string): Promise
\<
Array
\
<
NetAddress>>; | 新增 |
| ohos.net.connection | NetHandle | netId: number; | 新增 |
| ohos.net.connection | NetSpecifier | bearerPrivateIdentifier?: string; | 新增 |
| ohos.net.connection | NetSpecifier | netCapabilities: NetCapabilities; | 新增 |
| ohos.net.connection | NetConnection | unregister(callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.net.connection | NetConnection | register(callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netUnavailable', callback: Callback
<void>
): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netLost', callback: Callback
<NetHandle>
): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netConnectionPropertiesChange', callback: Callback
<
{
netHandle:
NetHandle
,
connectionProperties:
ConnectionProperties
}
>
): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netCapabilitiesChange', callback: Callback
<
{
netHandle:
NetHandle
,
netCap:
NetCapabilities
}
>
): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netBlockStatusChange', callback: Callback
<
{
netHandle:
NetHandle
,
blocked:
boolean
}
>
): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netAvailable', callback: Callback
<NetHandle>
): void; | 新增 |
| ohos.net.connection | connection |
function getAddressesByName(host: string, callback: AsyncCallback
<Array
<
NetAddress
>
>): void;
<br>
function getAddressesByName(host: string): Promise
<Array
<
NetAddress
>
>; | 新增 |
| ohos.net.connection | connection |
function reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback
<void>
): void;
<br>
function reportNetDisconnected(netHandle: NetHandle): Promise
<void>
; | 新增 |
| ohos.net.connection | connection |
function reportNetConnected(netHandle: NetHandle, callback: AsyncCallback
<void>
): void;
<br>
function reportNetConnected(netHandle: NetHandle): Promise
<void>
; | 新增 |
| ohos.net.connection | connection |
function hasDefaultNet(callback: AsyncCallback
<boolean>
): void;
<br>
function hasDefaultNet(): Promise
<boolean>
; | 新增 |
| ohos.net.connection | connection |
function getNetCapabilities(netHandle: NetHandle, callback: AsyncCallback
<NetCapabilities>
): void;
<br>
function getNetCapabilities(netHandle: NetHandle): Promise
<NetCapabilities>
; | 新增 |
| ohos.net.connection | connection |
function getConnectionProperties(netHandle: NetHandle, callback: AsyncCallback
<ConnectionProperties>
): void;
<br>
function getConnectionProperties(netHandle: NetHandle): Promise
<ConnectionProperties>
; | 新增 |
| ohos.net.connection | connection |
function getAllNets(callback: AsyncCallback
<Array
<
NetHandle
>
>): void;
<br>
function getAllNets(): Promise
<Array
<
NetHandle
>
>; | 新增 |
| ohos.net.connection | connection |
function getDefaultNet(callback: AsyncCallback
<NetHandle>
): void;
<br>
function getDefaultNet(): Promise
<NetHandle>
; | 新增 |
| ohos.net.connection | connection |
function
createNetConnection(netSpecifier?: NetSpecifier, timeout?: number): NetConnection; | 新增 |
| ohos.net.connection | NetConnection | unregister(callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.net.connection | NetConnection | register(callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netUnavailable', callback: Callback
\
<
void>): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netLost', callback: Callback
\
<
NetHandle>): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netConnectionPropertiesChange', callback: Callback
\
<
{ netHandle: NetHandle, connectionProperties: ConnectionProperties }>): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netCapabilitiesChange', callback: Callback
\
<
{ netHandle: NetHandle, netCap: NetCapabilities }>): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netBlockStatusChange', callback: Callback
\
<
{ netHandle: NetHandle, blocked: boolean }>): void; | 新增 |
| ohos.net.connection | NetConnection | on(type: 'netAvailable', callback: Callback
\
<
NetHandle>): void; | 新增 |
| ohos.net.connection | connection |
getAddressesByName(host: string, callback: AsyncCallback
\<
Array
\<
NetAddress>>): void;
<br>
getAddressesByName(host: string): Promise
\<
Array
\
<
NetAddress>>; | 新增 |
| ohos.net.connection | connection |
reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback
\<
void>): void;
<br>
reportNetDisconnected(netHandle: NetHandle): Promise
\
<
void>; | 新增 |
| ohos.net.connection | connection |
reportNetConnected(netHandle: NetHandle, callback: AsyncCallback
\<
void>): void;
<br>
reportNetConnected(netHandle: NetHandle): Promise
\
<
void>; | 新增 |
| ohos.net.connection | connection |
hasDefaultNet(callback: AsyncCallback
\<
boolean>): void;
<br>
hasDefaultNet(): Promise
\
<
boolean>; | 新增 |
| ohos.net.connection | connection |
getNetCapabilities(netHandle: NetHandle, callback: AsyncCallback
\<
NetCapabilities>): void;
<br>
getNetCapabilities(netHandle: NetHandle): Promise
\
<
NetCapabilities>; | 新增 |
| ohos.net.connection | connection |
getConnectionProperties(netHandle: NetHandle, callback: AsyncCallback
\<
ConnectionProperties>): void;
<br>
getConnectionProperties(netHandle: NetHandle): Promise
\
<
ConnectionProperties>; | 新增 |
| ohos.net.connection | connection |
getAllNets(callback: AsyncCallback
\<
Array
\<
NetHandle>>): void;
<br>
getAllNets(): Promise
\<
Array
\
<
NetHandle>>; | 新增 |
| ohos.net.connection | connection |
getDefaultNet(callback: AsyncCallback
\<
NetHandle>): void;
<br>
getDefaultNet(): Promise
\
<
NetHandle>; | 新增 |
| ohos.net.connection | connection | createNetConnection(netSpecifier?: NetSpecifier, timeout?: number): NetConnection; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md
浏览文件 @
e39dc96d
...
...
@@ -13,11 +13,11 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,资源调度
| ohos.reminderAgent | LocalDateTime | month: number; | 新增 |
| ohos.reminderAgent | LocalDateTime | year: number; | 新增 |
| ohos.reminderAgent | ReminderRequestTimer | triggerTimeInSeconds: number; | 新增 |
| ohos.reminderAgent | ReminderRequestAlarm | daysOfWeek?: Array
<number>
; | 新增 |
| ohos.reminderAgent | ReminderRequestAlarm | daysOfWeek?: Array
\
<
number>; | 新增 |
| ohos.reminderAgent | ReminderRequestAlarm | minute: number; | 新增 |
| ohos.reminderAgent | ReminderRequestAlarm | hour: number; | 新增 |
| ohos.reminderAgent | ReminderRequestCalendar | repeatDays?: Array
<number>
; | 新增 |
| ohos.reminderAgent | ReminderRequestCalendar | repeatMonths?: Array
<number>
; | 新增 |
| ohos.reminderAgent | ReminderRequestCalendar | repeatDays?: Array
\
<
number>; | 新增 |
| ohos.reminderAgent | ReminderRequestCalendar | repeatMonths?: Array
\
<
number>; | 新增 |
| ohos.reminderAgent | ReminderRequestCalendar | dateTime: LocalDateTime; | 新增 |
| ohos.reminderAgent | ReminderRequest | slotType?: notification.SlotType; | 新增 |
| ohos.reminderAgent | ReminderRequest | notificationId?: number; | 新增 |
...
...
@@ -43,21 +43,21 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,资源调度
| ohos.reminderAgent | ReminderType | REMINDER_TYPE_TIMER = 0 | 新增 |
| ohos.reminderAgent | ActionButtonType | ACTION_BUTTON_TYPE_SNOOZE = 1 | 新增 |
| ohos.reminderAgent | ActionButtonType | ACTION_BUTTON_TYPE_CLOSE = 0 | 新增 |
| ohos.reminderAgent | reminderAgent |
function removeNotificationSlot(slotType: notification.SlotType, callback: AsyncCallback
<void>
): void;
<br>
function removeNotificationSlot(slotType: notification.SlotType): Promise
<void>
; | 新增 |
| ohos.reminderAgent | reminderAgent |
function addNotificationSlot(slot: NotificationSlot, callback: AsyncCallback
<void>
): void;
<br>
function addNotificationSlot(slot: NotificationSlot): Promise
<void>
; | 新增 |
| ohos.reminderAgent | reminderAgent |
function cancelAllReminders(callback: AsyncCallback
<void>
): void;
<br>
function cancelAllReminders(): Promise
<void>
; | 新增 |
| ohos.reminderAgent | reminderAgent |
function getValidReminders(callback: AsyncCallback
<Array
<
ReminderRequest
>
>): void;
<br>
function getValidReminders(): Promise
<Array
<
ReminderRequest
>
>; | 新增 |
| ohos.reminderAgent | reminderAgent |
function cancelReminder(reminderId: number, callback: AsyncCallback
<void>
): void;
<br>
function cancelReminder(reminderId: number): Promise
<void>
; | 新增 |
| ohos.reminderAgent | reminderAgent |
function publishReminder(reminderReq: ReminderRequest, callback: AsyncCallback
<number>
): void;
<br>
function publishReminder(reminderReq: ReminderRequest): Promise
<number>
; | 新增 |
| ohos.bundleState | bundleState |
function queryCurrentBundleActiveStates(begin: number, end: number, callback: AsyncCallback
<Array
<
BundleActiveState
>
>): void;
<br>
function queryCurrentBundleActiveStates(begin: number, end: number): Promise
<Array
<
BundleActiveState
>
>; | 新增 |
| ohos.reminderAgent | reminderAgent |
removeNotificationSlot(slotType: notification.SlotType, callback: AsyncCallback
\<
void>): void;
<br>
removeNotificationSlot(slotType: notification.SlotType): Promise
\
<
void>; | 新增 |
| ohos.reminderAgent | reminderAgent |
addNotificationSlot(slot: NotificationSlot, callback: AsyncCallback
\<
void>): void;
<br>
addNotificationSlot(slot: NotificationSlot): Promise
\
<
void>; | 新增 |
| ohos.reminderAgent | reminderAgent |
cancelAllReminders(callback: AsyncCallback
\<
void>): void;
<br>
cancelAllReminders(): Promise
\
<
void>; | 新增 |
| ohos.reminderAgent | reminderAgent |
getValidReminders(callback: AsyncCallback
\<
Array
\<
ReminderRequest>>): void;
<br>
getValidReminders(): Promise
\<
Array
\
<
ReminderRequest>>; | 新增 |
| ohos.reminderAgent | reminderAgent |
cancelReminder(reminderId: number, callback: AsyncCallback
\<
void>): void;
<br>
cancelReminder(reminderId: number): Promise
\
<
void>; | 新增 |
| ohos.reminderAgent | reminderAgent |
publishReminder(reminderReq: ReminderRequest, callback: AsyncCallback
\<
number>): void;
<br>
publishReminder(reminderReq: ReminderRequest): Promise
\
<
number>; | 新增 |
| ohos.bundleState | bundleState |
queryCurrentBundleActiveStates(begin: number, end: number, callback: AsyncCallback
\<
Array
\<
BundleActiveState>>): void;
<br>
queryCurrentBundleActiveStates(begin: number, end: number): Promise
\<
Array
\
<
BundleActiveState>>; | 新增 |
| ohos.bundleState | IntervalType | BY_ANNUALLY = 4 | 新增 |
| ohos.bundleState | IntervalType | BY_MONTHLY = 3 | 新增 |
| ohos.bundleState | IntervalType | BY_WEEKLY = 2 | 新增 |
| ohos.bundleState | IntervalType | BY_DAILY = 1 | 新增 |
| ohos.bundleState | IntervalType | BY_OPTIMIZED = 0 | 新增 |
| ohos.bundleState | BundleActiveInfoResponse | [key: string]: BundleStateInfo; | 新增 |
| ohos.bundleState | bundleState |
function queryAppUsagePriorityGroup(callback: AsyncCallback
<number>
): void;
<br>
function queryAppUsagePriorityGroup(): Promise
<number>
; | 新增 |
| ohos.bundleState | bundleState |
function isIdleState(bundleName: string, callback: AsyncCallback
<boolean>
): void;
<br>
function isIdleState(bundleName: string): Promise
<boolean>
; | 新增 |
| ohos.bundleState | bundleState |
queryAppUsagePriorityGroup(callback: AsyncCallback
\<
number>): void;
<br>
queryAppUsagePriorityGroup(): Promise
\
<
number>; | 新增 |
| ohos.bundleState | bundleState |
isIdleState(bundleName: string, callback: AsyncCallback
\<
boolean>): void;
<br>
isIdleState(bundleName: string): Promise
\
<
boolean>; | 新增 |
| ohos.bundleState | BundleActiveState | stateType?: number; | 新增 |
| ohos.bundleState | BundleActiveState | stateOccurredTime?: number; | 新增 |
| ohos.bundleState | BundleActiveState | nameOfClass?: string; | 新增 |
...
...
@@ -82,10 +82,10 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,资源调度
| ohos.backgroundTaskManager | BackgroundMode | AUDIO_RECORDING = 3 | 新增 |
| ohos.backgroundTaskManager | BackgroundMode | AUDIO_PLAYBACK = 2 | 新增 |
| ohos.backgroundTaskManager | BackgroundMode | DATA_TRANSFER = 1 | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager |
function stopBackgroundRunning(context: Context, callback: AsyncCallback
<void>
): void;
<br>
function stopBackgroundRunning(context: Context): Promise
<void>
; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager |
function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback
<void>
): void;
<br>
function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): Promise
<void>
; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager |
function requestSuspendDelay(reason: string, callback: Callback
<void>
): DelaySuspendInfo; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager |
function getRemainingDelayTime(requestId: number, callback: AsyncCallback
<number>
): void;
<br>
function getRemainingDelayTime(requestId: number): Promise
<number>
; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager |
function
cancelSuspendDelay(requestId: number): void; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager |
stopBackgroundRunning(context: Context, callback: AsyncCallback
\<
void>): void;
<br>
stopBackgroundRunning(context: Context): Promise
\
<
void>; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager |
startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback
\<
void>): void;
<br>
startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): Promise
\
<
void>; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager |
requestSuspendDelay(reason: string, callback: Callback
\
<
void>): DelaySuspendInfo; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager |
getRemainingDelayTime(requestId: number, callback: AsyncCallback
\<
number>): void;
<br>
getRemainingDelayTime(requestId: number): Promise
\
<
number>; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager | cancelSuspendDelay(requestId: number): void; | 新增 |
| ohos.backgroundTaskManager | DelaySuspendInfo | actualDelayTime: number; | 新增 |
| ohos.backgroundTaskManager | DelaySuspendInfo | requestId: number; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler_api-9-canary.md
浏览文件 @
e39dc96d
...
...
@@ -22,12 +22,12 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,资源调
| ohos.workScheduler | NetworkType | NETWORK_TYPE_WIFI | 新增 |
| ohos.workScheduler | NetworkType | NETWORK_TYPE_MOBILE | 新增 |
| ohos.workScheduler | NetworkType | NETWORK_TYPE_ANY = 0 | 新增 |
| ohos.workScheduler | workScheduler |
function isLastWorkTimeOut(workId: number, callback: AsyncCallback
<void>
): boolean;
<br>
function isLastWorkTimeOut(workId: number): Promise
<boolean>
; | 新增 |
| ohos.workScheduler | workScheduler |
function
stopAndClearWorks(): boolean; | 新增 |
| ohos.workScheduler | workScheduler |
function obtainAllWorks(callback: AsyncCallback
<void>
): Array
<WorkInfo>
;
<br>
function obtainAllWorks(): Promise
<Array
<
WorkInfo
>
>; | 新增 |
| ohos.workScheduler | workScheduler |
function getWorkStatus(workId: number, callback: AsyncCallback
<WorkInfo>
): void;
<br>
function getWorkStatus(workId: number): Promise
<WorkInfo>
; | 新增 |
| ohos.workScheduler | workScheduler |
function
stopWork(work: WorkInfo, needCancel?: boolean): boolean; | 新增 |
| ohos.workScheduler | workScheduler |
function
startWork(work: WorkInfo): boolean; | 新增 |
| ohos.workScheduler | workScheduler |
isLastWorkTimeOut(workId: number, callback: AsyncCallback
\<
void>): boolean;
<br>
isLastWorkTimeOut(workId: number): Promise
\
<
boolean>; | 新增 |
| ohos.workScheduler | workScheduler | stopAndClearWorks(): boolean; | 新增 |
| ohos.workScheduler | workScheduler |
obtainAllWorks(callback: AsyncCallback
\<
void>): Array
\<
WorkInfo>;
<br>
obtainAllWorks(): Promise
\<
Array
\
<
WorkInfo>>; | 新增 |
| ohos.workScheduler | workScheduler |
getWorkStatus(workId: number, callback: AsyncCallback
\<
WorkInfo>): void;
<br>
getWorkStatus(workId: number): Promise
\
<
WorkInfo>; | 新增 |
| ohos.workScheduler | workScheduler | stopWork(work: WorkInfo, needCancel?: boolean): boolean; | 新增 |
| ohos.workScheduler | workScheduler | startWork(work: WorkInfo): boolean; | 新增 |
| ohos.workScheduler | WorkInfo | idleWaitTime?: number; | 新增 |
| ohos.workScheduler | WorkInfo | isDeepIdle?: boolean; | 新增 |
| ohos.workScheduler | WorkInfo | repeatCount?: number; | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-security.md
浏览文件 @
e39dc96d
...
...
@@ -82,12 +82,12 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,安全子系
| ohos.security.huks | HuksTag | HUKS_TAG_PURPOSE = HuksTagType.HUKS_TAG_TYPE_UINT
\|
2 | 新增 |
| ohos.security.huks | HuksTag | HUKS_TAG_ALGORITHM = HuksTagType.HUKS_TAG_TYPE_UINT
\|
1 | 新增 |
| ohos.security.huks | HuksTag | HUKS_TAG_INVALID = HuksTagType.HUKS_TAG_TYPE_INVALID
\|
0 | 新增 |
| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_BYTES = 5
<
< 28 | 新增 |
| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_BOOL = 4
<
< 28 | 新增 |
| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_ULONG = 3
<
< 28 | 新增 |
| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_UINT = 2
<
< 28 | 新增 |
| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_INT = 1
<
< 28 | 新增 |
| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_INVALID = 0
<
< 28 | 新增 |
| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_BYTES = 5
\<\
<
28 | 新增 |
| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_BOOL = 4
\<\
<
28 | 新增 |
| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_ULONG = 3
\<\
<
28 | 新增 |
| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_UINT = 2
\<\
<
28 | 新增 |
| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_INT = 1
\<\
<
28 | 新增 |
| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_INVALID = 0
\<\
<
28 | 新增 |
| ohos.security.huks | HuksSendType | HUKS_SEND_TYPE_SYNC = 1 | 新增 |
| ohos.security.huks | HuksSendType | HUKS_SEND_TYPE_ASYNC = 0 | 新增 |
| ohos.security.huks | HuksKeyStorageType | HUKS_STORAGE_PERSISTENT = 1 | 新增 |
...
...
@@ -223,25 +223,25 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,安全子系
| ohos.security.huks | HuksErrorCode | HUKS_ERROR_BAD_STATE = -2 | 新增 |
| ohos.security.huks | HuksErrorCode | HUKS_FAILURE = -1 | 新增 |
| ohos.security.huks | HuksErrorCode | HUKS_SUCCESS = 0 | 新增 |
| ohos.security.huks | HuksResult | certChains?: Array
<string>
; | 新增 |
| ohos.security.huks | HuksResult | properties?: Array
<HuksParam>
; | 新增 |
| ohos.security.huks | HuksResult | certChains?: Array
\
<
string>; | 新增 |
| ohos.security.huks | HuksResult | properties?: Array
\
<
HuksParam>; | 新增 |
| ohos.security.huks | HuksResult | outData?: Uint8Array; | 新增 |
| ohos.security.huks | HuksResult | errorCode: number; | 新增 |
| ohos.security.huks | HuksOptions | inData?: Uint8Array; | 新增 |
| ohos.security.huks | HuksOptions | properties?: Array
<HuksParam>
; | 新增 |
| ohos.security.huks | HuksOptions | properties?: Array
\
<
HuksParam>; | 新增 |
| ohos.security.huks | HuksHandle | token?: Uint8Array; | 新增 |
| ohos.security.huks | HuksHandle | handle: number; | 新增 |
| ohos.security.huks | HuksHandle | errorCode: number; | 新增 |
| ohos.security.huks | HuksParam | value: boolean
\|
number
\|
bigint
\|
Uint8Array; | 新增 |
| ohos.security.huks | HuksParam | tag: HuksTag; | 新增 |
| ohos.security.huks | huks |
function
getSdkVersion(options: HuksOptions) : string; | 新增 |
| ohos.security.huks | huks |
function abort(handle: number, options: HuksOptions, callback: AsyncCallback
<HuksResult>
) : void;
<br>
function abort(handle: number, options: HuksOptions) : Promise
<HuksResult>
; | 新增 |
| ohos.security.huks | huks | f
unction finish(handle: number, options: HuksOptions, callback: AsyncCallback
<HuksResult>
) : void;
<br>
function finish(handle: number, options: HuksOptions) : Promise
<HuksResult>
; | 新增 |
| ohos.security.huks | huks |
function update(handle: number, token?: Uint8Array, options: HuksOptions, callback: AsyncCallback
<HuksResult>
) : void;
<br>
function update(handle: number, token?: Uint8Array, options: HuksOptions) : Promise
<HuksResult>
; | 新增 |
| ohos.security.huks | huks |
function init(keyAlias: string, options: HuksOptions, callback: AsyncCallback
<HuksHandle>
) : void;
<br>
function init(keyAlias: string, options: HuksOptions) : Promise
<HuksHandle>
; | 新增 |
| ohos.security.huks | huks |
function isKeyExist(keyAlias: string, options: HuksOptions, callback: AsyncCallback
<boolean>
) : void;
<br>
function isKeyExist(keyAlias: string, options: HuksOptions) : Promise
<boolean>
; | 新增 |
| ohos.security.huks | huks |
function getKeyProperties(keyAlias: string, options: HuksOptions, callback: AsyncCallback
<HuksResult>
) : void;
<br>
function getKeyProperties(keyAlias: string, options: HuksOptions) : Promise
<HuksResult>
; | 新增 |
| ohos.security.huks | huks |
function exportKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback
<HuksResult>
) : void;
<br>
function exportKey(keyAlias: string, options: HuksOptions) : Promise
<HuksResult>
; | 新增 |
| ohos.security.huks | huks |
function importKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback
<HuksResult>
) : void;
<br>
function importKey(keyAlias: string, options: HuksOptions) : Promise
<HuksResult>
; | 新增 |
| ohos.security.huks | huks |
function deleteKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback
<HuksResult>
) : void;
<br>
function deleteKey(keyAlias: string, options: HuksOptions) : Promise
<HuksResult>
; | 新增 |
| ohos.security.huks | huks |
function generateKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback
<HuksResult>
) : void;
<br>
function generateKey(keyAlias: string, options: HuksOptions) : Promise
<HuksResult>
; | 新增 |
| ohos.security.huks | huks | getSdkVersion(options: HuksOptions) : string; | 新增 |
| ohos.security.huks | huks |
abort(handle: number, options: HuksOptions, callback: AsyncCallback
\<
HuksResult>) : void;
<br>
abort(handle: number, options: HuksOptions) : Promise
\
<
HuksResult>; | 新增 |
| ohos.security.huks | huks | f
inish(handle: number, options: HuksOptions, callback: AsyncCallback
\<
HuksResult>) : void;
<br>
finish(handle: number, options: HuksOptions) : Promise
\
<
HuksResult>; | 新增 |
| ohos.security.huks | huks |
update(handle: number, token?: Uint8Array, options: HuksOptions, callback: AsyncCallback
\<
HuksResult>) : void;
<br>
update(handle: number, token?: Uint8Array, options: HuksOptions) : Promise
\
<
HuksResult>; | 新增 |
| ohos.security.huks | huks |
init(keyAlias: string, options: HuksOptions, callback: AsyncCallback
\<
HuksHandle>) : void;
<br>
init(keyAlias: string, options: HuksOptions) : Promise
\
<
HuksHandle>; | 新增 |
| ohos.security.huks | huks |
isKeyExist(keyAlias: string, options: HuksOptions, callback: AsyncCallback
\<
boolean>) : void;
<br>
isKeyExist(keyAlias: string, options: HuksOptions) : Promise
\
<
boolean>; | 新增 |
| ohos.security.huks | huks |
getKeyProperties(keyAlias: string, options: HuksOptions, callback: AsyncCallback
\<
HuksResult>) : void;
<br>
getKeyProperties(keyAlias: string, options: HuksOptions) : Promise
\
<
HuksResult>; | 新增 |
| ohos.security.huks | huks |
exportKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback
\<
HuksResult>) : void;
<br>
exportKey(keyAlias: string, options: HuksOptions) : Promise
\
<
HuksResult>; | 新增 |
| ohos.security.huks | huks |
importKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback
\<
HuksResult>) : void;
<br>
importKey(keyAlias: string, options: HuksOptions) : Promise
\
<
HuksResult>; | 新增 |
| ohos.security.huks | huks |
deleteKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback
\<
HuksResult>) : void;
<br>
deleteKey(keyAlias: string, options: HuksOptions) : Promise
\
<
HuksResult>; | 新增 |
| ohos.security.huks | huks |
generateKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback
\<
HuksResult>) : void;
<br>
generateKey(keyAlias: string, options: HuksOptions) : Promise
\
<
HuksResult>; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md
浏览文件 @
e39dc96d
...
...
@@ -9,8 +9,8 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,泛Sensor子
| ohos.vibrator | VibratorStopMode | VIBRATOR_STOP_MODE_PRESET = "preset" | 新增 |
| ohos.vibrator | VibratorStopMode | VIBRATOR_STOP_MODE_TIME = "time" | 新增 |
| ohos.vibrator | EffectId | EFFECT_CLOCK_TIMER = "haptic.clock.timer" | 新增 |
| ohos.vibrator | vibrator |
function stop(stopMode: VibratorStopMode): Promise
<void>
;
<br>
function stop(stopMode: VibratorStopMode, callback?: AsyncCallback
<void>
): void; | 新增 |
| ohos.vibrator | vibrator |
function vibrate(duration: number, callback?: AsyncCallback
<void>
): void;
<br>
function vibrate(duration: number): Promise
<void>
;
<br>
function vibrate(effectId: EffectId): Promise
<void>
;
<br>
function vibrate(effectId: EffectId, callback?: AsyncCallback
<void>
): void; | 新增 |
| ohos.vibrator | vibrator |
stop(stopMode: VibratorStopMode): Promise
\<
void>;
<br>
stop(stopMode: VibratorStopMode, callback?: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.vibrator | vibrator |
vibrate(duration: number, callback?: AsyncCallback
\<
void>): void;
<br>
vibrate(duration: number): Promise
\<
void>;
<br>
vibrate(effectId: EffectId): Promise
\<
void>;
<br>
vibrate(effectId: EffectId, callback?: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.sensor | WearDetectionResponse | value: number; | 新增 |
| ohos.sensor | HeartRateResponse | heartRate: number; | 新增 |
| ohos.sensor | BarometerResponse | pressure: number; | 新增 |
...
...
@@ -85,18 +85,18 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,泛Sensor子
| ohos.sensor | SensorType | SENSOR_TYPE_ID_GYROSCOPE = 2 | 新增 |
| ohos.sensor | SensorType | SENSOR_TYPE_ID_ACCELEROMETER = 1 | 新增 |
| ohos.sensor | Options | interval?: number; | 新增 |
| ohos.sensor | RotationMatrixResponse | inclination: Array
<number>
| 新增 |
| ohos.sensor | RotationMatrixResponse | rotation: Array
<number>
; | 新增 |
| ohos.sensor | sensor |
function getDirection(rotationMatrix: Array
<number>
, callback: AsyncCallback
<Array
<
number
>
>): void;
<br>
function getDirection(rotationMatrix: Array
<number>
): Promise
<Array
<
number
>
>; | 新增 |
| ohos.sensor | sensor |
function createQuaternion(rotationVector: Array
<number>
, callback: AsyncCallback
<Array
<
number
>
>): void;
<br>
function createQuaternion(rotationVector: Array
<number>
): Promise
<Array
<
number
>
>; | 新增 |
| ohos.sensor | sensor |
function transformCoordinateSystem(inRotationVector: Array
<number>
, coordinates: CoordinatesOptions, callback: AsyncCallback
<Array
<
number
>
>): void;
<br>
function transformCoordinateSystem(inRotationVector: Array
<number>
, coordinates: CoordinatesOptions): Promise
<Array
<
number
>
>; | 新增 |
| ohos.sensor | RotationMatrixResponse | inclination: Array
\
<
number> | 新增 |
| ohos.sensor | RotationMatrixResponse | rotation: Array
\
<
number>; | 新增 |
| ohos.sensor | sensor |
getDirection(rotationMatrix: Array
\<
number>, callback: AsyncCallback
\<
Array
\<
number>>): void;
<br>
getDirection(rotationMatrix: Array
\<
number>): Promise
\<
Array
\
<
number>>; | 新增 |
| ohos.sensor | sensor |
createQuaternion(rotationVector: Array
\<
number>, callback: AsyncCallback
\<
Array
\<
number>>): void;
<br>
createQuaternion(rotationVector: Array
\<
number>): Promise
\<
Array
\
<
number>>; | 新增 |
| ohos.sensor | sensor |
transformCoordinateSystem(inRotationVector: Array
\<
number>, coordinates: CoordinatesOptions, callback: AsyncCallback
\<
Array
\<
number>>): void;
<br>
transformCoordinateSystem(inRotationVector: Array
\<
number>, coordinates: CoordinatesOptions): Promise
\<
Array
\
<
number>>; | 新增 |
| ohos.sensor | CoordinatesOptions | y: number; | 新增 |
| ohos.sensor | CoordinatesOptions | x: number; | 新增 |
| ohos.sensor | sensor |
function createRotationMatrix(rotationVector: Array
<number>
, callback: AsyncCallback
<Array
<
number
>
>): void;
<br>
function createRotationMatrix(rotationVector: Array
<number>
): Promise
<Array
<
number
>
>;
<br>
function createRotationMatrix(gravity: Array
<number>
, geomagnetic: Array
<number>
, callback: AsyncCallback
<RotationMatrixResponse>
): void;
<br>
function createRotationMatrix(gravity: Array
<number>
, geomagnetic: Array
<number>
,): Promise
<RotationMatrixResponse>
; | 新增 |
| ohos.sensor | sensor |
function getAngleModify(currentRotationMatrix: Array
<number>
, preRotationMatrix: Array
<number>
, callback: AsyncCallback
<Array
<
number
>
>): void;
<br>
function getAngleModify(currentRotationMatrix: Array
<number>
, preRotationMatrix: Array
<number>
): Promise
<Array
<
number
>
>;
| 新增 |
| ohos.sensor | sensor |
function getGeomagneticDip(inclinationMatrix: Array
<number>
, callback: AsyncCallback
<number>
): void;
<br>
function getGeomagneticDip(inclinationMatrix: Array
<number>
): Promise
<number>
; | 新增 |
| ohos.sensor | sensor |
function getAltitude(seaPressure: number, currentPressure: number, callback: AsyncCallback
<number>
): void;
<br>
function getAltitude(seaPressure: number, currentPressure: number): Promise
<number>
; | 新增 |
| ohos.sensor | sensor |
function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback
<GeomagneticResponse>
): void;
<br>
function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise
<GeomagneticResponse>
; | 新增 |
| ohos.sensor | sensor |
createRotationMatrix(rotationVector: Array
\<
number>, callback: AsyncCallback
\<
Array
\<
number>>): void;
<br>
createRotationMatrix(rotationVector: Array
\<
number>): Promise
\<
Array
\<
number>>;
<br>
createRotationMatrix(gravity: Array
\<
number>, geomagnetic: Array
\<
number>, callback: AsyncCallback
\<
RotationMatrixResponse>): void;
<br>
createRotationMatrix(gravity: Array
\<
number>, geomagnetic: Array
\<
number>,): Promise
\
<
RotationMatrixResponse>; | 新增 |
| ohos.sensor | sensor |
getAngleModify(currentRotationMatrix: Array
\<
number>, preRotationMatrix: Array
\<
number>, callback: AsyncCallback
\<
Array
\<
number>>): void;
<br>
getAngleModify(currentRotationMatrix: Array
\<
number>, preRotationMatrix: Array
\<
number>): Promise
\<
Array
\<
number>>;
| 新增 |
| ohos.sensor | sensor |
getGeomagneticDip(inclinationMatrix: Array
\<
number>, callback: AsyncCallback
\<
number>): void;
<br>
getGeomagneticDip(inclinationMatrix: Array
\<
number>): Promise
\
<
number>; | 新增 |
| ohos.sensor | sensor |
getAltitude(seaPressure: number, currentPressure: number, callback: AsyncCallback
\<
number>): void;
<br>
getAltitude(seaPressure: number, currentPressure: number): Promise
\
<
number>; | 新增 |
| ohos.sensor | sensor |
getGeomagneticField(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback
\<
GeomagneticResponse>): void;
<br>
getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise
\
<
GeomagneticResponse>; | 新增 |
| ohos.sensor | GeomagneticResponse | totalIntensity: number; | 新增 |
| ohos.sensor | GeomagneticResponse | levelIntensity: number; | 新增 |
| ohos.sensor | GeomagneticResponse | deflectionAngle: number; | 新增 |
...
...
@@ -107,6 +107,6 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,泛Sensor子
| ohos.sensor | LocationOptions | altitude: number; | 新增 |
| ohos.sensor | LocationOptions | longitude: number; | 新增 |
| ohos.sensor | LocationOptions | latitude: number; | 新增 |
| ohos.sensor | sensor | function off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback?: Callback
<AccelerometerResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback?: Callback
<AccelerometerUncalibratedResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback?: Callback
<LightResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback?: Callback
<AmbientTemperatureResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback?: Callback
<BarometerResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback?: Callback
<GravityResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback?: Callback
<GyroscopeResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback?: Callback
<GyroscopeUncalibratedResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_HALL, callback?: Callback
<HallResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback?: Callback
<HeartRateResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback?: Callback
<HumidityResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback?: Callback
<LinearAccelerometerResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback?: Callback
<MagneticFieldResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback?: Callback
<MagneticFieldUncalibratedResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback?: Callback
<OrientationResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback?: Callback
<PedometerResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback?: Callback
<PedometerDetectionResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback?: Callback
<ProximityResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback?: Callback
<RotationVectorResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback?: Callback
<SignificantMotionResponse>
): void;
<br>
function off(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback?: Callback
<WearDetectionResponse>
): void;| 新增 |
| ohos.sensor | sensor | function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback
<AccelerometerResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback
<AccelerometerUncalibratedResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback
<LightResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback
<AmbientTemperatureResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback
<BarometerResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback
<GravityResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback
<GyroscopeResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback
<GyroscopeUncalibratedResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback
<HallResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback
<HeartRateResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback
<HumidityResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback
<LinearAccelerometerResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback
<MagneticFieldResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback
<MagneticFieldUncalibratedResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback
<OrientationResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback
<PedometerResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback
<PedometerDetectionResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback
<ProximityResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback
<RotationVectorResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback
<SignificantMotionResponse>
): void;
<br>
function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback
<WearDetectionResponse>
): void; | 新增 |
| ohos.sensor | sensor | function on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback
<AccelerometerResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback
<AccelerometerUncalibratedResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback
<LightResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback
<AmbientTemperatureResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback
<BarometerResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback
<GravityResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback
<GyroscopeResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback
<GyroscopeUncalibratedResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback
<HallResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback
<HeartRateResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback
<HumidityResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback
<LinearAccelerometerResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback
<MagneticFieldResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback
<MagneticFieldUncalibratedResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback
<OrientationResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback
<PedometerResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback
<PedometerDetectionResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback
<ProximityResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback
<RotationVectorResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback
<SignificantMotionResponse>
, options?: Options): void;
<br>
function on(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback
<WearDetectionResponse>
, options?: Options): void; | 新增 |
\ No newline at end of file
| ohos.sensor | sensor | off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback?: Callback
\<
AccelerometerResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback?: Callback
\<
AccelerometerUncalibratedResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback?: Callback
\<
LightResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback?: Callback
\<
AmbientTemperatureResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback?: Callback
\<
BarometerResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback?: Callback
\<
GravityResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback?: Callback
\<
GyroscopeResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback?: Callback
\<
GyroscopeUncalibratedResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_HALL, callback?: Callback
\<
HallResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback?: Callback
\<
HeartRateResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback?: Callback
\<
HumidityResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback?: Callback
\<
LinearAccelerometerResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback?: Callback
\<
MagneticFieldResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback?: Callback
\<
MagneticFieldUncalibratedResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback?: Callback
\<
OrientationResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback?: Callback
\<
PedometerResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback?: Callback
\<
PedometerDetectionResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback?: Callback
\<
ProximityResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback?: Callback
\<
RotationVectorResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback?: Callback
\<
SignificantMotionResponse>): void;
<br>
off(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback?: Callback
\<
WearDetectionResponse>): void; | 新增 |
| ohos.sensor | sensor | once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback
\<
AccelerometerResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback
\<
AccelerometerUncalibratedResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback
\<
LightResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback
\<
AmbientTemperatureResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback
\<
BarometerResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback
\<
GravityResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback
\<
GyroscopeResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback
\<
GyroscopeUncalibratedResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback
\<
HallResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback
\<
HeartRateResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback
\<
HumidityResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback
\<
LinearAccelerometerResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback
\<
MagneticFieldResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback
\<
MagneticFieldUncalibratedResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback
\<
OrientationResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback
\<
PedometerResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback
\<
PedometerDetectionResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback
\<
ProximityResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback
\<
RotationVectorResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback
\<
SignificantMotionResponse>): void;
<br>
once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback
\<
WearDetectionResponse>): void; | 新增 |
| ohos.sensor | sensor | on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback
\<
AccelerometerResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback
\<
AccelerometerUncalibratedResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback
\<
LightResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback
\<
AmbientTemperatureResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback
\<
BarometerResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback
\<
GravityResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback
\<
GyroscopeResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback
\<
GyroscopeUncalibratedResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback
\<
HallResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback
\<
HeartRateResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback
\<
HumidityResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback
\<
LinearAccelerometerResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback
\<
MagneticFieldResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback
\<
MagneticFieldUncalibratedResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback
\<
OrientationResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback
\<
PedometerResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback
\<
PedometerDetectionResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback
\<
ProximityResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback
\<
RotationVectorResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback
\<
SignificantMotionResponse>, options?: Options): void;
<br>
on(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback
\<
WearDetectionResponse>, options?: Options): void; | 新增 |
\ No newline at end of file
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-settings.md
浏览文件 @
e39dc96d
...
...
@@ -6,13 +6,13 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,应用子系
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.settings | settings |
function
setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean; | 新增 |
| ohos.settings | settings |
function
getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string; | 新增 |
| ohos.settings | settings |
function
getUriSync(name: string): string; | 新增 |
| ohos.settings | settings |
function canShowFloating(callback: AsyncCallback
<boolean>
): void;
<br>
function canShowFloating(): Promise
<boolean>
; | 新增 |
| ohos.settings | settings |
function enableAirplaneMode(enable: boolean, callback: AsyncCallback
<void>
): void;
<br>
function enableAirplaneMode(enable: boolean): Promise
<void>
; | 新增 |
| ohos.settings | settings |
function getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback
<object>
): void;
<br>
function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise
<object>
; | 新增 |
| ohos.settings | settings |
function getURI(name: string, callback: AsyncCallback
<object>
): void;
<br>
function getURI(name: string): Promise
<object>
; | 新增 |
| ohos.settings | settings | setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean; | 新增 |
| ohos.settings | settings | getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string; | 新增 |
| ohos.settings | settings | getUriSync(name: string): string; | 新增 |
| ohos.settings | settings |
canShowFloating(callback: AsyncCallback
\<
boolean>): void;
<br>
canShowFloating(): Promise
\
<
boolean>; | 新增 |
| ohos.settings | settings |
enableAirplaneMode(enable: boolean, callback: AsyncCallback
\<
void>): void;
<br>
enableAirplaneMode(enable: boolean): Promise
\
<
void>; | 新增 |
| ohos.settings | settings |
getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback
\<
object>): void;
<br>
getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise
\
<
object>; | 新增 |
| ohos.settings | settings |
getURI(name: string, callback: AsyncCallback
\<
object>): void;
<br>
getURI(name: string): Promise
\
<
object>; | 新增 |
| ohos.settings | wireless | const WIFI_WATCHDOG_STATUS: string | 新增 |
| ohos.settings | wireless | const WIFI_STATUS: string | 新增 |
| ohos.settings | wireless | const WIFI_TO_MOBILE_DATA_AWAKE_TIMEOUT: string | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md
浏览文件 @
e39dc96d
...
...
@@ -6,7 +6,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,电话服务
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.telephony.sms | sms |
function
hasSmsCapability(): boolean; | 新增 |
| ohos.telephony.sms | sms | hasSmsCapability(): boolean; | 新增 |
| ohos.telephony.sim | CardType | SINGLE_MODE_ISIM_CARD = 60 | 新增 |
| ohos.telephony.sim | CardType | DUAL_MODE_UG_CARD = 50 | 新增 |
| ohos.telephony.sim | CardType | DUAL_MODE_TELECOM_LTE_CARD = 43 | 新增 |
...
...
@@ -17,15 +17,15 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,电话服务
| ohos.telephony.sim | CardType | SINGLE_MODE_USIM_CARD = 20 | 新增 |
| ohos.telephony.sim | CardType | SINGLE_MODE_SIM_CARD = 10 | 新增 |
| ohos.telephony.sim | CardType | UNKNOWN_CARD = -1 | 新增 |
| ohos.telephony.sim | sim |
function hasSimCard(slotId: number, callback: AsyncCallback
<boolean>
): void;
<br>
function hasSimCard(slotId: number): Promise
<boolean>
; | 新增 |
| ohos.telephony.sim | sim |
function
getMaxSimCount(): number; | 新增 |
| ohos.telephony.sim | sim |
function getCardType(slotId: number, callback: AsyncCallback
<CardType>
): void;
<br>
function getCardType(slotId: number): Promise
<CardType>
; | 新增 |
| ohos.telephony.sim | sim |
function hasOperatorPrivileges(slotId: number, callback: AsyncCallback
<boolean>
): void;
<br>
function hasOperatorPrivileges(slotId: number): Promise
<boolean>
; | 新增 |
| ohos.telephony.sim | sim |
function isSimActive(slotId: number, callback: AsyncCallback
<boolean>
): void;
<br>
function isSimActive(slotId: number): Promise
<boolean>
; | 新增 |
| ohos.telephony.sim | sim |
hasSimCard(slotId: number, callback: AsyncCallback
\<
boolean>): void;
<br>
hasSimCard(slotId: number): Promise
\
<
boolean>; | 新增 |
| ohos.telephony.sim | sim | getMaxSimCount(): number; | 新增 |
| ohos.telephony.sim | sim |
getCardType(slotId: number, callback: AsyncCallback
\<
CardType>): void;
<br>
getCardType(slotId: number): Promise
\
<
CardType>; | 新增 |
| ohos.telephony.sim | sim |
hasOperatorPrivileges(slotId: number, callback: AsyncCallback
\<
boolean>): void;
<br>
hasOperatorPrivileges(slotId: number): Promise
\
<
boolean>; | 新增 |
| ohos.telephony.sim | sim |
isSimActive(slotId: number, callback: AsyncCallback
\<
boolean>): void;
<br>
isSimActive(slotId: number): Promise
\
<
boolean>; | 新增 |
| ohos.telephony.radio | NetworkState | cfgTech: RadioTechnology; | 新增 |
| ohos.telephony.radio | radio |
function getOperatorName(slotId: number, callback: AsyncCallback
<string>
): void;
<br>
function getOperatorName(slotId: number): Promise
<string>
; | 新增 |
| ohos.telephony.radio | radio |
function isNrSupported(): boolean;
<br>
function
isNrSupported(slotId: number): boolean; | 新增 |
| ohos.telephony.radio | radio |
function getPrimarySlotId(callback: AsyncCallback
<number>
): void;
<br>
function getPrimarySlotId(): Promise
<number>
; | 新增 |
| ohos.telephony.radio | radio |
getOperatorName(slotId: number, callback: AsyncCallback
\<
string>): void;
<br>
getOperatorName(slotId: number): Promise
\
<
string>; | 新增 |
| ohos.telephony.radio | radio |
isNrSupported(): boolean;
<br>
isNrSupported(slotId: number): boolean; | 新增 |
| ohos.telephony.radio | radio |
getPrimarySlotId(callback: AsyncCallback
\<
number>): void;
<br>
getPrimarySlotId(): Promise
\
<
number>; | 新增 |
| ohos.telephony.observer | LockReason | SIM_SIM_PUK | 新增 |
| ohos.telephony.observer | LockReason | SIM_SIM_PIN | 新增 |
| ohos.telephony.observer | LockReason | SIM_PC_PUK | 新增 |
...
...
@@ -42,12 +42,12 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,电话服务
| ohos.telephony.observer | SimStateData | reason: LockReason; | 新增 |
| ohos.telephony.observer | SimStateData | state: SimState; | 新增 |
| ohos.telephony.observer | SimStateData | type: CardType; | 新增 |
| ohos.telephony.observer | observer |
function off(type: 'simStateChange', callback?: Callback
<SimStateData>
): void; | 新增 |
| ohos.telephony.observer | observer |
function on(type: 'simStateChange', callback: Callback
<SimStateData>
): void;
<br>
function on(type: 'simStateChange', options: { slotId: number }, callback: Callback
<SimStateData>
): void; | 新增 |
| ohos.telephony.observer | observer |
function off(type: 'cellularDataFlowChange', callback?: Callback
<DataFlowType>
): void; | 新增 |
| ohos.telephony.observer | observer |
function on(type: 'cellularDataFlowChange', callback: Callback
<DataFlowType>
): void;
<br>
function on(type: 'cellularDataFlowChange', options: { slotId: number },callback: Callback
<DataFlowType>
): void;
| 新增 |
| ohos.telephony.observer | observer |
function off(type: 'cellularDataConnectionStateChange',callback?: Callback
<
{
state:
DataConnectState
,
network:
RatType
}
>
): void;
| 新增 |
| ohos.telephony.observer | observer |
function on(type: 'cellularDataConnectionStateChange', callback: Callback
<
{
state:
DataConnectState
,
network:
RatType
}
>
): void;
<br>
function on(type: 'cellularDataConnectionStateChange', options: { slotId: number }, callback: Callback
<
{
state:
DataConnectState
,
network:
RatType
}
>
): void; | 新增 |
| ohos.telephony.observer | observer |
off(type: 'simStateChange', callback?: Callback
\
<
SimStateData>): void; | 新增 |
| ohos.telephony.observer | observer |
on(type: 'simStateChange', callback: Callback
\<
SimStateData>): void;
<br>
on(type: 'simStateChange', options: { slotId: number }, callback: Callback
\
<
SimStateData>): void; | 新增 |
| ohos.telephony.observer | observer |
off(type: 'cellularDataFlowChange', callback?: Callback
\
<
DataFlowType>): void; | 新增 |
| ohos.telephony.observer | observer |
on(type: 'cellularDataFlowChange', callback: Callback
\<
DataFlowType>): void;
<br>
on(type: 'cellularDataFlowChange', options: { slotId: number },callback: Callback
\<
DataFlowType>): void;
| 新增 |
| ohos.telephony.observer | observer |
off(type: 'cellularDataConnectionStateChange',callback?: Callback
\<
{ state: DataConnectState, network: RatType }>): void;
| 新增 |
| ohos.telephony.observer | observer |
on(type: 'cellularDataConnectionStateChange', callback: Callback
\<
{ state: DataConnectState, network: RatType }>): void;
<br>
on(type: 'cellularDataConnectionStateChange', options: { slotId: number }, callback: Callback
\
<
{ state: DataConnectState, network: RatType }>): void; | 新增 |
| ohos.telephony.data | DataConnectState | DATA_STATE_SUSPENDED = 3 | 新增 |
| ohos.telephony.data | DataConnectState | DATA_STATE_CONNECTED = 2 | 新增 |
| ohos.telephony.data | DataConnectState | DATA_STATE_CONNECTING = 1 | 新增 |
...
...
@@ -58,13 +58,13 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,电话服务
| ohos.telephony.data | DataFlowType | DATA_FLOW_TYPE_UP = 2 | 新增 |
| ohos.telephony.data | DataFlowType | DATA_FLOW_TYPE_DOWN = 1 | 新增 |
| ohos.telephony.data | DataFlowType | DATA_FLOW_TYPE_NONE = 0 | 新增 |
| ohos.telephony.data | data |
function isCellularDataRoamingEnabled(slotId: number, callback: AsyncCallback
<boolean>
): void;
<br>
function isCellularDataRoamingEnabled(slotId: number): Promise
<boolean>
; | 新增 |
| ohos.telephony.data | data |
function isCellularDataEnabled(callback: AsyncCallback
<boolean>
): void;
<br>
function isCellularDataEnabled(): Promise
<boolean>
; | 新增 |
| ohos.telephony.data | data |
function getCellularDataState(callback: AsyncCallback
<DataConnectState>
): void;
<br>
function getCellularDataState(): Promise
<DataConnectState>
; | 新增 |
| ohos.telephony.data | data |
function getCellularDataFlowType(callback: AsyncCallback
<DataFlowType>
): void;
<br>
function getCellularDataFlowType(): Promise
<DataFlowType>
; | 新增 |
| ohos.telephony.data | data |
function getDefaultCellularDataSlotId(callback: AsyncCallback
<number>
): void;
<br>
function getDefaultCellularDataSlotId(): Promise
<number>
; | 新增 |
| ohos.telephony.call | call |
function
hasVoiceCapability(): boolean; | 新增 |
| ohos.telephony.call | call |
function makeCall(phoneNumber: string, callback: AsyncCallback
<void>
): void;
<br>
function makeCall(phoneNumber: string): Promise
<void>
; | 新增 |
| ohos.telephony.data | data |
isCellularDataRoamingEnabled(slotId: number, callback: AsyncCallback
\<
boolean>): void;
<br>
isCellularDataRoamingEnabled(slotId: number): Promise
\
<
boolean>; | 新增 |
| ohos.telephony.data | data |
isCellularDataEnabled(callback: AsyncCallback
\<
boolean>): void;
<br>
isCellularDataEnabled(): Promise
\
<
boolean>; | 新增 |
| ohos.telephony.data | data |
getCellularDataState(callback: AsyncCallback
\<
DataConnectState>): void;
<br>
getCellularDataState(): Promise
\
<
DataConnectState>; | 新增 |
| ohos.telephony.data | data |
getCellularDataFlowType(callback: AsyncCallback
\<
DataFlowType>): void;
<br>
getCellularDataFlowType(): Promise
\
<
DataFlowType>; | 新增 |
| ohos.telephony.data | data |
getDefaultCellularDataSlotId(callback: AsyncCallback
\<
number>): void;
<br>
getDefaultCellularDataSlotId(): Promise
\
<
number>; | 新增 |
| ohos.telephony.call | call | hasVoiceCapability(): boolean; | 新增 |
| ohos.telephony.call | call |
makeCall(phoneNumber: string, callback: AsyncCallback
\<
void>): void;
<br>
makeCall(phoneNumber: string): Promise
\
<
void>; | 新增 |
| ohos.contact | Website | website: string | 新增 |
| ohos.contact | SipAddress | labelId: number | 新增 |
| ohos.contact | SipAddress | sipAddress: string | 新增 |
...
...
@@ -214,17 +214,17 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,电话服务
| ohos.contact | Contact | readonly key: string | 新增 |
| ohos.contact | Contact | readonly id: number | 新增 |
| ohos.contact | Contact | static readonly INVALID_CONTACT_ID: -1 | 新增 |
| ohos.contact | contact |
function isMyCard(id: number, callback: AsyncCallback
<boolean>
): void;
<br>
function isMyCard(id: number): Promise
<boolean>
; | 新增 |
| ohos.contact | contact |
function isLocalContact(id: number, callback: AsyncCallback
<boolean>
): void;
<br>
function isLocalContact(id: number): Promise
<boolean>
; | 新增 |
| ohos.contact | contact |
function updateContact(contact: Contact, callback: AsyncCallback
<void>
): void;
<br>
function updateContact(contact: Contact, attrs: ContactAttributes, callback: AsyncCallback
<void>
): void;
<br>
function updateContact(contact: Contact, attrs?: ContactAttributes): Promise
<void>
; | 新增 |
| ohos.contact | contact |
function queryMyCard(callback: AsyncCallback
<Contact>
): void;
<br>
function queryMyCard(attrs: ContactAttributes, callback: AsyncCallback
<Contact>
): void;
<br>
function queryMyCard(attrs?: ContactAttributes): Promise
<Contact>
; | 新增 |
| ohos.contact | contact |
function queryKey(id: number, callback: AsyncCallback
<string>
): void;
<br>
function queryKey(id: number, holder: Holder, callback: AsyncCallback
<string>
): void;
<br>
function queryKey(id: number, holder?: Holder): Promise
<string>
; | 新增 |
| ohos.contact | contact |
function queryHolders(callback: AsyncCallback
<Array
<
Holder
>
>): void;
<br>
function queryHolders(): Promise
<Array
<
Holder
>
>; | 新增 |
| ohos.contact | contact |
function queryGroups(callback: AsyncCallback
<Array
<
Group
>
>): void;
<br>
function queryGroups(holder: Holder, callback: AsyncCallback
<Array
<
Group
>
>): void;
<br>
function queryGroups(holder?: Holder): Promise
<Array
<
Group
>
>; | 新增 |
| ohos.contact | contact |
function queryContactsByPhoneNumber(phoneNumber: string, callback: AsyncCallback
<Array
<
Contact
>
>): void;
<br>
function queryContactsByPhoneNumber(phoneNumber: string, holder: Holder, callback: AsyncCallback
<Array
<
Contact
>
>): void;
<br>
function queryContactsByPhoneNumber(phoneNumber: string, attrs: ContactAttributes, callback: AsyncCallback
<Array
<
Contact
>
>): void;
<br>
function queryContactsByPhoneNumber(phoneNumber: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback
<Array
<
Contact
>
>): void;
<br>
function queryContactsByPhoneNumber(phoneNumber: string, holder?: Holder, attrs?: ContactAttributes): Promise
<Array
<
Contact
>
>; | 新增 |
| ohos.contact | contact |
function queryContactsByEmail(email: string, callback: AsyncCallback
<Array
<
Contact
>
>): void;
<br>
function queryContactsByEmail(email: string, holder: Holder, callback: AsyncCallback
<Array
<
Contact
>
>): void;
<br>
function queryContactsByEmail(email: string, attrs: ContactAttributes, callback: AsyncCallback
<Array
<
Contact
>
>): void;
<br>
function queryContactsByEmail(email: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback
<Array
<
Contact
>
>): void;
<br>
function queryContactsByEmail(email: string, holder?: Holder, attrs?: ContactAttributes): Promise
<Array
<
Contact
>
>; | 新增 |
| ohos.contact | contact |
function queryContacts(callback: AsyncCallback
<Array
<
Contact
>
>): void;
<br>
function queryContacts(holder: Holder, callback: AsyncCallback
<Array
<
Contact
>
>): void;
<br>
function queryContacts(attrs: ContactAttributes, callback: AsyncCallback
<Array
<
Contact
>
>): void;
<br>
function queryContacts(holder: Holder, attrs: ContactAttributes, callback: AsyncCallback
<Array
<
Contact
>
>): void;
<br>
function queryContacts(holder?: Holder, attrs?: ContactAttributes): Promise
<Array
<
Contact
>
>; | 新增 |
| ohos.contact | contact |
function queryContact(key: string, callback: AsyncCallback
<Contact>
): void;
<br>
function queryContact(key: string, holder: Holder, callback: AsyncCallback
<Contact>
): void;
<br>
function queryContact(key: string, attrs: ContactAttributes, callback: AsyncCallback
<Contact>
): void;
<br>
function queryContact(key: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback
<Contact>
): void;
<br>
function queryContact(key: string, holder?: Holder, attrs?: ContactAttributes): Promise
<Contact>
; | 新增 |
| ohos.contact | contact |
function deleteContact(key: string, callback: AsyncCallback
<void>
): void;
<br>
function deleteContact(key: string): Promise
<void>
; | 新增 |
| ohos.contact | contact |
function selectContact(callback: AsyncCallback
<Array
<
Contact
>
>): void;
<br>
function selectContact(): Promise
<Array
<
Contact
>
>; | 新增 |
| ohos.contact | contact |
function addContact(contact: Contact, callback: AsyncCallback
<number>
): void;
<br>
function addContact(contact: Contact): Promise
<number>
; | 新增 |
| ohos.contact | contact |
isMyCard(id: number, callback: AsyncCallback
\<
boolean>): void;
<br>
isMyCard(id: number): Promise
\
<
boolean>; | 新增 |
| ohos.contact | contact |
isLocalContact(id: number, callback: AsyncCallback
\<
boolean>): void;
<br>
isLocalContact(id: number): Promise
\
<
boolean>; | 新增 |
| ohos.contact | contact |
updateContact(contact: Contact, callback: AsyncCallback
\<
void>): void;
<br>
updateContact(contact: Contact, attrs: ContactAttributes, callback: AsyncCallback
\<
void>): void;
<br>
updateContact(contact: Contact, attrs?: ContactAttributes): Promise
\
<
void>; | 新增 |
| ohos.contact | contact |
queryMyCard(callback: AsyncCallback
\<
Contact>): void;
<br>
queryMyCard(attrs: ContactAttributes, callback: AsyncCallback
\<
Contact>): void;
<br>
queryMyCard(attrs?: ContactAttributes): Promise
\
<
Contact>; | 新增 |
| ohos.contact | contact |
queryKey(id: number, callback: AsyncCallback
\<
string>): void;
<br>
queryKey(id: number, holder: Holder, callback: AsyncCallback
\<
string>): void;
<br>
queryKey(id: number, holder?: Holder): Promise
\
<
string>; | 新增 |
| ohos.contact | contact |
queryHolders(callback: AsyncCallback
\<
Array
\<
Holder>>): void;
<br>
queryHolders(): Promise
\<
Array
\
<
Holder>>; | 新增 |
| ohos.contact | contact |
queryGroups(callback: AsyncCallback
\<
Array
\<
Group>>): void;
<br>
queryGroups(holder: Holder, callback: AsyncCallback
\<
Array
\<
Group>>): void;
<br>
queryGroups(holder?: Holder): Promise
\<
Array
\
<
Group>>; | 新增 |
| ohos.contact | contact |
queryContactsByPhoneNumber(phoneNumber: string, callback: AsyncCallback
\<
Array
\<
Contact>>): void;
<br>
queryContactsByPhoneNumber(phoneNumber: string, holder: Holder, callback: AsyncCallback
\<
Array
\<
Contact>>): void;
<br>
queryContactsByPhoneNumber(phoneNumber: string, attrs: ContactAttributes, callback: AsyncCallback
\<
Array
\<
Contact>>): void;
<br>
queryContactsByPhoneNumber(phoneNumber: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback
\<
Array
\<
Contact>>): void;
<br>
queryContactsByPhoneNumber(phoneNumber: string, holder?: Holder, attrs?: ContactAttributes): Promise
\<
Array
\
<
Contact>>; | 新增 |
| ohos.contact | contact |
queryContactsByEmail(email: string, callback: AsyncCallback
\<
Array
\<
Contact>>): void;
<br>
queryContactsByEmail(email: string, holder: Holder, callback: AsyncCallback
\<
Array
\<
Contact>>): void;
<br>
queryContactsByEmail(email: string, attrs: ContactAttributes, callback: AsyncCallback
\<
Array
\<
Contact>>): void;
<br>
queryContactsByEmail(email: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback
\<
Array
\<
Contact>>): void;
<br>
queryContactsByEmail(email: string, holder?: Holder, attrs?: ContactAttributes): Promise
\<
Array
\
<
Contact>>; | 新增 |
| ohos.contact | contact |
queryContacts(callback: AsyncCallback
\<
Array
\<
Contact>>): void;
<br>
queryContacts(holder: Holder, callback: AsyncCallback
\<
Array
\<
Contact>>): void;
<br>
queryContacts(attrs: ContactAttributes, callback: AsyncCallback
\<
Array
\<
Contact>>): void;
<br>
queryContacts(holder: Holder, attrs: ContactAttributes, callback: AsyncCallback
\<
Array
\<
Contact>>): void;
<br>
queryContacts(holder?: Holder, attrs?: ContactAttributes): Promise
\<
Array
\
<
Contact>>; | 新增 |
| ohos.contact | contact |
queryContact(key: string, callback: AsyncCallback
\<
Contact>): void;
<br>
queryContact(key: string, holder: Holder, callback: AsyncCallback
\<
Contact>): void;
<br>
queryContact(key: string, attrs: ContactAttributes, callback: AsyncCallback
\<
Contact>): void;
<br>
queryContact(key: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback
\<
Contact>): void;
<br>
queryContact(key: string, holder?: Holder, attrs?: ContactAttributes): Promise
\
<
Contact>; | 新增 |
| ohos.contact | contact |
deleteContact(key: string, callback: AsyncCallback
\<
void>): void;
<br>
deleteContact(key: string): Promise
\
<
void>; | 新增 |
| ohos.contact | contact |
selectContact(callback: AsyncCallback
\<
Array
\<
Contact>>): void;
<br>
selectContact(): Promise
\<
Array
\
<
Contact>>; | 新增 |
| ohos.contact | contact |
addContact(contact: Contact, callback: AsyncCallback
\<
number>): void;
<br>
addContact(contact: Contact): Promise
\
<
number>; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md
浏览文件 @
e39dc96d
...
...
@@ -6,32 +6,32 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,测试框架
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.uitest | UiDriver | screenCap(savePath:string):Promise
<bool>
; | 新增 |
| ohos.uitest | UiDriver | swipe(startx:number,starty:number,endx:number,endy:number):Promise
<void>
; | 新增 |
| ohos.uitest | UiDriver | longClick(x:number,y:number):Promise
<void>
; | 新增 |
| ohos.uitest | UiDriver | doubleClick(x:number,y:number):Promise
<void>
; | 新增 |
| ohos.uitest | UiDriver | click(x:number,y:number):Promise
<void>
; | 新增 |
| ohos.uitest | UiDriver | triggerKey(keyCode:number):Promise
<void>
; | 新增 |
| ohos.uitest | UiDriver | pressBack():Promise
<void>
; | 新增 |
| ohos.uitest | UiDriver | assertComponentExist(by:By):Promise
<void>
; | 新增 |
| ohos.uitest | UiDriver | findComponents(by:By):Promise
<Array
<
UiComponent
>
>; | 新增 |
| ohos.uitest | UiDriver | findComponent(by:By):Promise
<UiComponent>
; | 新增 |
| ohos.uitest | UiDriver | delayMs(duration:number):Promise
<void>
; | 新增 |
| ohos.uitest | UiDriver | screenCap(savePath:string):Promise
\
<
bool>; | 新增 |
| ohos.uitest | UiDriver | swipe(startx:number,starty:number,endx:number,endy:number):Promise
\
<
void>; | 新增 |
| ohos.uitest | UiDriver | longClick(x:number,y:number):Promise
\
<
void>; | 新增 |
| ohos.uitest | UiDriver | doubleClick(x:number,y:number):Promise
\
<
void>; | 新增 |
| ohos.uitest | UiDriver | click(x:number,y:number):Promise
\
<
void>; | 新增 |
| ohos.uitest | UiDriver | triggerKey(keyCode:number):Promise
\
<
void>; | 新增 |
| ohos.uitest | UiDriver | pressBack():Promise
\
<
void>; | 新增 |
| ohos.uitest | UiDriver | assertComponentExist(by:By):Promise
\
<
void>; | 新增 |
| ohos.uitest | UiDriver | findComponents(by:By):Promise
\<
Array
\
<
UiComponent>>; | 新增 |
| ohos.uitest | UiDriver | findComponent(by:By):Promise
\
<
UiComponent>; | 新增 |
| ohos.uitest | UiDriver | delayMs(duration:number):Promise
\
<
void>; | 新增 |
| ohos.uitest | UiDriver | static create():UiDriver; | 新增 |
| ohos.uitest | UiComponent | scrollSearch(by:By):Promise
<UiComponent>
; | 新增 |
| ohos.uitest | UiComponent | inputText(text: string):Promise
<void>
; | 新增 |
| ohos.uitest | UiComponent | isSelected():Promise
<bool>
; | 新增 |
| ohos.uitest | UiComponent | isFocused():Promise
<bool>
; | 新增 |
| ohos.uitest | UiComponent | isEnabled():Promise
<bool>
; | 新增 |
| ohos.uitest | UiComponent | isScrollable():Promise
<bool>
; | 新增 |
| ohos.uitest | UiComponent | isClickable():Promise
<bool>
; | 新增 |
| ohos.uitest | UiComponent | getType():Promise
<string>
; | 新增 |
| ohos.uitest | UiComponent | getText():Promise
<string>
; | 新增 |
| ohos.uitest | UiComponent | getKey():Promise
<string>
; | 新增 |
| ohos.uitest | UiComponent | getId():Promise
<number>
; | 新增 |
| ohos.uitest | UiComponent | longClick():Promise
<void>
; | 新增 |
| ohos.uitest | UiComponent | doubleClick():Promise
<void>
; | 新增 |
| ohos.uitest | UiComponent | click():Promise
<void>
; | 新增 |
| ohos.uitest | UiComponent | scrollSearch(by:By):Promise
\
<
UiComponent>; | 新增 |
| ohos.uitest | UiComponent | inputText(text: string):Promise
\
<
void>; | 新增 |
| ohos.uitest | UiComponent | isSelected():Promise
\
<
bool>; | 新增 |
| ohos.uitest | UiComponent | isFocused():Promise
\
<
bool>; | 新增 |
| ohos.uitest | UiComponent | isEnabled():Promise
\
<
bool>; | 新增 |
| ohos.uitest | UiComponent | isScrollable():Promise
\
<
bool>; | 新增 |
| ohos.uitest | UiComponent | isClickable():Promise
\
<
bool>; | 新增 |
| ohos.uitest | UiComponent | getType():Promise
\
<
string>; | 新增 |
| ohos.uitest | UiComponent | getText():Promise
\
<
string>; | 新增 |
| ohos.uitest | UiComponent | getKey():Promise
\
<
string>; | 新增 |
| ohos.uitest | UiComponent | getId():Promise
\
<
number>; | 新增 |
| ohos.uitest | UiComponent | longClick():Promise
\
<
void>; | 新增 |
| ohos.uitest | UiComponent | doubleClick():Promise
\
<
void>; | 新增 |
| ohos.uitest | UiComponent | click():Promise
\
<
void>; | 新增 |
| ohos.uitest | By | isAfter(by:By):By; | 新增 |
| ohos.uitest | By | isBefore(by:By):By; | 新增 |
| ohos.uitest | By | selected(b?:bool):By; | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-usb.md
浏览文件 @
e39dc96d
...
...
@@ -23,7 +23,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,USB服务子
| ohos.usb | USBControlParams | request: number; | 新增 |
| ohos.usb | USBDevicePipe | devAddress: number; | 新增 |
| ohos.usb | USBDevicePipe | busNum: number; | 新增 |
| ohos.usb | USBDevice | configs: Array
<USBConfig>
; | 新增 |
| ohos.usb | USBDevice | configs: Array
\
<
USBConfig>; | 新增 |
| ohos.usb | USBDevice | protocol: number; | 新增 |
| ohos.usb | USBDevice | subClass: number; | 新增 |
| ohos.usb | USBDevice | clazz: number; | 新增 |
...
...
@@ -36,14 +36,14 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,USB服务子
| ohos.usb | USBDevice | serial: string; | 新增 |
| ohos.usb | USBDevice | devAddress: number; | 新增 |
| ohos.usb | USBDevice | busNum: number; | 新增 |
| ohos.usb | USBConfig | interfaces: Array
<USBInterface>
; | 新增 |
| ohos.usb | USBConfig | interfaces: Array
\
<
USBInterface>; | 新增 |
| ohos.usb | USBConfig | isSelfPowered: boolean; | 新增 |
| ohos.usb | USBConfig | isRemoteWakeup: boolean; | 新增 |
| ohos.usb | USBConfig | name: string; | 新增 |
| ohos.usb | USBConfig | maxPower: number; | 新增 |
| ohos.usb | USBConfig | attributes: number; | 新增 |
| ohos.usb | USBConfig | id: number; | 新增 |
| ohos.usb | USBInterface | endpoints: Array
<USBEndpoint>
; | 新增 |
| ohos.usb | USBInterface | endpoints: Array
\
<
USBEndpoint>; | 新增 |
| ohos.usb | USBInterface | name: string; | 新增 |
| ohos.usb | USBInterface | alternateSetting: number; | 新增 |
| ohos.usb | USBInterface | subClass: number; | 新增 |
...
...
@@ -58,16 +58,16 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,USB服务子
| ohos.usb | USBEndpoint | interval: number; | 新增 |
| ohos.usb | USBEndpoint | attributes: number; | 新增 |
| ohos.usb | USBEndpoint | address: number; | 新增 |
| ohos.usb | usb |
function
closePipe(pipe: USBDevicePipe): number; | 新增 |
| ohos.usb | usb |
function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,timeout?: number): Promise
<number>
; | 新增 |
| ohos.usb | usb |
function controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise
<number>
; | 新增 |
| ohos.usb | usb |
function
getFileDescriptor(pipe: USBDevicePipe): number; | 新增 |
| ohos.usb | usb |
function
getRawDescriptor(pipe: USBDevicePipe): Uint8Array; | 新增 |
| ohos.usb | usb |
function
setInterface(pipe: USBDevicePipe, iface: USBInterface): number; | 新增 |
| ohos.usb | usb |
function
setConfiguration(pipe: USBDevicePipe, config: USBConfig): number; | 新增 |
| ohos.usb | usb |
function
releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number; | 新增 |
| ohos.usb | usb |
function
claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number; | 新增 |
| ohos.usb | usb |
function requestRight(deviceName: string): Promise
<boolean>
; | 新增 |
| ohos.usb | usb |
function
hasRight(deviceName: string): boolean; | 新增 |
| ohos.usb | usb |
function connectDevice(device: USBDevice): Readonly
<USBDevicePipe>
; | 新增 |
| ohos.usb | usb |
function getDevices(): Array
<Readonly
<
USBDevice
>
>; | 新增 |
| ohos.usb | usb | closePipe(pipe: USBDevicePipe): number; | 新增 |
| ohos.usb | usb |
bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,timeout?: number): Promise
\
<
number>; | 新增 |
| ohos.usb | usb |
controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise
\
<
number>; | 新增 |
| ohos.usb | usb | getFileDescriptor(pipe: USBDevicePipe): number; | 新增 |
| ohos.usb | usb | getRawDescriptor(pipe: USBDevicePipe): Uint8Array; | 新增 |
| ohos.usb | usb | setInterface(pipe: USBDevicePipe, iface: USBInterface): number; | 新增 |
| ohos.usb | usb | setConfiguration(pipe: USBDevicePipe, config: USBConfig): number; | 新增 |
| ohos.usb | usb | releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number; | 新增 |
| ohos.usb | usb | claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number; | 新增 |
| ohos.usb | usb |
requestRight(deviceName: string): Promise
\
<
boolean>; | 新增 |
| ohos.usb | usb | hasRight(deviceName: string): boolean; | 新增 |
| ohos.usb | usb |
connectDevice(device: USBDevice): Readonly
\
<
USBDevicePipe>; | 新增 |
| ohos.usb | usb |
getDevices(): Array
\<
Readonly
\
<
USBDevice>>; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md
浏览文件 @
e39dc96d
...
...
@@ -51,7 +51,7 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,用户身份
| ohos.userIAM.userAuth | UserAuth | getVersion() : number; | 新增 |
| ohos.userIAM.userAuth | UserAuth | constructor(); | 新增 |
| ohos.userIAM.userAuth | userAuth | function getAuthenticator(): Authenticator; | 新增 |
| ohos.userIAM.userAuth | Authenticator | execute(type: AuthType, level: SecureLevel, callback: AsyncCallback
<number>
): void;
<br>
execute(type: AuthType, level: SecureLevel): Promise
<number>
; | 新增 |
| ohos.userIAM.userAuth | Authenticator | execute(type: AuthType, level: SecureLevel, callback: AsyncCallback
\<
number>): void;
<br>
execute(type: AuthType, level: SecureLevel): Promise
\
<
number>; | 新增 |
| ohos.userIAM.userAuth | AuthenticationResult | GENERAL_ERROR = 100 | 新增 |
| ohos.userIAM.userAuth | AuthenticationResult | NOT_ENROLLED = 8 | 新增 |
| ohos.userIAM.userAuth | AuthenticationResult | LOCKED = 7 | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-window.md
浏览文件 @
e39dc96d
...
...
@@ -6,35 +6,35 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,窗口管理
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.window | Window | setTouchable(isTouchable: boolean): Promise
<void>
;
<br>
setTouchable(isTouchable: boolean, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.window | Window | setPrivacyMode(isPrivacyMode: boolean): Promise
<void>
;
<br>
setPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.window | Window | setOutsideTouchable(touchable: boolean): Promise
<void>
;
<br>
setOutsideTouchable(touchable: boolean, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.window | Window | setKeepScreenOn(isKeepScreenOn: boolean): Promise
<void>
;
<br>
setKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.window | Window | setFocusable(isFocusable: boolean): Promise
<void>
;
<br>
setFocusable(isFocusable: boolean, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.window | Window | setDimBehind(dimBehindValue: number, callback: AsyncCallback
<void>
): void;
<br>
setDimBehind(dimBehindValue: number): Promise
<void>
; | 新增 |
| ohos.window | Window | setBrightness(brightness: number): Promise
<void>
;
<br>
setBrightness(brightness: number, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.window | Window | setBackgroundColor(color: string): Promise
<void>
;
<br>
setBackgroundColor(color: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.window | Window | getColorSpace(): Promise
<ColorSpace>
;
<br>
getColorSpace(callback: AsyncCallback
<ColorSpace>
): void; | 新增 |
| ohos.window | Window | setColorSpace(colorSpace:ColorSpace): Promise
<void>
;
<br>
setColorSpace(colorSpace:ColorSpace, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.window | Window | isSupportWideGamut(): Promise
<boolean>
;
<br>
isSupportWideGamut(callback: AsyncCallback
<boolean>
): void; | 新增 |
| ohos.window | Window | off(type: 'keyboardHeightChange', callback?: Callback
<number>
): void; | 新增 |
| ohos.window | Window | on(type: 'keyboardHeightChange', callback: Callback
<number>
): void; | 新增 |
| ohos.window | Window | off(type: 'systemAvoidAreaChange', callback?: Callback
<AvoidArea>
): void; | 新增 |
| ohos.window | Window | on(type: 'systemAvoidAreaChange', callback: Callback
<AvoidArea>
): void; | 新增 |
| ohos.window | Window | off(type: 'windowSizeChange', callback?: Callback
<Size>
): void; | 新增 |
| ohos.window | Window | on(type: 'windowSizeChange', callback: Callback
<Size>
): void; | 新增 |
| ohos.window | Window | isShowing(callback: AsyncCallback
<boolean>
): void;
<br>
isShowing(): Promise
<boolean>
; | 新增 |
| ohos.window | Window | loadContent(path: string, callback: AsyncCallback
<void>
): void;
<br>
loadContent(path: string): Promise
<void>
; | 新增 |
| ohos.window | Window | setSystemBarProperties(systemBarProperties: SystemBarProperties, callback: AsyncCallback
<void>
): void;
<br>
setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise
<void>
; | 新增 |
| ohos.window | Window | setSystemBarEnable(names: Array
<
'
status
'\|'
navigation
'
>
, callback: AsyncCallback
<void>
): void;
<br>
setSystemBarEnable(names: Array
<
'
status
'\|'
navigation
'
>
): Promise
<void>
; | 新增 |
| ohos.window | Window | setLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback
<void>
): void;
<br>
setLayoutFullScreen(isLayoutFullScreen: boolean): Promise
<void>
; | 新增 |
| ohos.window | Window | setFullScreen(isFullScreen: boolean, callback: AsyncCallback
<void>
): void;
<br>
setFullScreen(isFullScreen: boolean): Promise
<void>
; | 新增 |
| ohos.window | Window | getAvoidArea(type: AvoidAreaType, callback: AsyncCallback
<AvoidArea>
): void;
<br>
getAvoidArea(type: AvoidAreaType): Promise
<AvoidArea>
; | 新增 |
| ohos.window | Window | getProperties(callback: AsyncCallback
<WindowProperties>
): void;
<br>
getProperties(): Promise
<WindowProperties>
; | 新增 |
| ohos.window | Window | destroy(callback: AsyncCallback
<void>
): void;
<br>
destroy(): Promise
<void>
; | 新增 |
| ohos.window | Window | show(callback: AsyncCallback
<void>
): void;
<br>
show(): Promise
<void>
; | 新增 |
| ohos.window | window | f
unction find(id: string, callback: AsyncCallback
<Window>
): void;
<br>
function find(id: string): Promise
<Window>
; | 新增 |
| ohos.window | window |
function create(id: string, type: WindowType, callback: AsyncCallback
<Window>
): void;
<br>
function create(id: string, type: WindowType): Promise
<Window>
;
<br>
function create(ctx: Context, id: string, type: WindowType): Promise
<Window>
;
<br>
function create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback
<Window>
): void; | 新增 |
| ohos.window | Window | setTouchable(isTouchable: boolean): Promise
\<
void>;
<br>
setTouchable(isTouchable: boolean, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.window | Window | setPrivacyMode(isPrivacyMode: boolean): Promise
\<
void>;
<br>
setPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.window | Window | setOutsideTouchable(touchable: boolean): Promise
\<
void>;
<br>
setOutsideTouchable(touchable: boolean, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.window | Window | setKeepScreenOn(isKeepScreenOn: boolean): Promise
\<
void>;
<br>
setKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.window | Window | setFocusable(isFocusable: boolean): Promise
\<
void>;
<br>
setFocusable(isFocusable: boolean, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.window | Window | setDimBehind(dimBehindValue: number, callback: AsyncCallback
\<
void>): void;
<br>
setDimBehind(dimBehindValue: number): Promise
\
<
void>; | 新增 |
| ohos.window | Window | setBrightness(brightness: number): Promise
\<
void>;
<br>
setBrightness(brightness: number, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.window | Window | setBackgroundColor(color: string): Promise
\<
void>;
<br>
setBackgroundColor(color: string, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.window | Window | getColorSpace(): Promise
\<
ColorSpace>;
<br>
getColorSpace(callback: AsyncCallback
\
<
ColorSpace>): void; | 新增 |
| ohos.window | Window | setColorSpace(colorSpace:ColorSpace): Promise
\<
void>;
<br>
setColorSpace(colorSpace:ColorSpace, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.window | Window | isSupportWideGamut(): Promise
\<
boolean>;
<br>
isSupportWideGamut(callback: AsyncCallback
\
<
boolean>): void; | 新增 |
| ohos.window | Window | off(type: 'keyboardHeightChange', callback?: Callback
\
<
number>): void; | 新增 |
| ohos.window | Window | on(type: 'keyboardHeightChange', callback: Callback
\
<
number>): void; | 新增 |
| ohos.window | Window | off(type: 'systemAvoidAreaChange', callback?: Callback
\
<
AvoidArea>): void; | 新增 |
| ohos.window | Window | on(type: 'systemAvoidAreaChange', callback: Callback
\
<
AvoidArea>): void; | 新增 |
| ohos.window | Window | off(type: 'windowSizeChange', callback?: Callback
\
<
Size>): void; | 新增 |
| ohos.window | Window | on(type: 'windowSizeChange', callback: Callback
\
<
Size>): void; | 新增 |
| ohos.window | Window | isShowing(callback: AsyncCallback
\<
boolean>): void;
<br>
isShowing(): Promise
\
<
boolean>; | 新增 |
| ohos.window | Window | loadContent(path: string, callback: AsyncCallback
\<
void>): void;
<br>
loadContent(path: string): Promise
\
<
void>; | 新增 |
| ohos.window | Window | setSystemBarProperties(systemBarProperties: SystemBarProperties, callback: AsyncCallback
\<
void>): void;
<br>
setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise
\
<
void>; | 新增 |
| ohos.window | Window | setSystemBarEnable(names: Array
\<
'status'
\|
'navigation'>, callback: AsyncCallback
\<
void>): void;
<br>
setSystemBarEnable(names: Array
\<
'status'
\|
'navigation'>): Promise
\
<
void>; | 新增 |
| ohos.window | Window | setLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback
\<
void>): void;
<br>
setLayoutFullScreen(isLayoutFullScreen: boolean): Promise
\
<
void>; | 新增 |
| ohos.window | Window | setFullScreen(isFullScreen: boolean, callback: AsyncCallback
\<
void>): void;
<br>
setFullScreen(isFullScreen: boolean): Promise
\
<
void>; | 新增 |
| ohos.window | Window | getAvoidArea(type: AvoidAreaType, callback: AsyncCallback
\<
AvoidArea>): void;
<br>
getAvoidArea(type: AvoidAreaType): Promise
\
<
AvoidArea>; | 新增 |
| ohos.window | Window | getProperties(callback: AsyncCallback
\<
WindowProperties>): void;
<br>
getProperties(): Promise
\
<
WindowProperties>; | 新增 |
| ohos.window | Window | destroy(callback: AsyncCallback
\<
void>): void;
<br>
destroy(): Promise
\
<
void>; | 新增 |
| ohos.window | Window | show(callback: AsyncCallback
\<
void>): void;
<br>
show(): Promise
\
<
void>; | 新增 |
| ohos.window | window | f
ind(id: string, callback: AsyncCallback
\<
Window>): void;
<br>
find(id: string): Promise
\
<
Window>; | 新增 |
| ohos.window | window |
create(id: string, type: WindowType, callback: AsyncCallback
\<
Window>): void;
<br>
create(id: string, type: WindowType): Promise
\<
Window>;
<br>
create(ctx: Context, id: string, type: WindowType): Promise
\<
Window>;
<br>
create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback
\
<
Window>): void; | 新增 |
| ohos.window | ColorSpace | WIDE_GAMUT | 新增 |
| ohos.window | ColorSpace | DEFAULT | 新增 |
| ohos.window | WindowProperties | isTransparent: boolean | 新增 |
...
...
@@ -87,11 +87,11 @@ OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,窗口管理
| ohos.display | DisplayState | STATE_ON | 新增 |
| ohos.display | DisplayState | STATE_OFF | 新增 |
| ohos.display | DisplayState | STATE_UNKNOWN = 0 | 新增 |
| ohos.display | display |
function off(type: 'add'
\|
'remove'
\|
'change', callback?: Callback
<number>
): void; | 新增 |
| ohos.display | display |
function off(type: 'add'
\|
'remove'
\|
'change', callback?: Callback
<number>
): void; | 新增 |
| ohos.display | display |
function off(type: 'add'
\|
'remove'
\|
'change', callback?: Callback
<number>
): void; | 新增 |
| ohos.display | display |
function on(type: 'add'
\|
'remove'
\|
'change', callback: Callback
<number>
): void; | 新增 |
| ohos.display | display |
function on(type: 'add'
\|
'remove'
\|
'change', callback: Callback
<number>
): void; | 新增 |
| ohos.display | display |
function on(type: 'add'
\|
'remove'
\|
'change', callback: Callback
<number>
): void; | 新增 |
| ohos.display | display |
function getAllDisplay(callback: AsyncCallback
<Array
<
Display
>
>): void;
<br>
function getAllDisplay(): Promise
<Array
<
Display
>
>; | 新增 |
| ohos.display | display |
function getDefaultDisplay(callback: AsyncCallback
<Display>
): void;
<br>
function getDefaultDisplay(): Promise
<Display>
; | 新增 |
| ohos.display | display |
off(type: 'add'
\|
'remove'
\|
'change', callback?: Callback
\
<
number>): void; | 新增 |
| ohos.display | display |
off(type: 'add'
\|
'remove'
\|
'change', callback?: Callback
\
<
number>): void; | 新增 |
| ohos.display | display |
off(type: 'add'
\|
'remove'
\|
'change', callback?: Callback
\
<
number>): void; | 新增 |
| ohos.display | display |
on(type: 'add'
\|
'remove'
\|
'change', callback: Callback
\
<
number>): void; | 新增 |
| ohos.display | display |
on(type: 'add'
\|
'remove'
\|
'change', callback: Callback
\
<
number>): void; | 新增 |
| ohos.display | display |
on(type: 'add'
\|
'remove'
\|
'change', callback: Callback
\
<
number>): void; | 新增 |
| ohos.display | display |
getAllDisplay(callback: AsyncCallback
\<
Array
\<
Display>>): void;
<br>
getAllDisplay(): Promise
\<
Array
\
<
Display>>; | 新增 |
| ohos.display | display |
getDefaultDisplay(callback: AsyncCallback
\<
Display>): void;
<br>
getDefaultDisplay(): Promise
\
<
Display>; | 新增 |
zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-window_api-9-canary.md
浏览文件 @
e39dc96d
...
...
@@ -6,10 +6,10 @@ OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,窗口管
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.window | WindowStage | loadContent(path: string, storage: ContentStorage, callback: AsyncCallback
<void>
): void;
<br>
loadContent(path: string, storage?: ContentStorage): Promise
<void>
;
<br>
loadContent(path: string, callback: AsyncCallback
<void>
): void; | 新增 |
| ohos.window | WindowStage | getSubWindow(): Promise
<Array
<
Window
>
>;
<br>
getSubWindow(callback: AsyncCallback
<Array
<
Window
>
>): void; | 新增 |
| ohos.window | WindowStage | createSubWindow(name: string): Promise
<Window>
;
<br>
createSubWindow(name: string, callback: AsyncCallback
<Window>
): void; | 新增 |
| ohos.window | WindowStage | getMainWindow(): Promise
<Window>
;
<br>
getMainWindow(callback: AsyncCallback
<Window>
): void; | 新增 |
| ohos.window | WindowStage | loadContent(path: string, storage: ContentStorage, callback: AsyncCallback
\<
void>): void;
<br>
loadContent(path: string, storage?: ContentStorage): Promise
\<
void>;
<br>
loadContent(path: string, callback: AsyncCallback
\
<
void>): void; | 新增 |
| ohos.window | WindowStage | getSubWindow(): Promise
\<
Array
\<
Window>>;
<br>
getSubWindow(callback: AsyncCallback
\<
Array
\
<
Window>>): void; | 新增 |
| ohos.window | WindowStage | createSubWindow(name: string): Promise
\<
Window>;
<br>
createSubWindow(name: string, callback: AsyncCallback
\
<
Window>): void; | 新增 |
| ohos.window | WindowStage | getMainWindow(): Promise
\<
Window>;
<br>
getMainWindow(callback: AsyncCallback
\
<
Window>): void; | 新增 |
| ohos.window | WindowStageEventType | BACKGROUND | 新增 |
| ohos.window | WindowStageEventType | INACTIVE | 新增 |
| ohos.window | WindowStageEventType | ACTIVE | 新增 |
...
...
zh-cn/release-notes/api-change/v3.1-beta/js-apidiff-v3.1-beta.md
浏览文件 @
e39dc96d
...
...
@@ -9,22 +9,22 @@ OpenHarmony 3.1 Beta相较于OpenHarmony 3.0 LTS版本的API变更如下:
| 系统应用-settings | getUri(name: string): string | 新增 | 新增获取设置数据URI |
| 系统应用-settings | getValue(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string | 新增 | 新增获取设置数据库值 |
| 系统应用-settings | setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean | 新增 | 新增设置设置数据库值 |
| 杂散软件服务-systemTime | getCurrentTime(callback: AsyncCallback
<number>
): void
| 新增 | 获取自 Unix 纪元以来经过的毫秒数。 |
| 杂散软件服务-systemTime | getCurrentTime(): Promise
<number>
| 新增 | 获取自 Unix 纪元以来经过的毫秒数。 |
| 杂散软件服务-systemTime | getCurrentTimeNs(callback: AsyncCallback
<number>
): void
| 新增 | 获取自 Unix 纪元以来经过的纳秒数。 |
| 杂散软件服务-systemTime | getCurrentTimeNs(): Promise
<number>
| 新增 | 获取自 Unix 纪元以来经过的纳秒数。 |
| 杂散软件服务-systemTime | getRealActiveTime(callback: AsyncCallback
<number>
): void
| 新增 | 获取自系统启动以来经过的毫秒数,不包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealActiveTime(): Promise
<number>
| 新增 | 获取自系统启动以来经过的毫秒数,不包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealActiveTimeNs(callback: AsyncCallback
<number>
): void | 新增 | 获取自系统启动以来经过的纳秒数,不包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealActiveTimeNs(): Promise
<number>
| 新增 | 获取自系统启动以来经过的纳秒数,不包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealTime(callback: AsyncCallback
<number>
): void
| 新增 | 获取自系统启动以来经过的毫秒数,包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealTime(): Promise
<number>
| 新增 | 获取自系统启动以来经过的毫秒数,包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealTimeNs(callback: AsyncCallback
<number>
): void
| 新增 | 获取自系统启动以来经过的纳秒数,包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealTimeNs(): Promise
<number>
| 新增 | 获取自系统启动以来经过的纳秒数,包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getDate(callback: AsyncCallback
<Date>
): void
| 新增 | 获取当前时间。 |
| 杂散软件服务-systemTime | getDate(): Promise
<Date>
| 新增 | 获取当前时间。 |
| 杂散软件服务-systemTime | getTimeZone(callback: AsyncCallback
<string>
): void
| 新增 | 获取系统时区。 |
| 杂散软件服务-systemTime | getTimeZone(): Promise
<string>
| 新增 | 获取系统时区。 |
| 杂散软件服务-systemTime | getCurrentTime(callback: AsyncCallback
\<
number>): void
| 新增 | 获取自 Unix 纪元以来经过的毫秒数。 |
| 杂散软件服务-systemTime | getCurrentTime(): Promise
\<
number>
| 新增 | 获取自 Unix 纪元以来经过的毫秒数。 |
| 杂散软件服务-systemTime | getCurrentTimeNs(callback: AsyncCallback
\<
number>): void
| 新增 | 获取自 Unix 纪元以来经过的纳秒数。 |
| 杂散软件服务-systemTime | getCurrentTimeNs(): Promise
\<
number>
| 新增 | 获取自 Unix 纪元以来经过的纳秒数。 |
| 杂散软件服务-systemTime | getRealActiveTime(callback: AsyncCallback
\<
number>): void
| 新增 | 获取自系统启动以来经过的毫秒数,不包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealActiveTime(): Promise
\<
number>
| 新增 | 获取自系统启动以来经过的毫秒数,不包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealActiveTimeNs(callback: AsyncCallback
\
<
number>): void | 新增 | 获取自系统启动以来经过的纳秒数,不包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealActiveTimeNs(): Promise
\<
number>
| 新增 | 获取自系统启动以来经过的纳秒数,不包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealTime(callback: AsyncCallback
\<
number>): void
| 新增 | 获取自系统启动以来经过的毫秒数,包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealTime(): Promise
\<
number>
| 新增 | 获取自系统启动以来经过的毫秒数,包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealTimeNs(callback: AsyncCallback
\<
number>): void
| 新增 | 获取自系统启动以来经过的纳秒数,包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getRealTimeNs(): Promise
\<
number>
| 新增 | 获取自系统启动以来经过的纳秒数,包括深度睡眠时间。 |
| 杂散软件服务-systemTime | getDate(callback: AsyncCallback
\<
Date>): void
| 新增 | 获取当前时间。 |
| 杂散软件服务-systemTime | getDate(): Promise
\<
Date>
| 新增 | 获取当前时间。 |
| 杂散软件服务-systemTime | getTimeZone(callback: AsyncCallback
\<
string>): void
| 新增 | 获取系统时区。 |
| 杂散软件服务-systemTime | getTimeZone(): Promise
\<
string>
| 新增 | 获取系统时区。 |
| Ark UI框架-通用事件 | 组件区域变化事件 onAreaChange | 新增 | 新增组件区域(包括大小和位置)变化事件。 |
| Ark UI框架-通用属性 | 触摸热区设置 responseRegion | 新增 | 新增组件触摸热区设置。 |
| Ark UI框架-通用属性 | 点击控制 touchable | 新增 | 新增设置组件是否可以被触摸。 |
...
...
@@ -42,27 +42,27 @@ OpenHarmony 3.1 Beta相较于OpenHarmony 3.0 LTS版本的API变更如下:
| Ark UI框架-画布组件 | Canvas | 新增 | 新增画布组件。 |
| Ark UI框架-画布组件 | Lottie | 新增 | 新增Lottie库的支持。 |
| Ark UI框架-全局UI方法 | ActionSheet | 新增 | 新增列表选择弹窗。 |
| USB服务-usb | getDevices(): Array
<Readonly
<
USBDevice
>
> | 新增 | 新增获取USB设备列表的接口 |
| USB服务-usb | connectDevice(device: USBDevice): Readonly
<USBDevicePipe>
| 新增 | 新增根据
**getDevices()**
返回的设备信息打开USB设备的接口 |
| USB服务-usb | getDevices(): Array
\<
Readonly
\
<
USBDevice>> | 新增 | 新增获取USB设备列表的接口 |
| USB服务-usb | connectDevice(device: USBDevice): Readonly
\<
USBDevicePipe> | 新增 | 新增根据getDevices()
返回的设备信息打开USB设备的接口 |
| USB服务-usb | hasRight(deviceName: string): boolean | 新增 | 新增判断是否有权访问设备的接口 |
| USB服务-usb | requestRight(deviceName: string): Promise
<boolean>
| 新增 | 新增请求给定软件包的临时权限以访问设备的接口 |
| USB服务-usb | requestRight(deviceName: string): Promise
\
<
boolean> | 新增 | 新增请求给定软件包的临时权限以访问设备的接口 |
| USB服务-usb | claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number | 新增 | 新增获取接口的接口 |
| USB服务-usb | releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number | 新增 | 新增释放接口的接口 |
| USB服务-usb | setConfiguration(pipe: USBDevicePipe, config: USBConfig): number | 新增 | 新增设置设备配置的接口 |
| USB服务-usb | setInterface(pipe: USBDevicePipe, iface: USBInterface): number | 新增 | 新增设置设备接口的接口 |
| USB服务-usb | getRawDescriptor(pipe: USBDevicePipe): Uint8Array | 新增 | 新增获取原始的USB描述符的接口 |
| USB服务-usb | getFileDescriptor(pipe: USBDevicePipe): number | 新增 | 新增获取文件描述符的接口 |
| USB服务-usb | controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise
<number>
| 新增 | 新增控制传输的接口 |
| USB服务-usb | bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, timeout?: number): Promise
<number>
| 新增 | 新增批量传输的接口 |
| USB服务-usb | controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise
\
<
number> | 新增 | 新增控制传输的接口 |
| USB服务-usb | bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, timeout?: number): Promise
\
<
number> | 新增 | 新增批量传输的接口 |
| USB服务-usb | closePipe(pipe: USBDevicePipe): number | 新增 | 新增关闭USBDevicePipe的接口 |
| 用户程序框架-bundle |
function cleanBundleCacheFiles(bundleName: string, callback: AsyncCallback
<void>
): void;
<br/>
function cleanBundleCacheFiles(bundleName: string): Promise
<void>
; | 新增 | 新增清理应用缓存接口 |
| 用户程序框架-bundle |
function setApplicationEnabled(bundleName: string, isEnable: boolean, callback: AsyncCallback
<void>
): void;
<br/>
function setApplicationEnabled(bundleName: string, isEnable: boolean): Promise
<void>
; | 新增 | 新增设置应用使能接口 |
| 用户程序框架-bundle |
function setAbilityEnabled(info: AbilityInfo, isEnable: boolean, callback: AsyncCallback
<void>
): void;
<br/>
function setAbilityEnabled(info: AbilityInfo, isEnable: boolean): Promise
<void>
; | 新增 | 新增设置ability使能接口 |
| 用户程序框架-bundle.innerBundleManager |
function getLauncherAbilityInfos(bundleName: string, userId: number, callback: AsyncCallback
<Array
<
LauncherAbilityInfo
>
>) : void;
<br/>
function getLauncherAbilityInfos(bundleName: string, userId: number) : Promise
<Array
<
LauncherAbilityInfo
>
>; | 新增 | 新增通过包名获取应用LauncherAbility接口 |
| 用户程序框架-bundle.innerBundleManager |
function on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback, callback: AsyncCallback
<string>
) : void;
<br/>
function on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback): Proimise
<string>
; | 新增 | 新增注册监听包状态变化接口 |
| 用户程序框架-bundle.innerBundleManager |
function off(type:"BundleStatusChange", callback: AsyncCallback
<string>
) : void;
<br/>
function off(type:"BundleStatusChange"): Proimise
<string>
; | 新增 | 新增注销监听包状态变化接口 |
| 用户程序框架-bundle.innerBundleManager |
function getAllLauncherAbilityInfos(userId: number, callback: AsyncCallback
<Array
<
LauncherAbilityInfo
>
>) : void;
<br/>
function getAllLauncherAbilityInfos(userId: number) : Promise
<Array
<
LauncherAbilityInfo
>
>; | 新增 | 新增通过userId获取所有launcher上应用的ability接口 |
| 用户程序框架-bundle.innerBundleManager |
function getShortcutInfos(bundleName :string, callback: AsyncCallback
<Array
<
ShortcutInfo
>
>) : void;
<br/>
function getShortcutInfos(bundleName : string) : Promise
<Array
<
ShortcutInfo
>
>; | 新增 | 新增通过bundleName获取应用的shortcutInfo接口 |
| 用户程序框架-bundle |
cleanBundleCacheFiles(bundleName: string, callback: AsyncCallback
\<
void>): void;
<br/>
cleanBundleCacheFiles(bundleName: string): Promise
\
<
void>; | 新增 | 新增清理应用缓存接口 |
| 用户程序框架-bundle |
setApplicationEnabled(bundleName: string, isEnable: boolean, callback: AsyncCallback
\<
void>): void;
<br/>
setApplicationEnabled(bundleName: string, isEnable: boolean): Promise
\
<
void>; | 新增 | 新增设置应用使能接口 |
| 用户程序框架-bundle |
setAbilityEnabled(info: AbilityInfo, isEnable: boolean, callback: AsyncCallback
\<
void>): void;
<br/>
setAbilityEnabled(info: AbilityInfo, isEnable: boolean): Promise
\
<
void>; | 新增 | 新增设置ability使能接口 |
| 用户程序框架-bundle.innerBundleManager |
getLauncherAbilityInfos(bundleName: string, userId: number, callback: AsyncCallback
\<
Array
\<
LauncherAbilityInfo>>) : void;
<br/>
getLauncherAbilityInfos(bundleName: string, userId: number) : Promise
\<
Array
\
<
LauncherAbilityInfo>>; | 新增 | 新增通过包名获取应用LauncherAbility接口 |
| 用户程序框架-bundle.innerBundleManager |
on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback, callback: AsyncCallback
\<
string>) : void;
<br/>
on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback): Proimise
\
<
string>; | 新增 | 新增注册监听包状态变化接口 |
| 用户程序框架-bundle.innerBundleManager |
off(type:"BundleStatusChange", callback: AsyncCallback
\<
string>) : void;
<br/>
off(type:"BundleStatusChange"): Proimise
\
<
string>; | 新增 | 新增注销监听包状态变化接口 |
| 用户程序框架-bundle.innerBundleManager |
getAllLauncherAbilityInfos(userId: number, callback: AsyncCallback
\<
Array
\<
LauncherAbilityInfo>>) : void;
<br/>
getAllLauncherAbilityInfos(userId: number) : Promise
\<
Array
\
<
LauncherAbilityInfo>>; | 新增 | 新增通过userId获取所有launcher上应用的ability接口 |
| 用户程序框架-bundle.innerBundleManager |
getShortcutInfos(bundleName :string, callback: AsyncCallback
\<
Array
\<
ShortcutInfo>>) : void;
<br/>
getShortcutInfos(bundleName : string) : Promise
\<
Array
\
<
ShortcutInfo>>; | 新增 | 新增通过bundleName获取应用的shortcutInfo接口 |
| 分布式软总线-rpc.MessageParcel | writeNoException(): void | 新增 | - |
| 分布式软总线-rpc.MessageParcel | readException(): void | 新增 | - |
| 分布式软总线-rpc.MessageParcel | writeRemoteObjectArray(objectArray: IRemoteObject[]): boolean | 新增 | - |
...
...
@@ -79,7 +79,7 @@ OpenHarmony 3.1 Beta相较于OpenHarmony 3.0 LTS版本的API变更如下:
| 分布式软总线-rpc.MessageParcel | getRawDataCapacity(): number | 新增 | - |
| 分布式软总线-rpc.MessageParcel | writeRawData(rawData: number[], size: number): boolean | 新增 | - |
| 分布式软总线-rpc.MessageParcel | readRawData(size: number): number[] | 新增 | - |
| 分布式软总线-rpc | interface SendRequestResult {
<br/>
errCode: number;
<br/>
<br/>
code: number;
<br/><br/>
data: MessageParcel;
<br/>
<br/>
reply: MessageParcel;
<br/>
} | 新增 | - |
| 分布式软总线-rpc | interface SendRequestResult {
<br/>
errCode: number;
<br/>
code: number;
<br/>
data: MessageParcel;
<br/>
reply: MessageParcel;
<br/>
} | 新增 | - |
| 分布式软总线-rpc.Ashmem | PROT_EXEC = 4 | 新增 | - |
| 分布式软总线-rpc.Ashmem | PROT_NONE = 0 | 新增 | - |
| 分布式软总线-rpc.Ashmem | PROT_READ = 1 | 新增 | - |
...
...
@@ -96,14 +96,14 @@ OpenHarmony 3.1 Beta相较于OpenHarmony 3.0 LTS版本的API变更如下:
| 分布式软总线-rpc.Ashmem | writeToAshmem(buf: number[], size: number, offset: number): boolean | 新增 | - |
| 分布式软总线-rpc.Ashmem | readFromAshmem(size: number, offset: number): number[] | 新增 | - |
| 分布式软总线-rpc.IRemoteObject | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean | 废弃 | 替换为异步接口,使用返回Promise或者回调的接口 |
| 分布式软总线-rpc.IRemoteObject | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise
<SendRequestResult>
| 新增 | - |
| 分布式软总线-rpc.IRemoteObject | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback
<SendRequestResult>
): void | 新增 | - |
| 分布式软总线-rpc.IRemoteObject | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise
\
<
SendRequestResult> | 新增 | - |
| 分布式软总线-rpc.IRemoteObject | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback
\
<
SendRequestResult>): void | 新增 | - |
| 分布式软总线-rpc.RemoteProxy | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean | 废弃 | 替换为异步接口,使用返回Promise或者回调的接口 |
| 分布式软总线-rpc.RemoteProxy | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise
<SendRequestResult>
| 新增 | - |
| 分布式软总线-rpc.RemoteProxy | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback
<SendRequestResult>
): void | 新增 | - |
| 分布式软总线-rpc.RemoteProxy | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise
\
<
SendRequestResult> | 新增 | - |
| 分布式软总线-rpc.RemoteProxy | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback
\
<
SendRequestResult>): void | 新增 | - |
| 分布式软总线-rpc.RemoteObject | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean | 废弃 | 替换为异步接口,使用返回Promise或者回调的接口 |
| 分布式软总线-rpc.RemoteObject | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise
<SendRequestResult>
| 新增 | - |
| 分布式软总线-rpc.RemoteObject | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback
<SendRequestResult>
): void | 新增 | - |
| 分布式软总线-rpc.RemoteObject | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise
\
<
SendRequestResult> | 新增 | - |
| 分布式软总线-rpc.RemoteObject | sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback
\
<
SendRequestResult>): void | 新增 | - |
| 分布式软总线-rpc.IRemoteObject | PING_TRANSACTION | 删除 | API 7没有实现,不影响已有应用 |
| 分布式软总线-rpc.IRemoteObject | DUMP_TRANSACTION | 删除 | API 7没有实现,不影响已有应用 |
| 分布式软总线-rpc.IRemoteObject | INTERFACE_TRANSACTION | 删除 | API 7没有实现,不影响已有应用 |
...
...
@@ -124,74 +124,74 @@ OpenHarmony 3.1 Beta相较于OpenHarmony 3.0 LTS版本的API变更如下:
| 分布式软总线-rpc.Proxy | MIN_TRANSACTION_ID = 0x1 | 新增 | - |
| 分布式软总线-rpc.Proxy | MAX_TRANSACTION_ID = 0x00FFFFFF | 新增 | - |
| 分布式软总线-rpc.Proxy | queryLocalInterface(interface: string): IRemoteBroker | 修改 | API 7有误,返回类型更正为IRemoteBroker,不影响已有应用 |
| 分布式软总线-wifi |
function getLinkedInfo(): Promise
<WifiLinkedInfo>
;
<br/>
function getLinkedInfo(callback: AsyncCallback
<WifiLinkedInfo>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function isConnected(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
function getSupportedFeatures(): number;
| 新增 | - |
| 分布式软总线-wifi |
function isFeatureSupported(featureId: number): boolean;
| 新增 | - |
| 分布式软总线-wifi |
function getDeviceMacAddress(): string[];
| 新增 | - |
| 分布式软总线-wifi |
function getIpInfo(): IpInfo;
| 新增 | - |
| 分布式软总线-wifi |
function getCountryCode(): string;
| 新增 | - |
| 分布式软总线-wifi |
function reassociate(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
function reconnect(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
function getDeviceConfigs(): Array
<WifiDeviceConfig>
;
| 新增 | - |
| 分布式软总线-wifi |
function updateNetwork(config: WifiDeviceConfig): number;
| 新增 | - |
| 分布式软总线-wifi |
function disableNetwork(netId: number): boolean;
| 新增 | - |
| 分布式软总线-wifi |
function removeAllNetwork(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
function removeDevice(id: number): boolean;
| 新增 | - |
| 分布式软总线-wifi |
function enableHotspot(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
function disableHotspot(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
function isHotspotActive(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
function setHotspotConfig(config: HotspotConfig): boolean;
| 新增 | - |
| 分布式软总线-wifi |
function getHotspotConfig(): HotspotConfig;
| 新增 | - |
| 分布式软总线-wifi |
function getStations(): Array
<StationInfo>
;
| 新增 | - |
| 分布式软总线-wifi |
function on(type: "wifiStateChange", callback: Callback
<number>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function off(type: "wifiStateChange", callback?: Callback
<number>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function on(type: "wifiConnectionChange", callback: Callback
<number>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function off(type: "wifiConnectionChange", callback?: Callback
<number>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function on(type: "wifiScanStateChange", callback: Callback
<number>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function off(type: "wifiScanStateChange", callback?: Callback
<number>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function on(type: "wifiRssiChange", callback: Callback
<number>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function off(type: "wifiRssiChange", callback?: Callback
<number>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function on(type: "hotspotStateChange", callback: Callback
<number>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function off(type: "hotspotStateChange", callback?: Callback
<number>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function on(type: "hotspotStaJoin", callback: Callback
<StationInfo>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function off(type: "hotspotStaJoin", callback?: Callback
<StationInfo>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function on(type: "hotspotStaLeave", callback: Callback
<StationInfo>
): void;
| 新增 | - |
| 分布式软总线-wifi |
function off(type: "hotspotStaLeave", callback?: Callback
<StationInfo>
): void;
| 新增 | - |
| 全球化-resourceManager | getRawFile(path: string, callback: AsyncCallback
<Uint8Array>
);
<br/>
getRawFile(path: string): Promise
<Uint8Array>
;
| 新增 | - |
| 分布式软总线-wifi |
getLinkedInfo(): Promise
\<
WifiLinkedInfo>;
<br/>
getLinkedInfo(callback: AsyncCallback
\<
WifiLinkedInfo>): void;
| 新增 | - |
| 分布式软总线-wifi |
isConnected(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
getSupportedFeatures(): number;
| 新增 | - |
| 分布式软总线-wifi |
isFeatureSupported(featureId: number): boolean;
| 新增 | - |
| 分布式软总线-wifi |
getDeviceMacAddress(): string[];
| 新增 | - |
| 分布式软总线-wifi |
getIpInfo(): IpInfo;
| 新增 | - |
| 分布式软总线-wifi |
getCountryCode(): string;
| 新增 | - |
| 分布式软总线-wifi |
reassociate(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
reconnect(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
getDeviceConfigs(): Array
\<
WifiDeviceConfig>;
| 新增 | - |
| 分布式软总线-wifi |
updateNetwork(config: WifiDeviceConfig): number;
| 新增 | - |
| 分布式软总线-wifi |
disableNetwork(netId: number): boolean;
| 新增 | - |
| 分布式软总线-wifi |
removeAllNetwork(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
removeDevice(id: number): boolean;
| 新增 | - |
| 分布式软总线-wifi |
enableHotspot(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
disableHotspot(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
isHotspotActive(): boolean;
| 新增 | - |
| 分布式软总线-wifi |
setHotspotConfig(config: HotspotConfig): boolean;
| 新增 | - |
| 分布式软总线-wifi |
getHotspotConfig(): HotspotConfig;
| 新增 | - |
| 分布式软总线-wifi |
getStations(): Array
\<
StationInfo>;
| 新增 | - |
| 分布式软总线-wifi |
on(type: "wifiStateChange", callback: Callback
\<
number>): void;
| 新增 | - |
| 分布式软总线-wifi |
off(type: "wifiStateChange", callback?: Callback
\<
number>): void;
| 新增 | - |
| 分布式软总线-wifi |
on(type: "wifiConnectionChange", callback: Callback
\<
number>): void;
| 新增 | - |
| 分布式软总线-wifi |
off(type: "wifiConnectionChange", callback?: Callback
\<
number>): void;
| 新增 | - |
| 分布式软总线-wifi |
on(type: "wifiScanStateChange", callback: Callback
\<
number>): void;
| 新增 | - |
| 分布式软总线-wifi |
off(type: "wifiScanStateChange", callback?: Callback
\<
number>): void;
| 新增 | - |
| 分布式软总线-wifi |
on(type: "wifiRssiChange", callback: Callback
\<
number>): void;
| 新增 | - |
| 分布式软总线-wifi |
off(type: "wifiRssiChange", callback?: Callback
\<
number>): void;
| 新增 | - |
| 分布式软总线-wifi |
on(type: "hotspotStateChange", callback: Callback
\<
number>): void;
| 新增 | - |
| 分布式软总线-wifi |
off(type: "hotspotStateChange", callback?: Callback
\<
number>): void;
| 新增 | - |
| 分布式软总线-wifi |
on(type: "hotspotStaJoin", callback: Callback
\<
StationInfo>): void;
| 新增 | - |
| 分布式软总线-wifi |
off(type: "hotspotStaJoin", callback?: Callback
\<
StationInfo>): void;
| 新增 | - |
| 分布式软总线-wifi |
on(type: "hotspotStaLeave", callback: Callback
\<
StationInfo>): void;
| 新增 | - |
| 分布式软总线-wifi |
off(type: "hotspotStaLeave", callback?: Callback
\<
StationInfo>): void;
| 新增 | - |
| 全球化-resourceManager | getRawFile(path: string, callback: AsyncCallback
\<
Uint8Array>);
<br/>
getRawFile(path: string): Promise
\<
Uint8Array>;
| 新增 | - |
| 全球化-Intl | RelativeTimeFormat.constructor(); | 新增 | 构造函数 |
| 全球化-Intl | RelativeTimeFormat.constructor(locale: string
\|
Array
<string>
, options?: RelativeTimeFormatInputOptions); | 新增 | 构造函数 |
| 全球化-Intl | RelativeTimeFormat.constructor(locale: string
\|
Array
\
<
string>, options?: RelativeTimeFormatInputOptions); | 新增 | 构造函数 |
| 全球化-Intl | RelativeTimeFormat.format(value: number, unit: string): string; | 新增 | 相对时间格式化 |
| 全球化-Intl | RelativeTimeFormat.formatToParts(value: number, unit: string): Array
<object>
; | 新增 | 相对时间格式化,结果分为多部份分别存储 |
| 全球化-Intl | RelativeTimeFormat.formatToParts(value: number, unit: string): Array
<object>
; | 新增 | 相对时间格式化,结果分为多部份分别存储 |
| 全球化-Intl | RelativeTimeFormat.formatToParts(value: number, unit: string): Array
\
<
object>; | 新增 | 相对时间格式化,结果分为多部份分别存储 |
| 全球化-Intl | RelativeTimeFormat.formatToParts(value: number, unit: string): Array
\
<
object>; | 新增 | 相对时间格式化,结果分为多部份分别存储 |
| 全球化-Intl | PluralRules.constructor(); | 新增 | 构造函数 |
| 全球化-Intl | PluralRules.constructor(locale: string
\|
Array
<string>
, options?: PluralRulesOptions); | 新增 | 构造函数 |
| 全球化-Intl | PluralRules.constructor(locale: string
\|
Array
\
<
string>, options?: PluralRulesOptions); | 新增 | 构造函数 |
| 全球化-Intl | PluralRules.select(n: number): string; | 新增 | 计算一个数字的单复数类别 |
| 全球化-Intl | Collator.constructor(); | 新增 | 构造函数 |
| 全球化-Intl | Collator.constructor(locale: string
\|
Array
<string>
, options?: CollatorOptions); | 新增 | 构造函数 |
| 全球化-Intl | Collator.constructor(locale: string
\|
Array
\
<
string>, options?: CollatorOptions); | 新增 | 构造函数 |
| 全球化-Intl | Collator.compare(first: string, second: string): number; | 新增 | 比较两个字符串 |
| 全球化-Intl | Collator.resolvedOptions(): CollatorOptions; | 新增 | 获取排序对象相关属性 |
| 全球化-I18N |
function unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value:
**number**
, locale:
**string**
, style?:
**string**
):
**string**
; | 新增 | 新增转换单位接口 |
| 全球化-I18N |
function
**constructor**
(country:
**string**
, options?: PhoneNumberFormatOptions);
<br/>
function isValidNumber(
**number**
:
**string**
): boolean;
<br/>
function format(
**number**
:
**string**
):
**string**
; | 新增 | 新增电话号码格式化接口 |
| 全球化-I18N |
function setTime(date: Date);
<br/>
function setTime(time:
**number**
);
<br/>
function
**set**
(year:
**number**
, month:
**number**
, date:
**number**
, hour?:
**number**
, minute?:
**number**
, second?:
**number**
);
<br/>
function setTimeZone(timezone:
**string**
);
<br/>
function getTimeZone():
**string**
;
<br/>
function getFirstDayOfWeek():
**number**
;
<br/>
function setFirstDayOfWeek(value:
**number**
);
<br/>
function getMinimalDaysInFirstWeek():
**number**
;
<br/>
function setMinimalDaysInFirstWeek(value:
**number**
);
<br/>
function
**get**
(field:
**string**
):
**number**
;
<br/>
function getDisplayName(locale:
**string**
):
**string**
;
<br/>
function isWeekend(date?: Date): boolean;
<br/>
function
**export**
**function**
getCalendar(locale:
**string**
,
**type**
?:
**string**
): Calendar; | 新增 | 新增日历接口 |
| 全球化-I18N |
**function**
isRTL(locale:
**string**
): boolean; | 新增 | 判断区域语言是否是从右到左语言 |
| 全球化-I18N |
**function**
getLineInstance(locale:
**string**
): BreakIterator;
<br/>
function current():
**number**
;
<br/>
function first():
**number**
;
<br/>
function last():
**number**
;
<br/>
function next(index?:
**number**
):
**number**
;
<br/>
function previous():
**number**
;
<br/>
function setLineBreakText(text:
**string**
):
**void**
;
<br/>
function following(offset:
**number**
):
**number**
;
<br/>
function getLineBreakText():
**string**
;
<br/>
function isBoundary(offset:
**number**
): boolean; | 新增 | 新增断词换行接口 |
| 全球化-I18N |
function getInstance(locale?:
**string**
): IndexUtil;
<br/>
function getIndexList(): Array
<
**string**
>
; | 新增 | 新增获取字母表索引接口 |
| 全球化-I18N |
function addLocale(locale:
**string**
);
<br/>
function getIndex(text:
**string**
):
**string**
;
<br/>
function isDigit(char:
**string**
): boolean;
<br/>
function isSpaceChar(char:
**string**
): boolean;
<br/>
function isWhitespace(char:
**string**
): boolean;
<br/>
function isRTL(char:
**string**
): boolean;
<br/>
function isIdeograph(char:
**string**
): boolean;
<br/>
function isLetter(char:
**string**
): boolean;
<br/>
function isLowerCase(char:
**string**
): boolean;
<br/>
function isUpperCase(char:
**string**
): boolean;
<br/>
function getType(char:
**string**
):
**string**
; | 新增 | 新增获取字符属性接口 |
| 全球化-I18N |
unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string
; | 新增 | 新增转换单位接口 |
| 全球化-I18N |
constructor(country: string, options?: PhoneNumberFormatOptions);
<br/>
isValidNumber(number: string): boolean;
<br/>
format(number: string): string
; | 新增 | 新增电话号码格式化接口 |
| 全球化-I18N |
setTime(date: Date);
<br/>
setTime(time: number);
<br/>
set(year: number, month: number, date:number, hour?: number, minute?: number, second?: number);
<br/>
setTimeZone(timezone: string);
<br/>
getTimeZone(): string;
<br/>
getFirstDayOfWeek(): number;
<br/>
setFirstDayOfWeek(value: number);
<br/>
getMinimalDaysInFirstWeek(): number;
<br/>
setMinimalDaysInFirstWeek(value: number);
<br/>
get(field: string): number;
<br/>
getDisplayName(locale: string): string;
<br/>
isWeekend(date?: Date): boolean;
<br/>
export getCalendar(locale: string, type?: string
): Calendar; | 新增 | 新增日历接口 |
| 全球化-I18N |
isRTL(locale: string
): boolean; | 新增 | 判断区域语言是否是从右到左语言 |
| 全球化-I18N |
getLineInstance(locale: string): BreakIterator;
<br/>
current(): number;
<br/>
first(): number;
<br/>
last(): number;
<br/>
next(index?: number): number;
<br/>
previous(): number;
<br/>
setLineBreakText(text: string): void;
<br/>
following(offset: number): number;
<br/>
getLineBreakText(): string;
<br/>
isBoundary(offset: number
): boolean; | 新增 | 新增断词换行接口 |
| 全球化-I18N |
getInstance(locale?:string): IndexUtil;
<br/>
getIndexList(): Array
\<
string
>; | 新增 | 新增获取字母表索引接口 |
| 全球化-I18N |
addLocale(locale: string);
<br/>
getIndex(text: string): string;
<br/>
isDigit(char: string): boolean;
<br/>
isSpaceChar(char: string): boolean;
<br/>
isWhitespace(char: string): boolean;
<br/>
isRTL(char: string): boolean;
<br/>
isIdeograph(char: string): boolean;
<br/>
isLetter(char: string): boolean;
<br/>
isLowerCase(char: string): boolean;
<br/>
isUpperCase(char: string): boolean;
<br/>
getType(char: string): string
; | 新增 | 新增获取字符属性接口 |
| 事件通知-DoNotDisturbDate | type: notification.DoNotDisturbType | 新增 | 免打扰设置的时间类型 |
| 事件通知-DoNotDisturbDate | begin: Date | 新增 | 免打扰设置的起点时间 |
| 事件通知-DoNotDisturbDate | end: Date | 新增 | 免打扰设置的终点时间 |
| 事件通知-DoNotDisturbDate | export enum DoNotDisturbType {
<br/>
TYPE_NONE = 0, // 非通知勿扰类型
<br/>
TYPE_ONCE = 1, // 以设置时间段一次执行勿扰
<br/>
TYPE_DAILY = 2, // 以设置时间段(只看小时和分钟)每天执行勿扰
<br/>
TYPE_CLEARLY = 3, // 以设置时间段(明确年月日时分)执行勿扰
<br/>
} | 新增 | 免打扰时间类型 |
| 事件通知-notification |
function setDoNotDisturbDate(date DoNotDisturbDate, callback: AsyncCallback
<void>
): void | 新增 | 设置免打扰时间接口 |
| 事件通知-notification |
function setDoNotDisturbDate(date DoNotDisturbDate): Promise
<void>
| 新增 | 设置免打扰时间接口 |
| 事件通知-notification |
function getDoNotDisturbDate(callback: AsyncCallback
<DoNotDisturbDate>
): void | 新增 | 查询免打扰时间接口 |
| 事件通知-notification |
function getDoNotDisturbDate(): Promise
<DoNotDisturbDate>
| 新增 | 查询免打扰时间接口 |
| 事件通知-notification |
function supportDoNotDisturbMode(callback: AsyncCallback
<boolean>
): void | 新增 | 是否支持勿扰模式功能 |
| 事件通知-notification |
function supportDoNotDisturbMode(): Promise
<boolean>
| 新增 | 是否支持勿扰模式功能 |
| 事件通知-notification |
function cancelGroup(groupName: string, callback: AsyncCallback
<void>
): void | 新增 | 取消本应用指定组通知 |
| 事件通知-notification |
function cancelGroup(groupName: string): Promise
<void>
| 新增 | 取消本应用指定组通知 |
| 事件通知-notification |
function removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCallback
<void>
): void | 新增 | 删除指定应用指定组通知 |
| 事件通知-notification |
function removeGroupByBundle(bundle: BundleOption, groupName: string): Promise
<void>
| 新增 | 删除指定应用指定组通知 |
| 事件通知-notification |
setDoNotDisturbDate(date DoNotDisturbDate, callback: AsyncCallback
\
<
void>): void | 新增 | 设置免打扰时间接口 |
| 事件通知-notification |
setDoNotDisturbDate(date DoNotDisturbDate): Promise
\
<
void> | 新增 | 设置免打扰时间接口 |
| 事件通知-notification |
getDoNotDisturbDate(callback: AsyncCallback
\
<
DoNotDisturbDate>): void | 新增 | 查询免打扰时间接口 |
| 事件通知-notification |
getDoNotDisturbDate(): Promise
\
<
DoNotDisturbDate> | 新增 | 查询免打扰时间接口 |
| 事件通知-notification |
supportDoNotDisturbMode(callback: AsyncCallback
\
<
boolean>): void | 新增 | 是否支持勿扰模式功能 |
| 事件通知-notification |
supportDoNotDisturbMode(): Promise
\
<
boolean> | 新增 | 是否支持勿扰模式功能 |
| 事件通知-notification |
cancelGroup(groupName: string, callback: AsyncCallback
\
<
void>): void | 新增 | 取消本应用指定组通知 |
| 事件通知-notification |
cancelGroup(groupName: string): Promise
\
<
void> | 新增 | 取消本应用指定组通知 |
| 事件通知-notification |
removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCallback
\
<
void>): void | 新增 | 删除指定应用指定组通知 |
| 事件通知-notification |
removeGroupByBundle(bundle: BundleOption, groupName: string): Promise
\
<
void> | 新增 | 删除指定应用指定组通知 |
| 事件通知-NotificationSubscriber | onDoNotDisturbDateChange?:(mode: notification.DoNotDisturbDate) => void | 新增 | 免打扰设置信息变更后的通知给订阅者 |
| 事件通知-NotificationRequest | smallIcon?: image.PixelMap | 新增 | 小图标 |
| 事件通知-NotificationRequest | largeIcon?: image.PixelMap; | 新增 | 大图标 |
...
...
@@ -199,15 +199,15 @@ OpenHarmony 3.1 Beta相较于OpenHarmony 3.0 LTS版本的API变更如下:
| 事件通知-NotificationUserInput | | 新增 | 用户输入对象 |
| 事件通知-NotificationUserInput | inputKey: string | 新增 | 用户输入时用于标识此输入的key |
| 事件通知-NotificationActionButton | userInput?: NotificationUserInput | 新增 | 用户输入对象实例 |
| 事件通知-emitter |
function on(event: InnerEvent, callback: Callback
<EventData>
): void | 新增 | 持续订阅某个事件以及接收事件的回调处理 |
| 事件通知-emitter |
function once(event: InnerEvent, callback: Callback
<EventData>
): void | 新增 | 单次订阅某个事件以及接收事件的回调处理,接收到回调处理后自动取消订阅 |
| 事件通知-emitter |
function
off(eventId: number): void | 新增 | 取消订阅某个事件 |
| 事件通知-emitter |
function
emit(event: InnerEvent, data?: EventData): void | 新增 | 发送一个事件到事件队列 |
| 分布式文件-statfs |
function getFreeBytes(path: string, callback: AsyncCallback
<number>
): void | 新增 | 以callback形式异步获取设备剩余空间,单位为字节 |
| 分布式文件-statfs |
function getFreeBytes(path: string): Promise
<number>
| 新增 | 以promise形式异步获取设备剩余空间,单位为字节 |
| 分布式文件-statfs |
function getTotalBytes(path: string, callback: AsyncCallback
<number>
): void | 新增 | 以callback形式异步获取设备总空间,单位为字节 |
| 分布式文件-statfs |
function getTotalBytes(path: string): Promise
<number>
| 新增 | 以promise形式异步获取设备总空间,单位为字节 |
| 分布式任务调度-featureAbility |
function continueAbility(options: ContinueAbilityOptions, callback: AsyncCallback
<void>
): void;
<br/>
function continueAbility(options: ContinueAbilityOptions): Promise
<void>
; | 新增 | - |
| 事件通知-emitter |
on(event: InnerEvent, callback: Callback
\
<
EventData>): void | 新增 | 持续订阅某个事件以及接收事件的回调处理 |
| 事件通知-emitter |
once(event: InnerEvent, callback: Callback
\
<
EventData>): void | 新增 | 单次订阅某个事件以及接收事件的回调处理,接收到回调处理后自动取消订阅 |
| 事件通知-emitter | off(eventId: number): void | 新增 | 取消订阅某个事件 |
| 事件通知-emitter | emit(event: InnerEvent, data?: EventData): void | 新增 | 发送一个事件到事件队列 |
| 分布式文件-statfs |
getFreeBytes(path: string, callback: AsyncCallback
\
<
number>): void | 新增 | 以callback形式异步获取设备剩余空间,单位为字节 |
| 分布式文件-statfs |
getFreeBytes(path: string): Promise
\
<
number> | 新增 | 以promise形式异步获取设备剩余空间,单位为字节 |
| 分布式文件-statfs |
getTotalBytes(path: string, callback: AsyncCallback
\
<
number>): void | 新增 | 以callback形式异步获取设备总空间,单位为字节 |
| 分布式文件-statfs |
getTotalBytes(path: string): Promise
\
<
number> | 新增 | 以promise形式异步获取设备总空间,单位为字节 |
| 分布式任务调度-featureAbility |
continueAbility(options: ContinueAbilityOptions, callback: AsyncCallback
\<
void>): void;
<br/>
continueAbility(options: ContinueAbilityOptions): Promise
\
<
void>; | 新增 | - |
| 语言编译运行时-URI | constructor(uri: string); | 新增 | |
| 语言编译运行时-URI | toString(): string | 新增 | |
| 语言编译运行时-URI | equals(other: URI): boolean; | 新增 | |
...
...
@@ -254,8 +254,8 @@ OpenHarmony 3.1 Beta相较于OpenHarmony 3.0 LTS版本的API变更如下:
| 语言编译运行时-LruBuffer | afterRemoval(isEvict: boolean, key: K, value: V, newValue: V): void; | 新增 | |
| 语言编译运行时-LruBuffer | contains(key: K): boolean; | 新增 | |
| 语言编译运行时-LruBuffer | createDefault(key: K): V; | 新增 | |
| 语言编译运行时-LruBuffer | entries(): IterableIterator
<
[
K
,
V
]
>
; | 新增 | |
| 语言编译运行时-LruBuffer |
[
Symbol.iterator
](
):
IterableIterator
<
[
K
,
V
]
>
; | 新增 | |
| 语言编译运行时-LruBuffer | entries(): IterableIterator
\
<
[K, V]>; | 新增 | |
| 语言编译运行时-LruBuffer |
\[
Symbol.iterator]
\(
): IterableIterator
\
<
[K, V]>; | 新增 | |
| 语言编译运行时-Scope | constructor(lowerObj: ScopeType, upperObj: ScopeType); | 新增 | |
| 语言编译运行时-Scope | toString(): string; | 新增 | |
| 语言编译运行时-Scope | intersect(range: Scope): Scope; | 新增 | |
...
...
@@ -272,9 +272,9 @@ OpenHarmony 3.1 Beta相较于OpenHarmony 3.0 LTS版本的API变更如下:
| 语言编译运行时-Base64 | encodeSync(src: Uint8Array): Uint8Array; | 新增 | |
| 语言编译运行时-Base64 | encodeToStringSync(src: Uint8Array): string; | 新增 | |
| 语言编译运行时-Base64 | decodeSync(src: Uint8Array
\|
string): Uint8Array; | 新增 | |
| 语言编译运行时-Base64 | encode(src: Uint8Array): Promise
<Uint8Array>
; | 新增 | |
| 语言编译运行时-Base64 | encodeToString(src: Uint8Array): Promise
<string>
; | 新增 | |
| 语言编译运行时-Base64 | decode(src: Uint8Array
\|
string): Promise
<Uint8Array>
; | 新增 | |
| 语言编译运行时-Base64 | encode(src: Uint8Array): Promise
\
<
Uint8Array>; | 新增 | |
| 语言编译运行时-Base64 | encodeToString(src: Uint8Array): Promise
\
<
string>; | 新增 | |
| 语言编译运行时-Base64 | decode(src: Uint8Array
\|
string): Promise
\
<
Uint8Array>; | 新增 | |
| 语言编译运行时-types | constructor(); | 新增 | |
| 语言编译运行时-types | isAnyArrayBuffer(value: Object): boolean; | 新增 | |
| 语言编译运行时-types | isArrayBufferView(value: Object): boolean; | 新增 | |
...
...
@@ -316,16 +316,16 @@ OpenHarmony 3.1 Beta相较于OpenHarmony 3.0 LTS版本的API变更如下:
| 语言编译运行时-types | isWeakMap(value: Object): boolean; | 新增 | |
| 语言编译运行时-types | isWeakSet(value: Object): boolean; | 新增 | |
| 语言编译运行时-process | const tid: number; | 新增 | |
| 语言编译运行时-process |
function
isIsolatedProcess(): boolean; | 新增 | |
| 语言编译运行时-process |
function
isAppUid(v: number): boolean; | 新增 | |
| 语言编译运行时-process |
function
is64Bit(): boolean; | 新增 | |
| 语言编译运行时-process |
function
getUidForName(v: string): number; | 新增 | |
| 语言编译运行时-process |
function
getThreadPriority(v: number): number; | 新增 | |
| 语言编译运行时-process |
function
getStartRealtime(): number; | 新增 | |
| 语言编译运行时-process |
function
getAvailableCores(): number[]; | 新增 | |
| 语言编译运行时-process |
function
getPastCpuTime(): number; | 新增 | |
| 语言编译运行时-process |
function
getSystemConfig(name: number): number; | 新增 | |
| 语言编译运行时-process |
function
getEnvironmentVar(name: string): string; | 新增 | |
| 语言编译运行时-process | isIsolatedProcess(): boolean; | 新增 | |
| 语言编译运行时-process | isAppUid(v: number): boolean; | 新增 | |
| 语言编译运行时-process | is64Bit(): boolean; | 新增 | |
| 语言编译运行时-process | getUidForName(v: string): number; | 新增 | |
| 语言编译运行时-process | getThreadPriority(v: number): number; | 新增 | |
| 语言编译运行时-process | getStartRealtime(): number; | 新增 | |
| 语言编译运行时-process | getAvailableCores(): number[]; | 新增 | |
| 语言编译运行时-process | getPastCpuTime(): number; | 新增 | |
| 语言编译运行时-process | getSystemConfig(name: number): number; | 新增 | |
| 语言编译运行时-process | getEnvironmentVar(name: string): string; | 新增 | |
| 语言编译运行时-ConvertOptions | trim: boolean; | 新增 | |
| 语言编译运行时-ConvertOptions | ignoreDeclaration?: boolean; | 新增 | |
| 语言编译运行时-ConvertOptions | ignoreInstruction?: boolean; | 新增 | |
...
...
@@ -363,65 +363,65 @@ OpenHarmony 3.1 Beta相较于OpenHarmony 3.0 LTS版本的API变更如下:
| 语言编译运行时-ParseOptions | attributeValueCallbackFunction?: (name: string, value: string) => boolean; | 新增 | |
| 语言编译运行时-ParseOptions | tokenValueCallbackFunction?: (eventType: EventType, value: ParseInfo) => boolean; | 新增 | |
| 帐号-account.appAccount | createAppAccountManager | 新增 | 获取实例 |
| 帐号-account.appAccount | addAccount(name: string, callback: AsyncCallback
<void>
): void;
<br/>
addAccount(name: string, extraInfo: string, callback: AsyncCallback
<void>
): void;
<br/>
addAccount(name: string, extraInfo?: string): Promise
<void>
; | 新增 | 添加应用帐户 |
| 帐号-account.appAccount | deleteAccount(name: string, callback: AsyncCallback
<void>
): void;
<br/>
deleteAccount(name: string): Promise
<void>
; | 新增 | 删除应用帐户 |
| 帐号-account.appAccount | disableAppAccess(name: string, bundleName: string, callback: AsyncCallback
<void>
): void;
<br/>
disableAppAccess(name: string, bundleName: string): Promise
<void>
; | 新增 | 使指定的package拒绝访问给定的应用帐号 |
| 帐号-account.appAccount | enableAppAccess(name: string, bundleName: string, callback: AsyncCallback
<void>
): void;
<br/>
enableAppAccess(name: string, bundleName: string): Promise
<void>
; | 新增 | 使指定的package允许访问给定的应用帐号 |
| 帐号-account.appAccount | checkAppAccountSyncEnable(name: string, callback: AsyncCallback
<boolean>
): void;
<br/>
checkAppAccountSyncEnable(name: string): Promise
<boolean>
; | 新增 | 检查指定的应用帐号是否允许应用程序同步数据 |
| 帐号-account.appAccount | setAccountCredential(name: string, credentialType: string, credential: string,
<br/>
callback: AsyncCallback
<void>
): void;
<br/>
setAccountCredential(name: string, credentialType: string, credential: string): Promise
<void>
; | 新增 | 设置指定应用程序帐号的认证凭据 |
| 帐号-account.appAccount | setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback
<void>
): void;
<br/>
setAccountExtraInfo(name: string, extraInfo: string): Promise
<void>
; | 新增 | 设置指定应用帐号的附加信息 |
| 帐号-account.appAccount | setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback
<void>
): void;
<br/>
setAppAccountSyncEnable(name: string, isEnable: boolean): Promise
<void>
; | 新增 | 设置指定的应用程序帐号是否允许应用程序同步数据 |
| 帐号-account.appAccount | setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback
<void>
): void;
<br/>
setAssociatedData(name: string, key: string, value: string): Promise
<void>
; | 新增 | 设置应用帐号关联信息 |
| 帐号-account.appAccount | getAllAccessibleAccounts(callback: AsyncCallback
<Array
<
AppAccountInfo
>
>): void;
<br/>
getAllAccessibleAccounts(): Promise
<Array
<
AppAccountInfo
>
>; | 新增 | 获取本应用帐号信息和已授权给本应用的第三方应用帐号的信息 |
| 帐号-account.appAccount | getAllAccounts(owner: string, callback: AsyncCallback
<Array
<
AppAccountInfo
>
>): void;
<br/>
getAllAccounts(owner: string): Promise
<Array
<
AppAccountInfo
>
>; | 新增 | 获取执行应用下全部帐号信息 |
| 帐号-account.appAccount | getAccountCredential(name: string, credentialType: string, callback: AsyncCallback
<string>
): void;
<br/>
getAccountCredential(name: string, credentialType: string): Promise
<string>
; | 新增 | 获取指定应用程序帐号的认证凭据 |
| 帐号-account.appAccount | getAccountExtraInfo(name: string, callback: AsyncCallback
<string>
): void;
<br/>
getAccountExtraInfo(name: string): Promise
<string>
; | 新增 | 获取应用帐号附加信息 |
| 帐号-account.appAccount | getAssociatedData(name: string, key: string, callback: AsyncCallback
<string>
): void;
<br/>
getAssociatedData(name: string, key: string): Promise
<string>
; | 新增 | 获取应用帐号关联信息 |
| 帐号-account.appAccount| on(type: 'change', owners: Array
<string>
, callback: Callback
<Array
<
AppAccountInfo
>
>): void; | 新增 | 订阅指定应用帐号的更改事件 |
| 帐号-account.appAccount | off(type: 'change', callback?: Callback
<void>
): void; | 新增 | 取消订阅应用帐号的更改事件 |
| 帐号-account.appAccount | addAccount(name: string, callback: AsyncCallback
\<
void>): void;
<br/>
addAccount(name: string, extraInfo: string, callback: AsyncCallback
\<
void>): void;
<br/>
addAccount(name: string, extraInfo?: string): Promise
\
<
void>; | 新增 | 添加应用帐户 |
| 帐号-account.appAccount | deleteAccount(name: string, callback: AsyncCallback
\<
void>): void;
<br/>
deleteAccount(name: string): Promise
\
<
void>; | 新增 | 删除应用帐户 |
| 帐号-account.appAccount | disableAppAccess(name: string, bundleName: string, callback: AsyncCallback
\<
void>): void;
<br/>
disableAppAccess(name: string, bundleName: string): Promise
\
<
void>; | 新增 | 使指定的package拒绝访问给定的应用帐号 |
| 帐号-account.appAccount | enableAppAccess(name: string, bundleName: string, callback: AsyncCallback
\<
void>): void;
<br/>
enableAppAccess(name: string, bundleName: string): Promise
\
<
void>; | 新增 | 使指定的package允许访问给定的应用帐号 |
| 帐号-account.appAccount | checkAppAccountSyncEnable(name: string, callback: AsyncCallback
\<
boolean>): void;
<br/>
checkAppAccountSyncEnable(name: string): Promise
\
<
boolean>; | 新增 | 检查指定的应用帐号是否允许应用程序同步数据 |
| 帐号-account.appAccount | setAccountCredential(name: string, credentialType: string, credential: string,
<br/>
callback: AsyncCallback
\<
void>): void;
<br/>
setAccountCredential(name: string, credentialType: string, credential: string): Promise
\
<
void>; | 新增 | 设置指定应用程序帐号的认证凭据 |
| 帐号-account.appAccount | setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback
\<
void>): void;
<br/>
setAccountExtraInfo(name: string, extraInfo: string): Promise
\
<
void>; | 新增 | 设置指定应用帐号的附加信息 |
| 帐号-account.appAccount | setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback
\<
void>): void;
<br/>
setAppAccountSyncEnable(name: string, isEnable: boolean): Promise
\
<
void>; | 新增 | 设置指定的应用程序帐号是否允许应用程序同步数据 |
| 帐号-account.appAccount | setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback
\<
void>): void;
<br/>
setAssociatedData(name: string, key: string, value: string): Promise
\
<
void>; | 新增 | 设置应用帐号关联信息 |
| 帐号-account.appAccount | getAllAccessibleAccounts(callback: AsyncCallback
\<
Array
\<
AppAccountInfo>>): void;
<br/>
getAllAccessibleAccounts(): Promise
\<
Array
\
<
AppAccountInfo>>; | 新增 | 获取本应用帐号信息和已授权给本应用的第三方应用帐号的信息 |
| 帐号-account.appAccount | getAllAccounts(owner: string, callback: AsyncCallback
\<
Array
\<
AppAccountInfo>>): void;
<br/>
getAllAccounts(owner: string): Promise
\<
Array
\
<
AppAccountInfo>>; | 新增 | 获取执行应用下全部帐号信息 |
| 帐号-account.appAccount | getAccountCredential(name: string, credentialType: string, callback: AsyncCallback
\<
string>): void;
<br/>
getAccountCredential(name: string, credentialType: string): Promise
\
<
string>; | 新增 | 获取指定应用程序帐号的认证凭据 |
| 帐号-account.appAccount | getAccountExtraInfo(name: string, callback: AsyncCallback
\<
string>): void;
<br/>
getAccountExtraInfo(name: string): Promise
\
<
string>; | 新增 | 获取应用帐号附加信息 |
| 帐号-account.appAccount | getAssociatedData(name: string, key: string, callback: AsyncCallback
\<
string>): void;
<br/>
getAssociatedData(name: string, key: string): Promise
\
<
string>; | 新增 | 获取应用帐号关联信息 |
| 帐号-account.appAccount| on(type: 'change', owners: Array
\<
string>, callback: Callback
\<
Array
\
<
AppAccountInfo>>): void; | 新增 | 订阅指定应用帐号的更改事件 |
| 帐号-account.appAccount | off(type: 'change', callback?: Callback
\
<
void>): void; | 新增 | 取消订阅应用帐号的更改事件 |
| 帐号-account.appAccount | interface AppAccountInfo | 新增 | 应用帐号信息 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: AsyncCallback
<AccelerometerResponse>
,options?: Options): void | 新增 | 监听加速度传感器的数据变化 |
| 泛Sensor服务-sensor | on(type:SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION,callback:AsyncCallback
<LinearAccelerometerResponse>
, options?: Options): void | 新增 | 监听线性加速度传感器的数据变化 |
| 泛Sensor服务-sensor | on(type:SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED,callback:AsyncCallback
<AccelerometerUncalibratedResponse>
, options?: Options): void | 新增 | 监听未校准加速度计传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: AsyncCallback
<GravityResponse>
,options?: Options): void | 新增 | 监听重力传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: AsyncCallback
<GyroscopeResponse>
, options?: Options): void | 新增 | 监听陀螺仪传感器的数据变化 |
| 泛Sensor服务-sensor | on(type:SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED,callback:AsyncCallback
<GyroscopeUncalibratedResponse>
, options?: Options): void | 新增 | 监听未校准陀螺仪传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: AsyncCallback
<SignificantMotionResponse>
, options?: Options): void | 新增 | 监听大幅动作传感器数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: AsyncCallback
<PedometerDetectResponse>
, options?: Options): void | 新增 | 监听计步检测传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: AsyncCallback
<PedometerResponse>
, options?: Options): void | 新增 | 监听计步传感器的数据变化 |
| 泛Sensor服务-sensor | on(type:SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE,callback:AsyncCallback
<AmbientTemperatureResponse>
, options?: Options): void | 新增 | 监听环境温度传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: AsyncCallback
<MagneticFieldResponse>
,options?: Options): void | 新增 | 监听磁场传感器的数据变化 |
| 泛Sensor服务-sensor | on(type:SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED,callback:AsyncCallback
<MagneticFieldUncalibratedResponse>
, options: Options): void | 新增 | 监听未校准磁场传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: AsyncCallback
<ProximityResponse>
,options?: Options): void | 新增 | 监听接近光传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: AsyncCallback
<HumidityResponse>
,options?: Options): void | 新增 | 监听湿度传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: AsyncCallback
<BarometerResponse>
,options?: Options): void | 新增 | 监听气压计传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_HALL, callback: AsyncCallback
<HallResponse>
, options?: Options): void | 新增 | 监听霍尔传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: AsyncCallback
<LightResponse>
, options?: Options): void | 新增 | 监听环境光传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: AsyncCallback
<OrientationResponse>
, options?: Options): void | 新增 | 监听方向传感器的数据变化 |
| 泛Sensor服务-sensor | on(type:SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR,callback:AsyncCallback
<RotationVectorResponse>
,options?: Options): void | 新增 | 监听旋转矢量传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: AsyncCallback
<WearDetectionResponse>
,options?: Options): void | 新增 | 监听佩戴检测传感器的数据变化 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: AsyncCallback
<AccelerometerResponse>
): void | 新增 | 监听加速度传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type:SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION,callback:AsyncCallback
<LinearAccelerometerResponse>
): void | 新增 | 监听线性加速度传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type:SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED,callback:AsyncCallback
<AccelerometerUncalibratedResponse>
): void | 新增 | 监听未校准加速度计传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: AsyncCallback
<GravityResponse>
): void | 新增 | 监听重力传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: AsyncCallback
<GyroscopeResponse>
): void | 新增 | 监听陀螺仪传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type:SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED,callback:AsyncCallback
<GyroscopeUncalibratedResponse>
, options?: Options): void | 新增 | 监听未校准陀螺仪传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: AsyncCallback
<SignificantMotionResponse>
): void | 新增 | 监听大幅动作传感器数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: AsyncCallback
<PedometerDetectResponse>
): void | 新增 | 监听计步检测传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: AsyncCallback
<PedometerResponse>
): void | 新增 | 监听计步传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type:SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE,callback:AsyncCallback
<AmbientTemperatureResponse>
): void | 新增 | 监听环境温度传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: AsyncCallback
<MagneticFieldResponse>
): void | 新增 | 监听磁场传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type:SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED,callback:AsyncCallback
<MagneticFieldUncalibratedResponse>
): void | 新增 | 监听未校准磁场传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: AsyncCallback
<ProximityResponse>
): void | 新增 | 监听接近光传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: AsyncCallback
<HumidityResponse>
): void | 新增 | 监听湿度传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: AsyncCallback
<BarometerResponse>
): void | 新增 | 监听气压计传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: AsyncCallback
<HallResponse>
): void | 新增 | 监听霍尔传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: AsyncCallback
<LightResponse>
): void | 新增 | 监听环境光传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: AsyncCallback
<OrientationResponse>
): void | 新增 | 监听方向传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type:SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR,callback:AsyncCallback
<RotationVectorResponse>
): void | 新增 | 监听旋转矢量传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: AsyncCallback
<WearDetectionResponse>
): void | 新增 | 监听佩戴检测传感器的数据变化一次 |
| 泛Sensor服务-sensor | off(type: SensorType, callback?: AsyncCallback
<void>
): void
| 新增 | 取消订阅传感器数据 |
| 泛Sensor服务-sensor | getGeomagneticField(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback
<GeomagneticResponse>
): void
</br>
getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise
<GeomagneticResponse>
| 新增 | 获取地球上特定位置的地磁场 |
| 泛Sensor服务-vibrator | vibrate(duration: number): Promise
<void>
</br>
vibrate(duration: number, callback?: AsyncCallback
<void>
): void | 新增 | 按照指定持续时间触发马达振动 |
| 泛Sensor服务-vibrator | vibrate(effectId: EffectId): Promise
<void>
</br>
vibrate(effectId: EffectId, callback?: AsyncCallback
<void>
): void | 新增 | 按照指定振动效果触发马达振动 |
| 泛Sensor服务-vibrator | stop(stopMode: VibratorStopMode): Promise
<void>
</br>
stop(stopMode: VibratorStopMode, callback?: AsyncCallback
<void>
): void | 新增 | 停止马达振动 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: AsyncCallback
\
<
AccelerometerResponse>,options?: Options): void | 新增 | 监听加速度传感器的数据变化 |
| 泛Sensor服务-sensor | on(type:SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION,callback:AsyncCallback
\
<
LinearAccelerometerResponse>, options?: Options): void | 新增 | 监听线性加速度传感器的数据变化 |
| 泛Sensor服务-sensor | on(type:SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED,callback:AsyncCallback
\
<
AccelerometerUncalibratedResponse>, options?: Options): void | 新增 | 监听未校准加速度计传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: AsyncCallback
\
<
GravityResponse>,options?: Options): void | 新增 | 监听重力传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: AsyncCallback
\
<
GyroscopeResponse>, options?: Options): void | 新增 | 监听陀螺仪传感器的数据变化 |
| 泛Sensor服务-sensor | on(type:SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED,callback:AsyncCallback
\
<
GyroscopeUncalibratedResponse>, options?: Options): void | 新增 | 监听未校准陀螺仪传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: AsyncCallback
\
<
SignificantMotionResponse>, options?: Options): void | 新增 | 监听大幅动作传感器数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: AsyncCallback
\
<
PedometerDetectResponse>, options?: Options): void | 新增 | 监听计步检测传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: AsyncCallback
\
<
PedometerResponse>, options?: Options): void | 新增 | 监听计步传感器的数据变化 |
| 泛Sensor服务-sensor | on(type:SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE,callback:AsyncCallback
\
<
AmbientTemperatureResponse>, options?: Options): void | 新增 | 监听环境温度传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: AsyncCallback
\
<
MagneticFieldResponse>,options?: Options): void | 新增 | 监听磁场传感器的数据变化 |
| 泛Sensor服务-sensor | on(type:SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED,callback:AsyncCallback
\
<
MagneticFieldUncalibratedResponse>, options: Options): void | 新增 | 监听未校准磁场传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: AsyncCallback
\
<
ProximityResponse>,options?: Options): void | 新增 | 监听接近光传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: AsyncCallback
\
<
HumidityResponse>,options?: Options): void | 新增 | 监听湿度传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: AsyncCallback
\
<
BarometerResponse>,options?: Options): void | 新增 | 监听气压计传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_HALL, callback: AsyncCallback
\
<
HallResponse>, options?: Options): void | 新增 | 监听霍尔传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: AsyncCallback
\
<
LightResponse>, options?: Options): void | 新增 | 监听环境光传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: AsyncCallback
\
<
OrientationResponse>, options?: Options): void | 新增 | 监听方向传感器的数据变化 |
| 泛Sensor服务-sensor | on(type:SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR,callback:AsyncCallback
\
<
RotationVectorResponse>,options?: Options): void | 新增 | 监听旋转矢量传感器的数据变化 |
| 泛Sensor服务-sensor | on(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: AsyncCallback
\
<
WearDetectionResponse>,options?: Options): void | 新增 | 监听佩戴检测传感器的数据变化 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: AsyncCallback
\
<
AccelerometerResponse>): void | 新增 | 监听加速度传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type:SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION,callback:AsyncCallback
\
<
LinearAccelerometerResponse>): void | 新增 | 监听线性加速度传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type:SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED,callback:AsyncCallback
\
<
AccelerometerUncalibratedResponse>): void | 新增 | 监听未校准加速度计传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: AsyncCallback
\
<
GravityResponse>): void | 新增 | 监听重力传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: AsyncCallback
\
<
GyroscopeResponse>): void | 新增 | 监听陀螺仪传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type:SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED,callback:AsyncCallback
\
<
GyroscopeUncalibratedResponse>, options?: Options): void | 新增 | 监听未校准陀螺仪传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: AsyncCallback
\
<
SignificantMotionResponse>): void | 新增 | 监听大幅动作传感器数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: AsyncCallback
\
<
PedometerDetectResponse>): void | 新增 | 监听计步检测传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: AsyncCallback
\
<
PedometerResponse>): void | 新增 | 监听计步传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type:SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE,callback:AsyncCallback
\
<
AmbientTemperatureResponse>): void | 新增 | 监听环境温度传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: AsyncCallback
\
<
MagneticFieldResponse>): void | 新增 | 监听磁场传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type:SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED,callback:AsyncCallback
\
<
MagneticFieldUncalibratedResponse>): void | 新增 | 监听未校准磁场传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: AsyncCallback
\
<
ProximityResponse>): void | 新增 | 监听接近光传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: AsyncCallback
\
<
HumidityResponse>): void | 新增 | 监听湿度传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: AsyncCallback
\
<
BarometerResponse>): void | 新增 | 监听气压计传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: AsyncCallback
\
<
HallResponse>): void | 新增 | 监听霍尔传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: AsyncCallback
\
<
LightResponse>): void | 新增 | 监听环境光传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: AsyncCallback
\
<
OrientationResponse>): void | 新增 | 监听方向传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type:SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR,callback:AsyncCallback
\
<
RotationVectorResponse>): void | 新增 | 监听旋转矢量传感器的数据变化一次 |
| 泛Sensor服务-sensor | once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: AsyncCallback
\
<
WearDetectionResponse>): void | 新增 | 监听佩戴检测传感器的数据变化一次 |
| 泛Sensor服务-sensor | off(type: SensorType, callback?: AsyncCallback
\<
void>): void
| 新增 | 取消订阅传感器数据 |
| 泛Sensor服务-sensor | getGeomagneticField(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback
\<
GeomagneticResponse>): void
<br/>
getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise
\
<
GeomagneticResponse> | 新增 | 获取地球上特定位置的地磁场 |
| 泛Sensor服务-vibrator | vibrate(duration: number): Promise
\<
void>
<br/>
vibrate(duration: number, callback?: AsyncCallback
\
<
void>): void | 新增 | 按照指定持续时间触发马达振动 |
| 泛Sensor服务-vibrator | vibrate(effectId: EffectId): Promise
\<
void>
<br/>
vibrate(effectId: EffectId, callback?: AsyncCallback
\
<
void>): void | 新增 | 按照指定振动效果触发马达振动 |
| 泛Sensor服务-vibrator | stop(stopMode: VibratorStopMode): Promise
\<
void>
<br/>
stop(stopMode: VibratorStopMode, callback?: AsyncCallback
\
<
void>): void | 新增 | 停止马达振动 |
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录