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, Viewer.ConnectionCallback.ConnectedType, Viewer.ConnectionCallback.DisconnectedType)

Initializes a new ConnectionCallback class instance.

Method summary

Modifier and Type Method and Description
void

Viewer.ConnectionCallback.OnConnecting(Viewer)

Handles the Connecting event. By default, calls the Connecting delegate.

void

Viewer.ConnectionCallback.OnConnected(Viewer)

Handles the Connected event. By default, calls the Connected delegate.

void

Viewer.ConnectionCallback.OnDisconnected(Viewer, String, Viewer.DisconnectFlags)

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::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.

×