FramesAddedEventArgs
class cAlgo.API
DesktopCLICloud
Provides data for the frames added 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 FramesAddedEventArgs
Namespace: cAlgo.API · Group: EventArgs
Examples
protected override void OnStart()
{
ChartManager.FramesAdded += OnFramesAdded;
}
private void OnFramesAdded(FramesAddedEventArgs args)
{
Print("{0} frame(s) added, total frames: {1}", args.AddedFrames.Length, ChartManager.Count);
}
def on_start(self):
api.ChartManager.FramesAdded += self.on_frames_added
def on_frames_added(self, args):
api.Print(f"{len(args.AddedFrames)} frame(s) added, total frames: {api.ChartManager.Count}")
Properties
| Name | Description |
|---|---|
AddedFramesDesktopCLICloudFrame[] | Returns the added frames. |