Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
6685bcb1
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
6685bcb1
编写于
8月 16, 2023
作者:
O
openharmony_ci
提交者:
Gitee
8月 16, 2023
浏览文件
操作
浏览文件
下载
差异文件
!22255 onCreate()与onNewWant()接口中参数名修改
Merge pull request !22255 from 陶家炜/tjw1
上级
44836b15
5fa6d6c6
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
196 addition
and
196 deletion
+196
-196
zh-cn/application-dev/ability-deprecated/stage-ability-continuation.md
...tion-dev/ability-deprecated/stage-ability-continuation.md
+33
-33
zh-cn/application-dev/ability-deprecated/stage-ability.md
zh-cn/application-dev/ability-deprecated/stage-ability.md
+9
-9
zh-cn/application-dev/application-models/hop-cross-device-migration.md
...tion-dev/application-models/hop-cross-device-migration.md
+47
-47
zh-cn/application-dev/application-models/lifecycleapp-switch.md
...application-dev/application-models/lifecycleapp-switch.md
+4
-4
zh-cn/application-dev/application-models/pageability-switch.md
.../application-dev/application-models/pageability-switch.md
+5
-5
zh-cn/application-dev/application-models/uiability-intra-device-interaction.md
.../application-models/uiability-intra-device-interaction.md
+66
-66
zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md
...ation-dev/reference/apis/js-apis-app-ability-uiAbility.md
+27
-27
zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-ability.md
...release-notes/api-diff/v3.2-Release/js-apidiff-ability.md
+2
-2
zh-cn/release-notes/api-diff/v3.2-beta2/js-apidiff-ability.md
...n/release-notes/api-diff/v3.2-beta2/js-apidiff-ability.md
+1
-1
zh-cn/release-notes/api-diff/v3.2-beta5/js-apidiff-ability.md
...n/release-notes/api-diff/v3.2-beta5/js-apidiff-ability.md
+2
-2
未找到文件。
zh-cn/application-dev/ability-deprecated/stage-ability-continuation.md
浏览文件 @
6685bcb1
...
...
@@ -13,8 +13,8 @@
|接口名 | 描述|
|:------ | :------|
| onContinue(wantParam : {[key: string]: any}): OnContinueResult | 迁移
**发起端**
在该回调中保存迁移所需要的数据,同时返回是否同意迁移:AGREE表示同意,REJECT表示拒绝;MISMATCH表示版本不匹配。 |
| onCreate(want: Want,
p
aram: AbilityConstant.LaunchParam): void; | 多实例应用迁移
**目标端**
在该回调中完成数据恢复,并触发页面恢复。 |
| onNewWant(want: Want, launchParam
s
: AbilityConstant.LaunchParam): void; | 单实例应用迁移
**目标端**
在该回调中完成数据恢复,并触发页面恢复。 |
| onCreate(want: Want,
launchP
aram: AbilityConstant.LaunchParam): void; | 多实例应用迁移
**目标端**
在该回调中完成数据恢复,并触发页面恢复。 |
| onNewWant(want: Want, launchParam: AbilityConstant.LaunchParam): void; | 单实例应用迁移
**目标端**
在该回调中完成数据恢复,并触发页面恢复。 |
...
...
zh-cn/application-dev/ability-deprecated/stage-ability.md
浏览文件 @
6685bcb1
...
...
@@ -45,13 +45,13 @@ Ability功能如下(Ability类,具体的API详见[接口文档](../reference
|接口名|描述|
|:------|:------|
|onCreate(want: Want,
p
aram: AbilityConstant.LaunchParam): void|Ability生命周期回调,Ability启动时被调用。|
|onCreate(want: Want,
launchP
aram: AbilityConstant.LaunchParam): void|Ability生命周期回调,Ability启动时被调用。|
|onDestroy(): void|Ability生命周期回调,Ability销毁时被调用。|
|onWindowStageCreate(windowStage: window.WindowStage): void|Ability生命周期回调,创建window stage时被调用,应用开发者可通过window.WindowStage的接口执行页面加载等操作。|
|onWindowStageDestroy(): void|Ability生命周期回调,销毁window stage时被调用。|
|onForeground(): void|Ability生命周期回调,Ability切换至前台时被调用。|
|onBackground(): void|Ability生命周期回调,Ability切换至后台时被调用。|
|onNewWant(want: Want, launchParam
s
: AbilityConstant.LaunchParam): void|Ability回调,Ability的启动模式设置为单例时被调用。|
|onNewWant(want: Want, launchParam: AbilityConstant.LaunchParam): void|Ability回调,Ability的启动模式设置为单例时被调用。|
|onConfigurationUpdated(config: Configuration): void|Ability回调,Ability的系统配置更新时被调用。|
### 实现AbilityStage及Ability生命周期
创建Stage模型的Page Ability应用,需实现AbilityStage接口及Ability生命周期接口,并使用窗口提供的方法设置页面。具体示例代码如下:
...
...
@@ -277,7 +277,7 @@ async function reStartAbility() {
import
UIAbility
from
'
@ohos.app.ability.UIAbility
'
;
export
default
class
EntryAbility
extends
UIAbility
{
onNewWant
(
want
,
launchParam
s
)
{
onNewWant
(
want
,
launchParam
)
{
globalThis
.
newWant
=
want
}
}
...
...
zh-cn/application-dev/application-models/hop-cross-device-migration.md
浏览文件 @
6685bcb1
...
...
@@ -47,8 +47,8 @@
|
**接口名**
|
**描述**
|
| -------- | -------- |
| onContinue(wantParam
:
{[key:
string]:
Object}):
OnContinueResult | 迁移发起端在该回调中保存迁移所需要的数据,同时返回是否同意迁移:
<br/>
-
AGREE:表示同意。
<br/>
-
REJECT:表示拒绝:如应用在onContinue中异常可以直接REJECT。
<br/>
-
MISMATCH:表示版本不匹配:迁移发起端应用可以在onContinue中获取到迁移接收端应用的版本号,进行协商后,如果版本不匹配导致无法迁移,可以返回该错误。 |
| onCreate(want:
Want,
p
aram:
AbilityConstant.LaunchParam):
void; | 应用迁移接收端为冷启动或多实例应用热启动时,在该回调中完成数据恢复,并触发页面恢复。详见
[
应用组件启动模式
](
uiability-launch-type.md
)
|
| onNewWant(want:
Want,
launchParam
s
:
AbilityConstant.LaunchParam):
void; | 迁移接收端为单实例应用热启动时,在该回调中完成数据恢复,并触发页面恢复。详见
[
应用组件启动模式
](
uiability-launch-type.md
)
|
| onCreate(want:
Want,
launchP
aram:
AbilityConstant.LaunchParam):
void; | 应用迁移接收端为冷启动或多实例应用热启动时,在该回调中完成数据恢复,并触发页面恢复。详见
[
应用组件启动模式
](
uiability-launch-type.md
)
|
| onNewWant(want:
Want,
launchParam:
AbilityConstant.LaunchParam):
void; | 迁移接收端为单实例应用热启动时,在该回调中完成数据恢复,并触发页面恢复。详见
[
应用组件启动模式
](
uiability-launch-type.md
)
|
...
...
zh-cn/application-dev/application-models/lifecycleapp-switch.md
浏览文件 @
6685bcb1
...
...
@@ -6,16 +6,16 @@
| onShow?():
void; |
\@
ohos.window.d.ts |
[
on(eventType: 'windowStageEvent', callback: Callback<WindowStageEventType>): void;
](
../reference/apis/js-apis-window.md#onwindowstageevent9
)
<br/>
监听
[
FOREGROUND
](
../reference/apis/js-apis-window.md#windowstageeventtype9
)
切到前台状态 |
| onHide?():
void; |
\@
ohos.window.d.ts |
[
on(eventType: 'windowStageEvent', callback: Callback<WindowStageEventType>): void;
](
../reference/apis/js-apis-window.md#onwindowstageevent9
)
<br/>
监听
[
BACKGROUND
](
../reference/apis/js-apis-window.md#windowstageeventtype9
)
切到后台状态 |
| onDestroy?():
void; |
\@
ohos.app.ability.UIAbility.d.ts |
[
onDestroy(): void;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityondestroy
)
|
| onCreate?():
void; |
\@
ohos.app.ability.UIAbility.d.ts |
[
onCreate(want: Want,
p
aram: AbilityConstant.LaunchParam): void;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityoncreate
)
|
| onCreate?():
void; |
\@
ohos.app.ability.UIAbility.d.ts |
[
onCreate(want: Want,
launchP
aram: AbilityConstant.LaunchParam): void;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityoncreate
)
|
| onWindowDisplayModeChanged?(isShownInMultiWindow:
boolean,
newConfig:
resourceManager.Configuration):
void; | Stage模型无对应接口 | 暂时未提供对应接口 |
| onStartContinuation?():
boolean; | Stage模型无对应接口 | Stage模型上,应用无需感知迁移是否成功(由应用发起迁移请求时感知),onStartContinuation废弃 |
| onSaveData?(data:
Object):
boolean; |
\@
ohos.app.ability.UIAbility.d.ts |
[
onContinue(wantParam : {[key: string]: Object}): AbilityConstant.OnContinueResult;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityoncontinue
)
|
| onCompleteContinuation?(result:
number):
void; | application
\C
ontinueCallback.d.ts |
[
onContinueDone(result: number): void;
](
../reference/apis/js-apis-distributedMissionManager.md#continuecallback
)
|
| onRestoreData?(data:
Object):
void; |
\@
ohos.app.ability.UIAbility.d.ts |
[
onCreate(want: Want,
param: AbilityConstant.LaunchParam): void;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityoncreate
)
<br/>
[
onNewWant(want: Want, launchParams
: AbilityConstant.LaunchParam): void;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityonnewwant
)
<br/>
多实例模式Ability迁移目标端在onCreate回调中完成数据恢复,单实例模式应用迁移目标端在onCreate回调中完成数据恢复,回调中通过判断launchParam.launchReason可获取迁移启动的场景,从而可以从Want中获取迁移前保存的数据 |
| onRestoreData?(data:
Object):
void; |
\@
ohos.app.ability.UIAbility.d.ts |
[
onCreate(want: Want,
launchParam: AbilityConstant.LaunchParam): void;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityoncreate
)
<br/>
[
onNewWant(want: Want, launchParam
: AbilityConstant.LaunchParam): void;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityonnewwant
)
<br/>
多实例模式Ability迁移目标端在onCreate回调中完成数据恢复,单实例模式应用迁移目标端在onCreate回调中完成数据恢复,回调中通过判断launchParam.launchReason可获取迁移启动的场景,从而可以从Want中获取迁移前保存的数据 |
| onRemoteTerminated?():
void; | application
\C
ontinueCallback.d.ts |
[
onContinueDone(result: number): void;
](
../reference/apis/js-apis-distributedMissionManager.md#continuecallback
)
|
| onSaveAbilityState?(outState:
PacMap):
void; |
\@
ohos.app.ability.UIAbility.d.ts |
[
onSaveState(reason: AbilityConstant.StateType, wantParam : {[key: string]: Object}): AbilityConstant.OnSaveResult;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityonsavestate
)
|
| onRestoreAbilityState?(inState:
PacMap):
void; |
\@
ohos.app.ability.UIAbility.d.ts |
[
onCreate(want: Want,
p
aram: AbilityConstant.LaunchParam): void;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityoncreate
)
<br/>
应用重启后会触发Ability的onCreate方法,通过判断launchParam.launchReason可获取自恢复的场景,从而可以从Want中获取重启前保存的数据 |
| onRestoreAbilityState?(inState:
PacMap):
void; |
\@
ohos.app.ability.UIAbility.d.ts |
[
onCreate(want: Want,
launchP
aram: AbilityConstant.LaunchParam): void;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityoncreate
)
<br/>
应用重启后会触发Ability的onCreate方法,通过判断launchParam.launchReason可获取自恢复的场景,从而可以从Want中获取重启前保存的数据 |
| onInactive?():
void; |
\@
ohos.app.ability.UIAbility.d.ts |
[
onBackground(): void;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityonbackground
)
|
| onActive?():
void; |
\@
ohos.app.ability.UIAbility.d.ts |
[
onForeground(): void;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityonforeground
)
|
| onNewWant?(want:
Want):
void; |
\@
ohos.app.ability.UIAbility.d.ts |
[
onNewWant(want: Want, launchParam
s
: AbilityConstant.LaunchParam): void;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityonnewwant
)
|
| onNewWant?(want:
Want):
void; |
\@
ohos.app.ability.UIAbility.d.ts |
[
onNewWant(want: Want, launchParam: AbilityConstant.LaunchParam): void;
](
../reference/apis/js-apis-app-ability-uiAbility.md#abilityonnewwant
)
|
| onMemoryLevel?(level:
number):
void |
\@
ohos.app.ability.UIAbility.d.ts |
[
onMemoryLevel(level: AbilityConstant.MemoryLevel): void;
](
../reference/apis/js-apis-app-ability-ability.md#abilityonmemorylevel
)
|
zh-cn/application-dev/application-models/pageability-switch.md
浏览文件 @
6685bcb1
...
...
@@ -11,11 +11,11 @@ FA模型中PageAbility对应Stage模型中的UIAbility。切换步骤如下。
| FA的PageAbility | Stage的UIAbility | 对应关系描述 |
| -------- | -------- | -------- |
| onCreate():
void | onCreate(want:
Want,
p
aram:
AbilityConstant.LaunchParam):
void | 两者的意义和调用时机一致,Stage模型在回调中新增了参数,方便开发者在创建的时候获取启动相关的数据。 |
| onCreate():
void | onCreate(want:
Want,
launchP
aram:
AbilityConstant.LaunchParam):
void | 两者的意义和调用时机一致,Stage模型在回调中新增了参数,方便开发者在创建的时候获取启动相关的数据。 |
| NA | onWindowStageCreate(windowStage:
window.WindowStage):
void | Stage模型新增,窗口创建时由系统回调。 |
| onActive():
void | on(eventType:
'windowStageEvent',
callback:
Callback
<
WindowStageEventType
>
):
void;
<br/>
WindowStageEventType.ACTIVE | 两者的意义和调用时机一致。Stage模型下移动到了窗口对象中。 |
| onShow():
void | onForeground():
void | 两者的意义和调用时机一致,参数也一致。 |
| onNewWant(want:
Want):
void | onNewWant(want:
Want,
launchParam
s
:
AbilityConstant.LaunchParam):
void | 两者的意义和调用时机一致,Stage模型多了LaunchParam参数来告知应用启动原因。 |
| onNewWant(want:
Want):
void | onNewWant(want:
Want,
launchParam:
AbilityConstant.LaunchParam):
void | 两者的意义和调用时机一致,Stage模型多了LaunchParam参数来告知应用启动原因。 |
| onInactive():
void | on(eventType:
'windowStageEvent',
callback:
Callback
<
WindowStageEventType
>
):
void;
<br/>
WindowStageEventType.INACTIVE | 两者的意义和调用时机一致。Stage模型下移动到了窗口对象中。 |
| onHide():
void | onBackground():
void | 两者的意义和调用时机一致,参数也一致。 |
| NA | onWindowStageDestroy():
void | Stage模型新增,窗口销毁时由系统回调。 |
...
...
zh-cn/application-dev/application-models/uiability-intra-device-interaction.md
浏览文件 @
6685bcb1
...
...
@@ -519,7 +519,7 @@ S-->>U: 显示给张三发短信的页面
funcAbilityWant
:
Want
;
uiContext
:
UIContext
;
onNewWant
(
want
:
Want
,
launchParam
s
:
AbilityConstant
.
LaunchParam
)
{
onNewWant
(
want
:
Want
,
launchParam
:
AbilityConstant
.
LaunchParam
)
{
if
(
want
?.
parameters
?.
router
&&
want
.
parameters
.
router
===
'
funcA
'
)
{
let
funcAUrl
=
'
pages/Second
'
;
let
router
:
Router
=
this
.
uiContext
.
getRouter
();
...
...
zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md
浏览文件 @
6685bcb1
...
...
@@ -29,7 +29,7 @@ import UIAbility from '@ohos.app.ability.UIAbility';
## UIAbility.onCreate
onCreate(want: Want,
p
aram: AbilityConstant.LaunchParam): void;
onCreate(want: Want,
launchP
aram: AbilityConstant.LaunchParam): void;
UIAbility创建时回调,执行初始化业务逻辑操作。
...
...
@@ -46,7 +46,7 @@ UIAbility创建时回调,执行初始化业务逻辑操作。
```
ts
class
MyUIAbility
extends
UIAbility
{
onCreate
(
want
,
p
aram
)
{
onCreate
(
want
,
launchP
aram
)
{
console
.
log
(
'
onCreate, want: ${want.abilityName}
'
);
}
}
...
...
@@ -226,7 +226,7 @@ onContinue(wantParam: { [key: string]: Object }): AbilityConstant.OnContinueResu
## UIAbility.onNewWant
onNewWant(want: Want, launchParam
s
: AbilityConstant.LaunchParam): void;
onNewWant(want: Want, launchParam: AbilityConstant.LaunchParam): void;
当传入新的Want,ability再次被拉起时会回调执行该方法。
...
...
@@ -237,15 +237,15 @@ onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void;
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| want |
[
Want
](
js-apis-app-ability-want.md
)
| 是 | Want类型参数,如ability名称,包名等。 |
| launchParam
s
|
[
AbilityConstant.LaunchParam
](
js-apis-app-ability-abilityConstant.md#abilityconstantlaunchparam
)
| 是 | UIAbility启动的原因、上次异常退出的原因信息。 |
| launchParam |
[
AbilityConstant.LaunchParam
](
js-apis-app-ability-abilityConstant.md#abilityconstantlaunchparam
)
| 是 | UIAbility启动的原因、上次异常退出的原因信息。 |
**示例:**
```
ts
class
MyUIAbility
extends
UIAbility
{
onNewWant
(
want
,
launchParam
s
)
{
onNewWant
(
want
,
launchParam
)
{
console
.
log
(
'
onNewWant, want: ${want.abilityName}
'
);
console
.
log
(
'
onNewWant, launchParam
s: ${JSON.stringify(launchParams
)}
'
);
console
.
log
(
'
onNewWant, launchParam
: ${JSON.stringify(launchParam
)}
'
);
}
}
```
...
...
zh-cn/release-notes/api-diff/v3.2-Release/js-apidiff-ability.md
浏览文件 @
6685bcb1
...
...
@@ -257,7 +257,7 @@
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: launchWant: Want;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: lastRequestWant: Want;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: callee: Callee;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: onCreate(want: Want,
p
aram: AbilityConstant.LaunchParam): void;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: onCreate(want: Want,
launchP
aram: AbilityConstant.LaunchParam): void;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: onWindowStageCreate(windowStage: window.WindowStage): void;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: onWindowStageDestroy(): void;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: onWindowStageRestore(windowStage: window.WindowStage): void;|@ohos.app.ability.UIAbility.d.ts|
...
...
@@ -265,7 +265,7 @@
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: onForeground(): void;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: onBackground(): void;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: onContinue(wantParam: { [key: string]: Object }): AbilityConstant.OnContinueResult;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: onNewWant(want: Want, launchParam
s
: AbilityConstant.LaunchParam): void;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: onNewWant(want: Want, launchParam: AbilityConstant.LaunchParam): void;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: onDump(params: Array
\<
string>): Array
\<
string>;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.UIAbility
<br>
类名: UIAbility
<br>
方法 or 属性: onSaveState(reason: AbilityConstant.StateType, wantParam : {[key: string]: Object}): AbilityConstant.OnSaveResult;|@ohos.app.ability.UIAbility.d.ts|
|新增|NA|模块名: ohos.app.ability.Want
<br>
类名: Want|@ohos.app.ability.Want.d.ts|
...
...
zh-cn/release-notes/api-diff/v3.2-beta2/js-apidiff-ability.md
浏览文件 @
6685bcb1
...
...
@@ -73,5 +73,5 @@ OpenHarmony 3.2 Beta2版本相较于OpenHarmony 3.2 Beta1版本,元能力子
| FormExtensionContext | FormExtensionContext | updateForm(formId: string, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback
\<
void>): void;
<br>
updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise
\<
void>; | 删除 |
| ServiceExtensionContext | ServiceExtensionContext | extensionAbilityInfo: ExtensionAbilityInfo; | 删除 |
| ohos.application.appManager | appManager | getProcessRunningInfos(): Promise
\<
Array
\<
ProcessRunningInfo>>;
<br>
getProcessRunningInfos(callback: AsyncCallback
\<
Array
\<
ProcessRunningInfo>>): void; | 废弃 |
| ohos.application.Ability | Ability | old : onNewWant(want: Want): void;
<br>
new : onNewWant(want: Want, launchParam
s
: AbilityConstant.LaunchParam): void; | 变更 |
| ohos.application.Ability | Ability | old : onNewWant(want: Want): void;
<br>
new : onNewWant(want: Want, launchParam: AbilityConstant.LaunchParam): void; | 变更 |
| ohos.application.Ability | Callee | old : on(method: string, callback: CaleeCallBack): void;
<br>
new : on(method: string, callback: CalleeCallBack): void; | 变更 |
\ No newline at end of file
zh-cn/release-notes/api-diff/v3.2-beta5/js-apidiff-ability.md
浏览文件 @
6685bcb1
...
...
@@ -24,7 +24,7 @@
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:launchWant: Want;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:lastRequestWant: Want;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:callee: Callee;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:onCreate(want: Want,
p
aram: AbilityConstant.LaunchParam): void;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:onCreate(want: Want,
launchP
aram: AbilityConstant.LaunchParam): void;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:onWindowStageCreate(windowStage: window.WindowStage): void;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:onWindowStageDestroy(): void;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:onWindowStageRestore(windowStage: window.WindowStage): void;|NA|@ohos.application.Ability.d.ts|
...
...
@@ -32,7 +32,7 @@
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:onForeground(): void;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:onBackground(): void;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:onContinue(wantParam : {[key: string]: any}): AbilityConstant.OnContinueResult;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:onNewWant(want: Want, launchParam
s
: AbilityConstant.LaunchParam): void;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:onNewWant(want: Want, launchParam: AbilityConstant.LaunchParam): void;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:onConfigurationUpdated(config: Configuration): void;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:dump(params: Array
<string>
): Array
<string>
;|NA|@ohos.application.Ability.d.ts|
|删除|模块名: ohos.application.Ability
<br>
类名: Ability
<br>
方法 or 属性:onMemoryLevel(level: AbilityConstant.MemoryLevel): void;|NA|@ohos.application.Ability.d.ts|
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录