Learn how to evaluate and integrate the VNC SDK

We're here if you need help.

DisplayManager

public abstract class DisplayManager

Manages the list of displays made available by a Server.

Nested Classes

Method Summary

Modifier and Type Method and Description
int

getDisplayCount()

Returns the number of displays.

String

getId(int index)

Gets the ID of the display (typically a short string).

String

getName(int index)

Gets the name of the display (typically a human-readable string).

int

getOriginX(int index)

Gets the horizontal origin of the display in pixels.

int

getOriginY(int index)

Gets the vertical origin of the display in pixels.

int

getResolutionX(int index)

Gets the horizontal resolution of the display in pixels.

int

getResolutionY(int index)

Gets the vertical resolution of the display in pixels.

boolean

isPrimary(int index)

Returns whether this is the primary (or main) display.

void

selectDisplay(int index)

Chooses a particular display to remote to connected Viewer app users.

void

setCallback(DisplayManager.Callback callback)

Registers a callback notifying when displays are added or removed, or the resolution of an existing display changes.

Methods

public int getDisplayCount()

Returns the number of displays.

For more information, see vnc_DisplayManager_getDisplayCount().

public String getId(int index) throws Library.VncException

Gets the ID of the display (typically a short string).

For more information, see vnc_DisplayManager_getId().

public String getName(int index) throws Library.VncException

Gets the name of the display (typically a human-readable string).

For more information, see vnc_DisplayManager_getName().

public int getOriginX(int index)

Gets the horizontal origin of the display in pixels.

For more information, see vnc_DisplayManager_getOriginX().

public int getOriginY(int index)

Gets the vertical origin of the display in pixels.

For more information, see vnc_DisplayManager_getOriginY().

public int getResolutionX(int index)

Gets the horizontal resolution of the display in pixels.

For more information, see vnc_DisplayManager_getResolutionX().

public int getResolutionY(int index)

Gets the vertical resolution of the display in pixels.

For more information, see vnc_DisplayManager_getResolutionY().

public boolean isPrimary(int index)

Returns whether this is the primary (or main) display.

For more information, see vnc_DisplayManager_isPrimary().

public void selectDisplay(int index) throws Library.VncException

Chooses a particular display to remote to connected Viewer app users.

For more information, see vnc_DisplayManager_selectDisplay().

public void setCallback(DisplayManager.Callback callback) throws Library.VncException

Registers a callback notifying when displays are added or removed, or the resolution of an existing display changes.

For more information, see vnc_DisplayManager_setCallback().

×