diff --git a/api/@ohos.app.ability.UIAbility.d.ts b/api/@ohos.app.ability.UIAbility.d.ts index 0f6b0cc85f1d5fca88808914a80d3012d258835d..0e332bbcfef19c1be49fb6b5ea6190ac78a24739 100644 --- a/api/@ohos.app.ability.UIAbility.d.ts +++ b/api/@ohos.app.ability.UIAbility.d.ts @@ -47,20 +47,6 @@ export interface OnReleaseCallback { (msg: string): void; } -/** - * The prototype of the listener function interface registered by the Caller. - * Defines the callback of OnRelease. - * - * @typedef OnReleaseCallback - * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore - * @param { string } msg - The notification event string listened to by the OnRelease. - * @stagemodelonly - * @since 20 - * @arkts 1.2 - */ -export type OnReleaseCallback = (msg: string)=> void; - - /** * The prototype of the listener function interface registered by the Caller. * @@ -108,8 +94,7 @@ export interface CalleeCallback { * @interface Caller * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @stagemodelonly - * @since arkts {'1.1':'9', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 9 */ export interface Caller { /** @@ -170,8 +155,7 @@ export interface Caller { * @throws { BusinessError } 16200001 - The caller has been released. * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @stagemodelonly - * @since arkts {'1.1':'9', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 9 */ onRelease(callback: OnReleaseCallback): void;