Learn how to evaluate and integrate the VNC SDK

We're here if you need help.

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

Constructor summary

Modifier and Type Method and Description

Viewer.ConnectionCallback(Viewer.ConnectionCallback.ConnectingType connecting = null, Viewer.ConnectionCallback.ConnectedType connected = null, Viewer.ConnectionCallback.DisconnectedType disconnected = null)

Initializes a new ConnectionCallback class instance.

Method summary

Modifier and Type Method and Description
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.

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.

×