diff --git a/api/@internal/component/ets/xcomponent.d.ts b/api/@internal/component/ets/xcomponent.d.ts index 2d1a4f6588cf450e60e2d3e6f5e7d97c20ec4c95..714116d3f40cafafd3793cf02f96addbf08c1559 100644 --- a/api/@internal/component/ets/xcomponent.d.ts +++ b/api/@internal/component/ets/xcomponent.d.ts @@ -16,26 +16,37 @@ import { CommonMethod } from "./common"; /** + * Defines XComponentController * @since 8 + * @systemapi */ export declare class XComponentController { /** * constructor. * @since 8 + * @systemapi */ constructor(); /** * get the id of surface created by XComponent. * @since 8 + * @systemapi */ getXComponentSurfaceId(); } /** + * Defines XComponent. * @since 8 + * @systemapi */ interface XComponent extends XComponentAttribute { + /** + * Constructor parameters + * @since 8 + * @systemapi + */ (value: { id: string; type: string; @@ -45,18 +56,22 @@ interface XComponent extends XComponentAttribute { } /** + * Defines XComponentAttribute. * @since 8 + * @systemapi */ declare class XComponentAttribute extends CommonMethod { /** * Called when judging whether the xcomponent surface is created. * @since 8 + * @systemapi */ onLoad(callback: (event?: {}) => void): T; /** * Called when judging whether the xcomponent is destroyed. * @since 8 + * @systemapi */ onDestroy(event: () => void): T; }