From e77f6dff46243ca7dd4ab8f8f8135da21a3e15ad Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Thu, 23 Jun 2022 11:31:35 +0800 Subject: [PATCH] add system api Signed-off-by: yaoyuchi Change-Id: I369c8f3bec5fbd24f62aa3082e74dddd4cc1ef38 --- BUILD.gn | 1 + api/@internal/component/ets/ability_component.d.ts | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index f471b043f8..37b77bef16 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 359bba5297..78640db90c 100644 --- a/api/@internal/component/ets/ability_component.d.ts +++ b/api/@internal/component/ets/ability_component.d.ts @@ -14,31 +14,36 @@ */ /** - * Provides an interface for the ability component. + * Provide 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; } /** - * Defines the attribute functions of ability component. + * Define the attribute functions of ability component. * @since 9 + * @systemapi */ declare class AbilityComponentAttribute extends CommonMethod { /** - * Called when the component connected with ability. + * Called when the component is connected to ability. * @since 9 + * @systemapi */ onConnect(callback: () => void): AbilityComponentAttribute; /** - * Called when the component onDisconnected with ability. + * Called when the component is disconnected. * @since 9 + * @systemapi */ onDisconnect(callback: () => void): AbilityComponentAttribute; } -- Gitee