!7447 增加动画完成回调的类型

Merge pull request !7447 from wangchensu/animation
This commit is contained in:
openharmony_ci 2023-11-14 04:17:30 +00:00 committed by Gitee
commit 238532a21a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -916,6 +916,36 @@ declare function $r(value: string, ...params: any[]): Resource;
*/
declare function $rawfile(value: string): Resource;
/**
* Enum for FinishCallbackType.
*
* @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 11
*/
declare enum FinishCallbackType {
/**
* When the entire animation ends and will be removed immediately, the callback is triggered.
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 11
*/
REMOVED = 0,
/**
* When the animation is logically down but may still be in its long tail, the callback is triggered.
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 11
*/
LOGICALLY = 1,
}
/**
* Defines the animate function params.
*
@ -1095,6 +1125,17 @@ declare interface AnimateParam {
* @form
*/
onFinish?: () => void;
/**
* Define the type of onFinish callback in animation.
*
* @type { ?FinishCallbackType }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 11
* @form
*/
finishCallbackType?: FinishCallbackType;
}
/**