js: add onAnimationEnd for image

This commit is contained in:
pengfei.zhou
2021-12-17 16:52:20 +08:00
committed by osborn
parent e4b27af938
commit e1b10b10bb
9 changed files with 35 additions and 1 deletions

4
doric-js/index.d.ts vendored
View File

@@ -690,6 +690,10 @@ declare module 'doric/lib/src/widget/image' {
right: number;
bottom: number;
};
/**
* Called if loaded image is animated and played end.
*/
onAnimationEnd?: () => void;
isAnimating(context: BridgeContext): Promise<boolean>;
startAnimating(context: BridgeContext): Promise<any>;
stopAnimating(context: BridgeContext): Promise<any>;