Learn how to evaluate and integrate the VNC SDK
Viewer.ConnectionCallback¶
-
vncsdk.Viewer.
ConnectionCallback
¶ Callback receiving state-change notifications for a Viewer.
Method Summary¶
Modifier and Type | Method and Description |
---|---|
Notification that is called when the viewer successfully connects to a server (after authentication). |
|
Notification that is called when the viewer begins a connection attempt to the server. |
|
Notification that is called when the viewer disconnects from the server. |
Methods¶
-
Viewer.ConnectionCallback.
connected
(viewer)¶ Notification that is called when the viewer successfully connects to a server (after authentication).
For more information, see
vnc_Viewer_ConnectionCallback::connected
.Parameters: viewer ( vncsdk.Viewer
) –Returns: None
-
Viewer.ConnectionCallback.
connecting
(viewer)¶ Notification that is called when the viewer begins a connection attempt to the server.
For more information, see
vnc_Viewer_ConnectionCallback::connecting
.Parameters: viewer ( vncsdk.Viewer
) –Returns: None
-
Viewer.ConnectionCallback.
disconnected
(viewer, reason, flags)¶ Notification that is called when the viewer disconnects from the server.
For more information, see
vnc_Viewer_ConnectionCallback::disconnected
.Parameters: - viewer (
vncsdk.Viewer
) – - reason (str or None) –
- flags ({
vncsdk.Viewer.DisconnectFlags
}) –
Returns: None
- viewer (