OnMotionDetected
event
Delphi
property OnMotionDetected: TOnMotionDetected read FOnMotionDetected write FOnMotionDetected;
C++Builder
__property TOnMotionDetected OnMotionDetected = {read=FOnMotionDetected, write=FOnMotionDetected};
typedef void __fastcall (__closure *TOnMotionDetected)(System::TObject* Sender, double GlobalMotionRatio, System::LongInt MaxMotionCellX, System::LongInt MaxMotionCellY, Vcl::Graphics::TBitmap* FrameBitmap, System::LongWord FrameNumber, LargeInteger FrameTime, System::LongInt FrameId, bool &CaptureFrame);
C#
public event OnMotionDetectedEventHandler OnMotionDetected;
public delegate void OnMotionDetectedEventHandler(object sender, TOnMotionDetectedEventArgs e);
VB.NET
Public Event OnMotionDetected As OnMotionDetectedEventHandler
Public Delegate Sub OnMotionDetectedEventHandler(sender As Object, e As TOnMotionDetectedEventArgs)
C++/Qt
void SetOnMotionDetected (TOnMotionDetectedCb OnMotionDetectedCb);
typedef void CALLBACK TOnMotionDetectedCb (void *Object, void *Sender, double GlobalMotionRatio, int MaxMotionCellX, int MaxMotionCellY, HBITMAP FrameBitmap, unsigned int FrameNumber, __int64 FrameTime, int FrameId, BOOL *CaptureFrame);
This TOnMotionDetected event occurs when a new frame is received and motion is detected. Note: be sure to activate the motion detector by enabling MotionDetector_Enabled.