TwclWiFiDirectDisconnectedEvent Delegate

The WiFi Direct OnConnected event handler prototype.

Namespace: wclWiFi
type
 TwclWiFiDirectDisconnectedEvent = procedure(Sender: TObject;
 const Device: TwclWiFiDirectDevice; const Reason: Integer) of object;

Parameters

Sender

The object initiates the event.

Device

The WiFi Direct device object.

Reason

The disconnection reason. If the Reason is wclErrors.WCL_E_SUCCESS then the client disconnected by call the Disconnect method.