Learn how to evaluate and integrate the VNC SDK
Viewer.ConnectionCallback¶
-
class Viewer.ConnectionCallback¶ Callback receiving state-change notifications for a Viewer.
For more information, see
vnc_Viewer_ConnectionCallback()in the C API documentation.
Nested classes¶
- Viewer.ConnectionCallback.ConnectingType
- Viewer.ConnectionCallback.ConnectedType
- Viewer.ConnectionCallback.DisconnectedType
Constructor summary
| Modifier and Type | Method and Description |
|---|---|
Initializes a new ConnectionCallback class instance. |
Method summary
| Modifier and Type | Method and Description |
|---|---|
void |
Handles the Connecting event. By default, calls the Connecting delegate. |
void |
Handles the Connected event. By default, calls the Connected delegate. |
void |
Handles the Disconnected event. By default, calls the Disconnected delegate. |
Constructors¶
-
Viewer.ConnectionCallback(Viewer.ConnectionCallback.ConnectingType a, Viewer.ConnectionCallback.ConnectedType b, Viewer.ConnectionCallback.DisconnectedType c)¶ Initializes a new ConnectionCallback class instance.
For more information, see
vnc_Viewer_ConnectionCallback()in the C API documentation.
Methods¶
-
void
Viewer.ConnectionCallback.OnConnecting(Viewer a)¶ Handles the Connecting event. By default, calls the Connecting delegate.
-
void
Viewer.ConnectionCallback.OnConnected(Viewer a)¶ Handles the Connected event. By default, calls the Connected delegate.
-
void
Viewer.ConnectionCallback.OnDisconnected(Viewer a, String b, Viewer.DisconnectFlags c)¶ Handles the Disconnected event. By default, calls the Disconnected delegate.
Fields¶
-
Viewer.ConnectionCallback.Connecting¶ Notification that is called when the viewer begins a connection attempt to the server.
For more information, see
vnc_Viewer_ConnectionCallback::connectingin the C API documentation.
-
Viewer.ConnectionCallback.Connected¶ Notification that is called when the viewer successfully connects to a server (after authentication).
For more information, see
vnc_Viewer_ConnectionCallback::connectedin the C API documentation.
-
Viewer.ConnectionCallback.Disconnected¶ Notification that is called when the viewer disconnects from the server.
For more information, see
vnc_Viewer_ConnectionCallback::disconnectedin the C API documentation.