Skip to main content

onFinish 设置事件结束回调

onFinish

类型: MethodDeclaration

所属类: EventHandler

定义位置: event.ts

描述

设置事件结束回调

参数 callback: 回调函数

参数

参数名类型描述默认值
callback(event\: this) => void--

返回值

类型: void

源代码

位置: 第 572 行

public onFinish(callback: (event: this) => void): void {
if (this.complete) {
callback(this)
} else {
// 添加回调函数到队列中
if (this.callbacks !== undefined) {
this.callbacks.push(callback)
} else {
this.callbacks = [callback]
}
}
}

文档生成时间:2025/7/7 12:07:06