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
void

enable(boolean enable)

Specifies whether screen sharing is enabled.

int

getDisplayCount()

Returns the number of displays.

int

getDisplayIndex()

Gets the index of the currently selected display.

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

isEnabled()

Returns whether the server is sharing its screens, whether it is being called from a server or a viewer.

boolean

isPrimary(int index)

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

boolean

isSelectDisplayAllowed()

Returns whether the selectDisplay() call is permitted.

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 void enable(boolean enable) throws Library.VncException

Specifies whether screen sharing is enabled.

For more information, see vnc_DisplayManager_enable().

public int getDisplayCount()

Returns the number of displays.

For more information, see vnc_DisplayManager_getDisplayCount().

public int getDisplayIndex()

Gets the index of the currently selected display.

For more information, see vnc_DisplayManager_getDisplayIndex().

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 isEnabled()

Returns whether the server is sharing its screens, whether it is being called from a server or a viewer.

For more information, see vnc_DisplayManager_isEnabled().

public boolean isPrimary(int index)

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

For more information, see vnc_DisplayManager_isPrimary().

public boolean isSelectDisplayAllowed()

Returns whether the selectDisplay() call is permitted.

For more information, see vnc_DisplayManager_isSelectDisplayAllowed().

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().

×