diff --git a/api/@ohos.pluginComponent.d.ts b/api/@ohos.pluginComponent.d.ts index 834ca7614cd182895019a59207a51a9df001b8f8..7d3b194b34d6a55f217fe3166e995eafa364ce53 100644 --- a/api/@ohos.pluginComponent.d.ts +++ b/api/@ohos.pluginComponent.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -46,6 +46,20 @@ declare namespace pluginComponentManager { jsonPath?: string; } + /** + * Plugin component push parameters. + * @since 9 + * @systemapi + */ + interface PushParameterForStage { + owner: Want; + want: Want; + name: string; + data: KVObject; + extraData: KVObject; + jsonPath?: string; + } + /** * Plugin component request parameters. * @since 8 @@ -57,6 +71,19 @@ declare namespace pluginComponentManager { jsonPath?: string; } + /** + * Plugin component request parameters. + * @since 9 + * @systemapi + */ + interface RequestParameterForStage { + owner: Want; + want: Want; + name: string; + data: KVObject; + jsonPath?: string; + } + /** * Plugin component request callback parameters. * @since 8 @@ -103,6 +130,26 @@ declare namespace pluginComponentManager { */ function request(param: RequestParameters, callback: AsyncCallback): void; + /** + * Plugin component push method. + * @param param: Plugin component push parameters for stage. + * @param callback: Plugin component push event callback. + * @StageModelOnly + * @since 9 + * @systemapi + */ + function push(param: PushParameterForStage, callback: AsyncCallback): void; + + /** + * Plugin component request method. + * @param param: Plugin component request parameters for stage. + * @param callback: Plugin component request event callback. + * @StageModelOnly + * @since 9 + * @systemapi + */ + function request(param: RequestParameterForStage, callback: AsyncCallback): void; + /** * Plugin component event listener. * @since 8