FramesRemovedEventArgs
class cAlgo.API
DesktopCLICloud
Provides data for the frames removed event.
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
public class FramesRemovedEventArgs
Namespace: cAlgo.API · Group: EventArgs
Examples
protected override void OnStart()
{
ChartManager.FramesRemoved += OnFramesRemoved;
}
private void OnFramesRemoved(FramesRemovedEventArgs args)
{
Print("{0} frame(s) removed, remaining frames: {1}", args.RemovedFrames.Length, ChartManager.Count);
}
def on_start(self):
api.ChartManager.FramesRemoved += self.on_frames_removed
def on_frames_removed(self, args):
api.Print(f"{len(args.RemovedFrames)} frame(s) removed, remaining frames: {api.ChartManager.Count}")
Properties
| Name | Description |
|---|---|
RemovedFramesDesktopCLICloudFrame[] | Returns the removed frames. |