API / SView / Animation / AnimationTaskLinstener
Class: AnimationTaskLinstener
SView.Animation.AnimationTaskLinstener
Memberof
SView.Animation
Author
YW
Date
2022-1-20
Implements
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new AnimationTaskLinstener(): AnimationTaskLinstener
Returns
Properties
updateActive
• updateActive: (task
: any
) => void
Type declaration
▸ (task
): void
Parameters
Name | Type |
---|---|
task | any |
Returns
void
updatePercent
• updatePercent: () => void
Type declaration
▸ (): void
Returns
void
updateState
• updateState: (task
: any
, state
: any
) => void
Type declaration
▸ (task
, state
): void
Parameters
Name | Type |
---|---|
task | any |
state | any |
Returns
void
updateStopPlaying
• updateStopPlaying: () => void
Type declaration
▸ (): void
Returns
void
updateWorkTask
• updateWorkTask: () => void
Type declaration
▸ (): void
Returns
void
Methods
onActive
▸ onActive(sender
, task
): void
Parameters
Name | Type |
---|---|
sender | Object |
task | Object |
Returns
void
Description
设置激活
Implementation of
IAnimatinTaskListener.onActive
onExecute
▸ onExecute(sender
, task
): void
Parameters
Name | Type |
---|---|
sender | Object |
task | Object |
Returns
void
Description
开始执行task
Memberof
AnimationTaskLinstener
Implementation of
IAnimatinTaskListener.onExecute
onPause
▸ onPause(sender
, task
): void
Parameters
Name | Type |
---|---|
sender | Object |
task | Object |
Returns
void
Description
暂停
Implementation of
onStopTask
▸ onStopTask(sender
, task
): void
Parameters
Name | Type |
---|---|
sender | Object |
task | Object |
Returns
void
Description
task执行完成
Implementation of
IAnimatinTaskListener.onStopTask
onTick
▸ onTick(sender
, task
): void
Parameters
Name | Type |
---|---|
sender | Object |
task | Object |
Returns
void
Description
task执行每一帧