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 |
void |
Handles the Connected event.
By default, calls the |
void |
Handles the Disconnected event.
By default, calls the |
Constructors¶
-
Viewer.ConnectionCallback
(Viewer.ConnectionCallback.ConnectingType connecting = null, Viewer.ConnectionCallback.ConnectedType connected = null, Viewer.ConnectionCallback.DisconnectedType disconnected = null)¶ Initializes a new ConnectionCallback class instance.
For more information, see
vnc_Viewer_ConnectionCallback()
in the C API documentation.
Methods¶
-
void
Viewer.ConnectionCallback.OnConnecting
(Viewer viewer)¶ Handles the Connecting event. By default, calls the
Viewer.ConnectionCallback.Connecting
delegate.
-
void
Viewer.ConnectionCallback.OnConnected
(Viewer viewer)¶ Handles the Connected event. By default, calls the
Viewer.ConnectionCallback.Connected
delegate.
-
void
Viewer.ConnectionCallback.OnDisconnected
(Viewer viewer, String reason, Viewer.DisconnectFlags flags)¶ Handles the Disconnected event. By default, calls the
Viewer.ConnectionCallback.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::connecting
in 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::connected
in 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::disconnected
in the C API documentation.