Skip to content

OnDeviceLost

event

Delphi
property OnDeviceLost: TOnEventNotification read FOnDeviceLost write FOnDeviceLost;
C++Builder
__property TOnEventNotification OnDeviceLost = {read=FOnDeviceLost, write=FOnDeviceLost};
typedef void __fastcall (__closure *TOnEventNotification)(System::TObject* Sender);
C#
public event EventHandler OnDeviceLost;
VB.NET
Public Event OnDeviceLost As EventHandler
C++/Qt
void SetOnDeviceLost (TOnDeviceLostCb OnDeviceLostCb);
typedef void CALLBACK TOnDeviceLostCb (void *Object, void *Sender);

Occurs when a capture device is disconnected during preview or recording; for IP cameras, this happens when the connection is lost and the auto-reconnection is disabled (see Auto-reconnection).