mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-02-22 10:17:51 +00:00
IssueNo:#I5H40A
Description:新增应用上下文监听窗口状态变化监听接口及众测应用Action定义 Sig:SIG_ApplicationFramework Feature or Bugfix: Feature Binary Source: No Signed-off-by: dy_study <dingyao5@huawei.com> Change-Id: I5b766fd6be15d889e1988267022305ae224787f9
This commit is contained in:
parent
200d06bc4e
commit
4d329e38b7
18
api/@ohos.ability.wantConstant.d.ts
vendored
18
api/@ohos.ability.wantConstant.d.ts
vendored
@ -130,14 +130,14 @@ declare namespace wantConstant {
|
||||
*
|
||||
* @since 8
|
||||
*/
|
||||
ACTION_IMAGE_CAPTURE = "ohos.want.action.imageCapture",
|
||||
ACTION_IMAGE_CAPTURE = "ohos.want.action.imageCapture",
|
||||
|
||||
/**
|
||||
* Indicates the action of starting a Page ability for Take a video.
|
||||
*
|
||||
* @since 8
|
||||
*/
|
||||
ACTION_VIDEO_CAPTURE = "ohos.want.action.videoCapture",
|
||||
ACTION_VIDEO_CAPTURE = "ohos.want.action.videoCapture",
|
||||
|
||||
/**
|
||||
* Indicates the action of showing the application selection dialog box.
|
||||
@ -217,17 +217,25 @@ declare namespace wantConstant {
|
||||
ACTION_APP_ACCOUNT_OAUTH = "ohos.account.appAccount.action.oauth",
|
||||
|
||||
/**
|
||||
* Indicates the action of downloading application from application market.
|
||||
* Indicates the action of an application downloaded from the application market.
|
||||
*
|
||||
* @since 9
|
||||
* @systemapi Hide this for inner system use.
|
||||
*/
|
||||
ACTION_MARKER_DOWNLOAD = "ohos.want.action.marketDownload"
|
||||
ACTION_MARKET_DOWNLOAD = "ohos.want.action.marketDownload",
|
||||
|
||||
/**
|
||||
* Indicates the action of an application crowdtested from the application market.
|
||||
*
|
||||
* @since 9
|
||||
* @systemapi Hide this for inner system use.
|
||||
*/
|
||||
ACTION_MARKET_CROWDTEST = "ohos.want.action.marketCrowdTest"
|
||||
}
|
||||
|
||||
/**
|
||||
* the constant for Entity of the want
|
||||
* @name Action
|
||||
* @name Entity
|
||||
* @since 6
|
||||
* @syscap SystemCapability.Ability.AbilityBase
|
||||
* @permission N/A
|
||||
|
@ -14,6 +14,8 @@
|
||||
*/
|
||||
|
||||
import Ability from "./@ohos.application.Ability";
|
||||
import dataAbility from "./@ohos.data.dataAbility";
|
||||
import window from './@ohos.window';
|
||||
|
||||
/**
|
||||
* The ability lifecycle callback.
|
||||
@ -34,24 +36,48 @@ export default class AbilityLifecycleCallback {
|
||||
onAbilityCreate(ability: Ability): void;
|
||||
|
||||
/**
|
||||
* Called back when an ability window stage is created.
|
||||
* Called back when a window stage is created.
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
|
||||
* @param ability: Indicates the ability to register for listening.
|
||||
* @param windowStage window stage to create
|
||||
* @StageModelOnly
|
||||
*/
|
||||
onAbilityWindowStageCreate(ability: Ability): void;
|
||||
onWindowStageCreate(ability: Ability, windowStage: window.WindowStage): void;
|
||||
|
||||
/**
|
||||
* Called back when an ability window stage is destroyed.
|
||||
* Called back when a window stage is actived.
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
|
||||
* @param ability: Indicates the ability to register for listening.
|
||||
* @param windowStage window stage to active
|
||||
* @StageModelOnly
|
||||
*/
|
||||
onAbilityWindowStageDestroy(ability: Ability): void;
|
||||
onWindowStageActive(ability: Ability, windowStage: window.WindowStage): void;
|
||||
|
||||
/**
|
||||
* Called back when a window stage is inactived.
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
|
||||
* @param ability: Indicates the ability to register for listening.
|
||||
* @param windowStage window stage to inactive
|
||||
* @StageModelOnly
|
||||
*/
|
||||
onWindowStageInactive(ability: Ability, windowStage: window.WindowStage): void;
|
||||
|
||||
/**
|
||||
* Called back when a window stage is destroyed.
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
|
||||
* @param ability: Indicates the ability to register for listening.
|
||||
* @param windowStage window stage to destroy
|
||||
* @StageModelOnly
|
||||
*/
|
||||
onWindowStageDestroy(ability: Ability, windowStage: window.WindowStage): void;
|
||||
|
||||
/**
|
||||
* Called back when an ability is destroyed.
|
||||
|
Loading…
x
Reference in New Issue
Block a user