Learn how to evaluate and integrate the VNC SDK

We're here if you need help.

Viewer.ConnectionCallback

public interface ConnectionCallback

Callback receiving state-change notifications for a Viewer.

Method Summary

Modifier and Type Method and Description
void

connected(Viewer viewer)

Notification that is called when the viewer successfully connects to a server (after authentication).

void

connecting(Viewer viewer)

Notification that is called when the viewer begins a connection attempt to the server.

void

disconnected(Viewer viewer, String reason, java.util.EnumSet<DisconnectFlags> flags)

Notification that is called when the viewer disconnects from the server.

Methods

void connected(Viewer viewer)

Notification that is called when the viewer successfully connects to a server (after authentication).

For more information, see vnc_Viewer_ConnectionCallback::connected.

void connecting(Viewer viewer)

Notification that is called when the viewer begins a connection attempt to the server.

For more information, see vnc_Viewer_ConnectionCallback::connecting.

void disconnected(Viewer viewer, String reason, java.util.EnumSet<DisconnectFlags> flags)

Notification that is called when the viewer disconnects from the server.

For more information, see vnc_Viewer_ConnectionCallback::disconnected.

×