mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
add new interface notifySaveAsResult
Signed-off-by: donglin <donglin9@huawei.com> Change-Id: I62c8aca6a87c6b30898883403a4eb921f57e6264
This commit is contained in:
parent
14fb823a35
commit
0df1275423
31
api/@ohos.app.ability.abilityManager.d.ts
vendored
31
api/@ohos.app.ability.abilityManager.d.ts
vendored
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user