From 8412d0f59e7e599aff37cf1eb3a162b32e1bb6aa Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Fri, 5 Sep 2025 09:11:06 +0800 Subject: [PATCH] back CompletionHandlerForAtomicService sdk Signed-off-by: zhangzezhong --- ...ity.CompletionHandlerForAtomicService.d.ts | 53 +------------------ 1 file changed, 1 insertion(+), 52 deletions(-) diff --git a/api/@ohos.app.ability.CompletionHandlerForAtomicService.d.ts b/api/@ohos.app.ability.CompletionHandlerForAtomicService.d.ts index 6b3acf8a0c..8243e6a0a7 100644 --- a/api/@ohos.app.ability.CompletionHandlerForAtomicService.d.ts +++ b/api/@ohos.app.ability.CompletionHandlerForAtomicService.d.ts @@ -63,40 +63,13 @@ declare enum FailureCode { FAILURE_CODE_USER_REFUSE = 2, } -/** - * Notify the success result of openAtomicService. - * - * @typedef { function } - * @param { string } appId - Globally unique identifier of an atomicservice, which is allocated by the cloud. - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @since 22 - * @arkts 1.2 - */ -type OnAtomicServiceRequestSuccessFn = (appId: string) => void; - -/** - * Notify the failure result of openAtomicService. - * - * @typedef { function } - * @param { string } appId - Globally unique identifier of an atomicservice, which is allocated by the cloud. - * @param { FailureCode } failureCode - Indicates the failure code for open atomic service. - * @param { string } failureMessage - Indicates the detail failure message for open atomic service. - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @since 22 - * @arkts 1.2 - */ -type OnAtomicServiceRequestFailureFn = (appId: string, failureCode: FailureCode, failureMessage: string) => void; - /** * CompletionHandlerForAtomicService is a handler to handle the completion events of openAtomicService. * * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @atomicservice - * @since arkts {'1.1':'20', '1.2':'22'} - * @arkts 1.1&1.2 + * @since 20 */ declare class CompletionHandlerForAtomicService { /** @@ -122,30 +95,6 @@ declare class CompletionHandlerForAtomicService { * @since 20 */ onAtomicServiceRequestFailure(appId: string, failureCode: FailureCode, failureMessage: string): void; - - /*** if arkts 1.2 */ - /** - * Notify the success result of openAtomicService. - * - * @type { OnAtomicServiceRequestSuccessFn } - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @since 22 - * @arkts 1.2 - */ - onAtomicServiceRequestSuccess: OnAtomicServiceRequestSuccessFn; - - /** - * Notify the failure result of openAtomicService. - * - * @type { OnAtomicServiceRequestFailureFn } - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @since 22 - * @arkts 1.2 - */ - onAtomicServiceRequestFailure: OnAtomicServiceRequestFailureFn; - /*** endif */ } export { FailureCode }; -- Gitee