add new interface notifySaveAsResult

Signed-off-by: donglin <donglin9@huawei.com>
Change-Id: I62c8aca6a87c6b30898883403a4eb921f57e6264
This commit is contained in:
donglin 2023-06-28 09:23:15 +00:00
parent 14fb823a35
commit 0df1275423

View File

@ -13,6 +13,7 @@
* limitations under the License.
*/
import { AbilityResult } from './ability/abilityResult';
import { AsyncCallback } from './@ohos.base';
import { Configuration } from './@ohos.app.ability.Configuration';
import { AbilityRunningInfo as _AbilityRunningInfo } from './application/AbilityRunningInfo';
@ -241,6 +242,36 @@ declare namespace abilityManager {
*/
function acquireShareData(missionId: number): Promise<{ [key: string]: Object }>;
/**
* Notify the result of save as to target ability.
* @param { AbilityResult } parameter - Indicates the result to return.
* @param { number } requestCode - Request code defined by the user.
* @param { AsyncCallback<void> } callback - The callback of the function.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - If the input parameter is not valid parameter.
* @throws { BusinessError } 16000050 - Internal error.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @StageModelOnly
* @since 10
*/
function notifySaveAsResult(parameter: AbilityResult, requestCode: number, callback: AsyncCallback<void>): void;
/**
* Notify the result of save as to target ability.
* @param { AbilityResult } parameter - Indicates the result to return.
* @param { number } requestCode - Request code defined by the user.
* @returns { Promise<void> } The promise returned by the function.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 401 - If the input parameter is not valid parameter.
* @throws { BusinessError } 16000050 - Internal error.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @StageModelOnly
* @since 10
*/
function notifySaveAsResult(parameter: AbilityResult, requestCode: number): Promise<void>;
/**
* The class of an ability running information.
*