From cd498745ec838e812ecf3ee1ad5b0f54a89ef8be Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Wed, 18 May 2022 19:01:39 +0800 Subject: [PATCH] add ability component to systemapi Signed-off-by: yaoyuchi Change-Id: I10fc3a1f13781ddac5897d6baea05d2378a935a9 --- BUILD.gn | 1 + api/@internal/component/ets/ability_component.d.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 735000f5be..596137a58d 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -29,6 +29,7 @@ ohos_copy("ets_internal_api") { ohos_copy("ets_component") { sources = [ + "api/@internal/component/ets/ability_component.d.ts", "api/@internal/component/ets/action_sheet.d.ts", "api/@internal/component/ets/alert_dialog.d.ts", "api/@internal/component/ets/alphabet_indexer.d.ts", diff --git a/api/@internal/component/ets/ability_component.d.ts b/api/@internal/component/ets/ability_component.d.ts index 43524e4129..7260ce8a89 100644 --- a/api/@internal/component/ets/ability_component.d.ts +++ b/api/@internal/component/ets/ability_component.d.ts @@ -17,12 +17,14 @@ import { Want } from '../../../ability/want'; /** * Provides an interface for the ability component. * @since 9 + * @systemapi */ interface AbilityComponentInterface { /** * Construct the ability component. * Called when the ability component is used. * @since 9 + * @systemapi */ (want: Want): AbilityComponentAttribute; } @@ -30,16 +32,19 @@ interface AbilityComponentInterface { /** * Defines the attribute functions of ability component. * @since 9 + * @systemapi */ declare class AbilityComponentAttribute extends CommonMethod { /** * Called when the component connected with ability. * @since 9 + * @systemapi */ onConnect(callback: () => void): AbilityComponentAttribute; /** * Called when the component onDisconnected with ability. * @since 9 + * @systemapi */ onDisconnect(callback: () => void): AbilityComponentAttribute; } -- Gitee