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

View File

@@ -115,6 +115,12 @@ export class Image extends View {
bottom: number
}
/**
* Called if loaded image is animated and played end.
*/
@Property
onAnimationEnd?: () => void
isAnimating(context: BridgeContext) {
return this.nativeChannel(context, "isAnimating")() as Promise<boolean>
}